Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696956 - add package.exclude
Summary: add package.exclude
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-08 14:41 UTC by r7l
Modified: 2019-10-08 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description r7l 2019-10-08 14:41:08 UTC
Hello,

there is an option in Portage emerge called --exclude where you can specify certain packages that should be excluded. I find myself constantly using this command for 2 or 3 packages like gentoo-kernel / chromium and such. The issue with these packages should be obvious. I want to update them but sometimes it's not the a good timing to do so and i skip those for a few days but update the rest.

I also find blocking them with package.mask a bad solution to this issue as it would remove and info about updates for these packages entirely.

So the proposed solution would be a package.exclude file that excludes files from being pulled into updates except when directly listed as in "emerge package". But (and this is the crucial part) the packages will still be listed in "emerge -uND world" but with something like a red X and a message below that would say that there are packages considered for updates but excluded in package.exclude and need to be updated manually. 

This way people would not forget about them like it would be with a package.mask and there is also no need to write custom aliases for this situation. Because that's what i did so far and i don't like it.

Please take not that this is different from using package.mask as you would not be able to update the package in question without unmasking AND you might run into trouble with other packages using this package as a dependency.

Thanks allot for considering!

Reproducible: Always

Steps to Reproduce:
1. emerge -uND world
2. see package you don't want to update automatically
3. end up with a command like this: emerge -uND world --exclude=sys-kernel/gentoo-sources --exclude=www-client/chromium --exclude=x11-drivers/nvidia-drivers
Actual Results:  
A user is forced to specify certain package again and again in order to be forced to mask them all together or be forced to write long commands in order to keep the system up to date while skipping a hand full of packages that need special care or allot of build time.

Expected Results:  
A file like package.exclude where it is possible to use the --exclude option on a file basis.
Comment 1 r7l 2019-10-08 14:44:53 UTC
Edit: I didn't mean "emerge -uND world" but "emerge -uv world" or any other variant using -v option" Very sorry for putting in the wrong command. But i still hope you understand what i was aiming for.