sys-apps/which: Sync with Gentoo

It's from Gentoo commit 2d25fad95cbaa525c8945d8e582c749d49524f49.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-01-12 07:16:59 +00:00 committed by Krzesimir Nowak
parent 8f683dd2c7
commit 954c2bf558
2 changed files with 8 additions and 3 deletions

View File

@ -11,7 +11,7 @@ SRC_URI="https://carlowood.github.io/which/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
src_configure() {
append-lfs-flags

View File

@ -11,13 +11,18 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
src_configure() {
tc-export AR
# Workaround ancient getopt vs C23 (bug #954755)
use elibc_musl && append-cppflags -D__GNU_LIBRARY__
if use elibc_musl || \
[[ ${CHOST} == *-solaris* ]] || \
[[ ${CHOST} == *-darwin* ]]
then
append-cppflags -D__GNU_LIBRARY__
fi
CONFIG_SHELL="${BROOT}"/bin/bash econf
}