Summary: | emerge --autounmask-write changes to config files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vladimir Berezhnoy <non7top> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 376695 |
Description
Vladimir Berezhnoy
2011-10-17 22:39:59 UTC
Well, the man page says this already. The problem is that there might be conflicting entries for a package in those files. The only way for emerge to ensure that the new changes take precedence is to write to the last file. If you want a file specifically for emerge you could add a 99-emerge-autounmask file for example. I see now the point of the 'last file' thing, but... The first thing I thought was to add 99-emerge, but emerge uses different sort method so as a result it will still prefer "autounmask-youtube-dl" before "99-emerge" (may be this is a bug). Anyway having "zzzzz-emerge" in my /etc/portage/package.*/ dirs looks ugly. Other option which will work is adding FEATRURES="split-autounmask" that will turn on using split config files. Such approach was used by autounmask for a couple of years already and worked pretty well. (In reply to comment #2) > I see now the point of the 'last file' thing, but... The first thing I thought > was to add 99-emerge, but emerge uses different sort method so as a result it > will still prefer "autounmask-youtube-dl" before "99-emerge" (may be this is a > bug). Anyway having "zzzzz-emerge" in my /etc/portage/package.*/ dirs looks > ugly. It's not a but. You should use something like "00-autounmask-youtube-dl" instead of "autounmask-youtube-dl". (In reply to comment #2) > I see now the point of the 'last file' thing, but... The first thing I thought > was to add 99-emerge, but emerge uses different sort method so as a result it > will still prefer "autounmask-youtube-dl" before "99-emerge" (may be this is a > bug). Anyway having "zzzzz-emerge" in my /etc/portage/package.*/ dirs looks > ugly. Right, 99- works only if all files start with numbers. It uses a lexicographic sort. > > Other option which will work is adding FEATRURES="split-autounmask" that will > turn on using split config files. Such approach was used by autounmask for a > couple of years already and worked pretty well. Well, if someone can propose something that works better and ensures that the new setting takes precedence, I'd happy to here it. One more thing to consider is that emerge's --autounmask doesn't only work for a single package. You can even get changes for emerge -uDN world. What would the file name be then? Or do you propose to use one file per package? Thanks for explaining this. It looks it's just me who is used to a different behavior, but the way emerge does it is more reasonable. Consider the bug as invalid. |