Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 651130

Summary: sys-apps/portage: emerge -e @world --exclude @system
Product: Portage Development Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 322883    
Bug Blocks:    

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