dev-util/pkgconf-1.7.3-r1: add fix for ppc-macos

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen
2021-01-08 11:07:59 +01:00
parent b295a10bf5
commit 08889d5fcd
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,24 @@
darwin9 does not malloc on NULL resolved_path
https://github.com/pkgconf/pkgconf/pull/208
--- a/libpkgconf/path.c
+++ b/libpkgconf/path.c
@@ -92,15 +92,11 @@
return;
if (S_ISLNK(st.st_mode))
{
- char *linkdest = realpath(path, NULL);
+ char pathbuf[PATH_MAX];
+ char *linkdest = realpath(path, pathbuf);
if (linkdest != NULL && stat(linkdest, &st) == -1)
- {
- free(linkdest);
return;
- }
-
- free(linkdest);
}
if (path_list_contains_entry(path, dirlist, &st))
return;
+2
View File
@@ -40,6 +40,8 @@ MULTILIB_CHOST_TOOLS=(
src_prepare() {
default
[[ ${CHOST} == *-darwin9 ]] && eapply "${FILESDIR}"/${P}-darwin9.patch
[[ ${PV} == "9999" ]] && eautoreconf
if use pkg-config; then
MULTILIB_CHOST_TOOLS+=(