sys-devel/patch: fix incorrect reliance on split-usr

It hardcodes a compile-time path to `ed`. This is known and handled
already because ${ED} is part of portage and does not point to `ed`. But
the "fix" was to do a $PATH lookup, which in turn broke binpackage
hosting (and profile migration, likely).

The package doesn't have USE=split-usr and we shouldn't add one just for
this. Make sure the portable API filename is used.

Bug: https://bugs.gentoo.org/470210
Closes: https://bugs.gentoo.org/957593
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-06-08 11:28:42 -04:00
parent 62ad53b3d0
commit c4d6bd8fc2
2 changed files with 6 additions and 4 deletions

View File

@@ -68,8 +68,9 @@ src_configure() {
# rename to gpatch for better BSD compatibility
--program-prefix=g
)
# Do not let $ED mess up the search for `ed` 470210.
ac_cv_path_ED=$(type -P ed) \
# Do not let $ED or $PATH (split-usr) mess up the search for `ed`:
# bug 470210 / bug 957593
ac_cv_path_ED="${EPREFIX}/bin/ed" \
econf "${myeconfargs[@]}"
}

View File

@@ -58,8 +58,9 @@ src_configure() {
# rename to gpatch for better BSD compatibility
--program-prefix=g
)
# Do not let $ED mess up the search for `ed` 470210.
ac_cv_path_ED=$(type -P ed) \
# Do not let $ED or $PATH (split-usr) mess up the search for `ed`:
# bug 470210 / bug 957593
ac_cv_path_ED="${EPREFIX}/bin/ed" \
econf "${myeconfargs[@]}"
}