Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540250 - sys-apps/portage: command-specific emerge default options
Summary: sys-apps/portage: command-specific emerge default options
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 07:38 UTC by Matthew Thode ( prometheanfire )
Modified: 2016-02-02 16:18 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 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-02-16 07:38:47 UTC
changed-use and newuse are not explained to well in the man page

these inspect all of @selected every run (hence why selective is needed).  It makes it so they can't be used without --selcetive=n to install specific packages (negating most of their usefullness).  I think it would be helpful if this was documented.

It's useful to have this option in emerge_default_opts on servers that get semi-auto-updated as well (in my experience, ymmv, etc).  But it conflicts with emerging packages directly without --selective=n  To help with this I'd like to see a feature where EMERGE_DEFAULT_OPTS can have seperate opts for diferent package sets.  @WORLD would be nice to have --changed-use=y  @preserved-rebuild would be nice to have --usepkg=n --get-binpkg=n etc.

So I guess this is a doc/feature bug :D

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2015-02-16 22:42:27 UTC
How about if allow you to define commands that you can refer to using names, with commands like 'emerge --command=world-update'. The config file could be called /etc/portage/emerge/commands.conf, and appear as follows:

[world-update]
options = --update --deep --newuse --changed-use --with-bdeps=y
arguments = @world

[preserved-rebuild]
options = --usepkg=n --get-binpkg=n
arguments = @preserved-rebuild

You would also be able to specify arguments/options on the command line, to override pre-defined options/arguments.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-17 04:57:22 UTC
How would

  emerge @foo @bar somepackage

work if @foo and @bar both specify options? What if they specify conflicting options?
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-02-17 05:17:11 UTC
--command is a better option, I like it :D  Adding features to it might be good too.

@mgorny, with commands it's more explicit I think.  I also think we should only accept one command for simplicity, or maybe chain them (exec one at a time for no conflicts).
Comment 4 Alexander Berntsen (RETIRED) gentoo-dev 2016-02-02 14:02:36 UTC
I don't get this. What tangible advantage is there to this compared to just using a shell alias?
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-02-02 15:49:03 UTC
this is more for user set defaults