Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651130 - sys-apps/portage: emerge -e @world --exclude @system
Summary: sys-apps/portage: emerge -e @world --exclude @system
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 322883
Blocks:
  Show dependency tree
 
Reported: 2018-03-22 01:11 UTC by Joakim Tjernlund
Modified: 2020-03-12 14:30 UTC (History)
1 user (show)

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 Joakim Tjernlund 2018-03-22 01:11:29 UTC
Please consider adding support for --exclude @<any set>
Comment 1 Ulenrich 2019-04-19 22:39:36 UTC
Alternatively an expansion script could be included in some form
into app-portage/gentoolkit or app-portage/portage-utils

Like for example:

--- genexclude script ---
#!/bin/bash
[ "" = "$1" ] \
  &&echo "$0 Error: Must have SET name as arg for '--exclude=cat/pkg'" 1>&2 \
  &&exit 1
e=""
while [ -f /etc/portage/sets/$1 ] ; do
   while read a rest ; do
      a="${a%%#*}"
      # empty comment line
      [ "" = "${a}" ] &&continue
      e="$e --exclude=$a"
   done </etc/portage/sets/$1
   shift
done
echo -n "$e"
--- end script

Then this command works: emerge $(genexclude mysetname) -au @world