sys-apps/which: Sync with Gentoo

It's from Gentoo commit ffee66804b47833aa0f78d9cc764426212094eac.
This commit is contained in:
Flatcar Buildbot 2025-04-28 07:18:52 +00:00
parent b71a9641db
commit 5776f3f103

View File

@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Prints out location of specified executables that are in your path"
HOMEPAGE="https://carlowood.github.io/which/"
@ -16,5 +16,8 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390
src_configure() {
tc-export AR
# Workaround ancient getopt vs C23 (bug #954755)
use elibc_musl && append-cppflags -D__GNU_LIBRARY__
CONFIG_SHELL="${BROOT}"/bin/bash econf
}