Xywa ... as charles points out, you needn't have a directory, however, one file within the directory will behave the same as your previous /etc/portage/package.use file.Xywa wrote:I have to make some changes for 20 files, so easier for me is to add those changes to package.use file, than separately to 20 new files. Will be the system see package.use file together with package.file directory? Is it possible this way? The same for package.mask, package.unmask, etc...

Code: Select all
$ ls /etc/portage/package.use/
acroread clamav dia fpc heimdal libreoffice openssl samba teamviewer xorg-server
adobe-flash cnijfilter dropbox googleearth iputils microcode-data owncloud-client skype thunderbird zbar
autokey corefonts eudev gparted kde-l10n networkmanager peazip splashutils wine
avahi dbus firefox gscan2pdf kdebase-kioslaves nvidia-drivers rxvt-unicode synaptiks worldCode: Select all
$ cat /etc/portage/package.use/eudev
sys-fs/eudev -rule-generator abi_x86_32Code: Select all
$ cat /etc/portage/package.use/world
.
.
.
# required by sys-libs/ldb-1.1.26::gentoo
# required by net-fs/samba-4.2.9::gentoo
>=sys-libs/tevent-0.9.28 python
# required by media-sound/pulseaudio-8.0::gentoo
# required by media-sound/mpg123-1.22.4::gentoo[pulseaudio]
# required by media-video/mplayer-1.2.1::gentoo[mp3]
# required by media-video/smtube-16.1.0::gentoo
>=dev-libs/json-c-0.12 abi_x86_32
# required by sys-libs/ldb-1.1.26::gentoo
# required by net-fs/samba-4.2.9::gentoo
>=sys-libs/tdb-1.3.8 python
# required by virtual/libffi-3.0.13-r1::gentoo
# required by dev-libs/glib-2.46.2-r3::gentoo
# required by mail-client/thunderbird-45.1.0::gentoo
>=dev-libs/libffi-3.2.1 abi_x86_32
# required by media-video/ffmpeg-2.8.6::gentoo[bzip2]
# required by media-libs/gegl-0.2.0-r2::gentoo
# required by media-gfx/gimp-2.8.14-r1::gentoo
# required by media-gfx/sane-frontends-1.0.14::gentoo[gimp]
>=app-arch/bzip2-1.0.6-r7 abi_x86_32
In my experience in the last 12 months, portage has done --autounmask-write for me, i just say Y or N then do a sudo dispatch-confXywa wrote:What about Using --autounmask-write option?
Can this option do this automatically for me? Where are config files from that option?
Eg. when I am unmasking dozen those files with abi_x86_32 use flag, I would prefer to do this automatically rather than soendind an hour to do this manually. Is it -autounmask-write option safe?

So, if the last file in /etc/portage/package.use/ is named 'world', then you're good to go. You could of course create a file named 'zzzzz' instead, to be sure!man emerge wrote:--autounmask-write [ y | n ]
If --autounmask is enabled, changes are written to config files, respecting CONFIG_PROTECT and --ask. If the corresponding package.* is a file, the changes are appended to it, if it is a directory, changes are written to the lexicographically last file. This way it is always ensured that the new changes take precedence over existing changes. This option is automatically enabled with --ask.
Xywa ... when keywording numerious packages ~arch on a stable system, "safe" doesn't come into it.Xywa wrote:Eg. when I am unmasking dozen those files with abi_x86_32 use flag, I would prefer to do this automatically rather than soendind an hour to do this manually. Is it -autounmask-write option safe?
khayyam wrote:Xywa wrote:You may want to keep it a directory as if you need to change package.{accept_keywords,mask,unmask} for a number of packages you can group these changes in one file (which may help you remember why you'd made the change).Many thanks for all the explanations, looks like I am old-fashion Gentoo user, who did not pay attentions to the newsFitzcarraldo wrote:I have individual files for the packages I want to set USE flags for individually, and a file I called 'world' for USE changes specified by Portage in order to merge world:
So it means for example, I could make eg. a group called video-making, and inside unmask some newest package like kdenlive, mlt, ffmpeg? So it will be easy for me to keep a control why did I unmask those package later on?
Xywa ... exactly.Xywa wrote:So it means for example, I could make eg. a group called video-making, and inside unmask some newest package like kdenlive, mlt, ffmpeg? So it will be easy for me to keep a control why did I unmask those package later on?
Many thanks, works perfect, I made video-editing, games and some more folders. Great control, niece and clean, MANY THANKS!khayyam wrote:Xywa ... exactly.Xywa wrote:So it means for example, I could make eg. a group called video-making, and inside unmask some newest package like kdenlive, mlt, ffmpeg? So it will be easy for me to keep a control why did I unmask those package later on?
best ... khay
Code: Select all
# emerge -puDN world
These are the packages that would be merged, in order:
Calculating dependencies... done!
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
dev-libs/libxml2:2
(dev-libs/libxml2-2.9.3:2/2::gentoo, ebuild scheduled for merge) conflicts with
dev-libs/libxml2:2[-icu,abi_x86_64(-)] required by (dev-qt/qtwebkit-4.8.6-r1:4/4::gentoo, installed)
Code: Select all
fitzcarraldo@clevow230ss ~ $ grep thunderbird /etc/portage/package.use/*
/etc/portage/package.use/thunderbird:mail-client/thunderbird lightning
/etc/portage/package.use/world:# required by mail-client/thunderbird-31.7.0::gentoo
/etc/portage/package.use/world:# required by mail-client/thunderbird-45.1.0::gentoo