bin/isolated-functions.sh USERLAND setting

Fabian Groffen <[email protected]> Thu, 28 Jul 2022 19:47:19 +0200
Newsgroups gmane.linux.gentoo.portage.devel
Organization Gentoo Foundation, Inc.
Message-ID <[email protected]>
--5ZoTPmlQffy5MtYR
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

bin/isolated-functions.sh does the following bit:

if [[ -z ${USERLAND} ]] ; then
   case $(uname -s) in
   *BSD|DragonFly)
       export USERLAND=3D"BSD"
       ;;
   *)
       export USERLAND=3D"GNU"
       ;;
   esac
fi

(after which it uses USERLAND for a single purpose, to export XARGS to
either GNU '[g]xargs -r', or BSD 'xargs')

This bit is problematic for Prefix, because Prefix may run on *BSD, but
use USERLAND=3DGNU.  The problem is theoretical at this point,
occasionally people come in and want to use Prefix on *BSD again.

Now I think Gentoo/BSD is theoretical too.  It officially is no longer
maintained[1].

So, question here is, do we want to retain this bit of historical
compatibility work (also check things like gsed wrapper), or can it go,
basically removing a potential problem for Gentoo Prefix?



[1] https://wiki.gentoo.org/wiki/Gentoo_FreeBSD



--=20
Fabian Groffen
Gentoo on a different level

--5ZoTPmlQffy5MtYR
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEELUvHd/Gtp7LaU1vuzpXahU5EQpMFAmLiy6cACgkQzpXahU5E
QpN7BAf/YIAjtAYrJREYxUvLj3Ko3ImwWiGYqRjSXUBVHmQlnTAnSZwJU+DhHP/3
fjA1ZgjIN6sqa0AtjGBmUIWktvWsDRfeKtjaIBQLLBsyydj0L5h3nBD0XNmcI3U5
mTx0iqqY4ld2d+/kv4flTYjYDqEeReU+tpri4AX4zoJr/rRqXJHLw1fB3cOrfNX3
bh0mVLdpXcIcO8krKbRfD4XKtRYXE1q1iyy06gEJu5B89eTAdyiPs0Mqj5hGbMQX
3jA4hU2KCk1/Hc7OlwN7sIvKTcbe+r4MpmTnax5hXcoXxi5yRw8wK0PVLHvvSNH+
TEwZUM33Yq2n48pdPrk2QShGbuRSEA==
=weYh
-----END PGP SIGNATURE-----

--5ZoTPmlQffy5MtYR--