Click to See Complete Forum and Search --> : [gentoo] ACCEPT_KEYWORDS= is depreciated, how to: proper unmasking.


gehidore
05-23-2004, 06:11 PM
ACCEPT_KEYWORDS="~arch" has been depreciated for unmasking packages.

a benefit for the new style of unmasking is you don't have to type ACCEPT_KEYWORDS every time you upgrade your system as it is already present in package.keywords

make the /etc/portage directory and create the package.keywords file.


mkdir /etc/portage
touch /etc/portage/package.keywords


find the category the masked package is under in the portage tree.


emerge -p packagename


you're looking for this part. (in blue)


[root@gnortra:~] #emerge -p irssi
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] net-irc/irssi-0.8.9
[root@gnortra:~] #


to unmask the package


echo 'category0/package0 ~arch' >> /etc/portage/package.keywords
echo 'category1/package1 ~arch' >> /etc/portage/package.keywords



thanks bwkaz
i forgot to say replace ~arch with your system architecture!
here's a list.

~arch Subarch CHOST Setting
~x86 i386 i386-pc-linux-gnu
~x86 i486 i486-pc-linux-gnu
~x86 i586 i586-pc-linux-gnu
~x86 i686 i686-pc-linux-gnu (and everything above)
~x86 athlon i686-pc-linux-gnu
~alpha alpha-unknown-linux-gnu
~ppc powerpc-unknown-linux-gnu
~sparc sparc-unknown-linux-gnu
~hppa (generic) hppa-unknown-linux-gnu
~hppa pa7000 hppa1.1-unknown-linux-gnu
~hppa pa8000 hppa2.0-unknown-linux-gnu
~mips mips-unknown-linux-gnu
~amd64 x86_64-pc-linux-gnu




as I use i686 mine would look like this.


echo 'net-irc/irssi ~x86' >> /etc/portage/package.keywords


and finally install it.


emerge package


for me


emerge irssi


just repeat this for any packages that say they are masked.

Some packages will say they need operator input, for these add an = in front of them in package.keywords



Sometimes package.keywords is not enough to unmask something and the program will still claimed to be masked.
For this we use package.unmask.

Use the same syntax as before.


echo 'category0/package0 ~arch' >> /etc/portage/package.unmask
echo 'category1/package1 ~arch' >> /etc/portage/package.unmask

I am lazy so I symlinked unmask to keywords with

ln -s /etc/portage/package.keywords /etc/portage/package.unmask

either way, its your choice.