scripts/bootstrap.sh: Allow CONFIG_PROTECT
authorMatt Turner <mattst88@gentoo.org>
Mon, 30 Mar 2020 01:15:25 +0000 (18:15 -0700)
committerMatt Turner <mattst88@gentoo.org>
Mon, 30 Mar 2020 01:37:50 +0000 (18:37 -0700)
commit0aa49828ae253a22a3327f4024fcada801e64245
tree8bfdcee3f293b0085d7696b7881e02e56989d53b
parentc6324820ccbaf353741610ae3580911cb06a00dd
scripts/bootstrap.sh: Allow CONFIG_PROTECT

With a CONFIG_PROTECT="-*" setting, glibc will overwrite the system's
/etc/locale.gen file in src_install() with its default-empty one. In
pkg_postinst() it reads the empty /etc/locale.gen it just installed, and
as a result generates all locales.

So, allow CONFIG_PROTECT to be passed through unmolested so long as it
starts with "-*". This allows locales to be selectively enabled when
bootstrap.sh is run with CONFIG_PROTECT="-* /etc/locale.gen".

Signed-off-by: Matt Turner <mattst88@gentoo.org>
scripts/bootstrap.sh