Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
# Try to fix sed calls for GNU sed. Do it only with GNU userland and force
# BSD's sed on BSD.
cd "${S}"
- if use userland_GNU; then
+ if [[ ${CBUILD:-${CHOST}} != *bsd* ]]; then
find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
sed -i -e 's/-i ""/-i""/' "${S}/csu/Makefile.inc" || die
fi
src_compile() {
# Does not work with GNU sed
# Force BSD's sed on BSD.
- if use userland_BSD ; then
+ if [[ ${CBUILD:-${CHOST}} == *bsd* ]]; then
export ESED=/usr/bin/sed
unalias sed
fi