The file /etc/portage/use.mask does not work as described in man 5 portage. Reproducible: Always Steps to Reproduce: 1. mkdir /etc/portage 2. echo ssl >> /etc/portage/use.mask 3. USE=ssl emerge -pv lynx Actual Results: These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/lynx-2.8.5 -ipv6 -nls +ssl 0 kB Total size of downloads: 0 kB Expected Results: The ssl use-flag should be masked and not be used like described in the portage- man-page. Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.4.20040619-r0, 2.6. 5-hardened-r5) ================================================================= System uname: 2.6.5-hardened-r5 i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe -mmmx -fomit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3. /share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdf /config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /u r/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe -mmmx -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox strict userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp:// linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="linguas_de mmx x86"
It exists already as either: package.use:net-www/lynx -ssl Or if you are trying to do is having the environment ignored, then: make.conf:USE="-ssl" make.conf:#USE_ORDER="env:pkg:conf:auto:defaults" make.conf:USE_ORDER="pkg:conf:auto:defaults"
No this is not what I meant to do. Just have a look at portage(5): ------------------------------------------------------------------------------- use.mask Just like the use.mask found in /etc/make.profile/. See above for more information. use.mask Some USE flags don't make sense on some archs (for exam- ple altivec on non-ppc or mmx on non-x86). Here we list the masked ones. Format: - comments begin with # - one USE flag per line ------------------------------------------------------------------------------- So what I expect this file to do is the same as if I put ssl in /etc/make.profile/use.mask. The use-flag which is in there has () around it and can neither be used by package.use nor make.conf nor env. I know it sounds weird that a user would mask a use-flag, but if this is in the man page, I think it should work or it should be removed from it. Have a look at the output below. This is what I would expect (and what works with /etc/make.profile/use.mask) # USE=ssl emerge -pv lynx [...] [ebuild N ] net-www/lynx-2.8.5 -ipv6 -nls -(ssl) 2,126 kB I hope you now understand what the problem is: It is in the man-page, so it _should_ work as described there.
Apologies. I didn't realize the file existed as a user config file. I checked the code and the file is actually /etc/portage/profile/use.mask. I have adjusted the documentation to match.