Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to rebuild meta-packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
iliah
n00b
n00b


Joined: 01 Aug 2004
Posts: 42
Location: Russia Moscow

PostPosted: Thu Apr 13, 2006 11:25 am    Post subject: how to rebuild meta-packages Reply with quote

I guess it's quite simple question for you ;)

how to rebuild already installed meta-packages (eg. modular xorg-x11 or kde-meta)
Back to top
View user's profile Send private message
Zarhan
l33t
l33t


Joined: 27 Feb 2004
Posts: 996

PostPosted: Thu Apr 13, 2006 11:41 am    Post subject: Reply with quote

Not easily - as proper package 'sets' are not yet integrated in portage (See GLEP 21. The meta packages are just an intermediate solution). Emerging with the -e options is probably the closest you can get, altough that rebuilds a lot of other stuff as well.
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Thu Apr 13, 2006 11:52 am    Post subject: Reply with quote

if you only wanted to update, you could use the -auNDv set of options. this will rebuild all the packages where use-flags were changed or where there are new versions and it will do a "deep" dependency-scan.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
nealbirch
n00b
n00b


Joined: 18 Jan 2003
Posts: 25

PostPosted: Wed May 10, 2006 2:54 am    Post subject: how to do a rebuild Reply with quote

If you wanted to do just the x11 packages in the rebuilding of xorg-x11 you could do the following:

# for i in `emerge -pe xorg-x11 | grep x11 | cut -d " " -f 8` ; do emerge =$i ; done

for other metapackages you may have to play with it a bit. I think this would miss some of the fonts, for instance, but you could compare the list against what got rebuilt.
Back to top
View user's profile Send private message
dmartinsca
Guru
Guru


Joined: 09 Dec 2005
Posts: 303
Location: Ontario, Canada

PostPosted: Wed May 10, 2006 4:01 am    Post subject: Reply with quote

ecatmur's dep script looks like it can handle this pretty well. (Great script, i keep finding new uses for it all the time! Cheers Ed!)
You can get a copy of it from here, although i can't access the site right now.
Refering to the man page for dep, the -l switch lists dependancies of a package and the -1 switch produces output suitable for emerge --oneshot. For example: dep -l1 xfce4 produces the following output.
Code:
dmartins@unstable ~ $ dep -l1 xfce4
=xfce-base/libxfce4mcs-4.2.3
=xfce-base/libxfce4util-4.2.3.2
=xfce-base/libxfcegui4-4.2.3
=xfce-base/xfce-mcs-manager-4.2.3
=xfce-base/xfce-mcs-plugins-4.2.3
=xfce-base/xfce-utils-4.2.3
=xfce-base/xfce4-panel-4.2.3
=xfce-base/xfce4-session-4.2.3
=xfce-base/xfdesktop-4.2.3
=xfce-base/xffm-4.2.3
=xfce-base/xfprint-4.2.3
=xfce-base/xfwm4-4.2.3.2
=xfce-extra/xfcalendar-4.2.3
=xfce-extra/xfce4-appfinder-4.2.3
=xfce-extra/xfce4-icon-theme-4.2.3
=xfce-extra/xfce4-iconbox-4.2.3
=xfce-extra/xfce4-mixer-4.2.3
=xfce-extra/xfce4-systray-4.2.3
=xfce-extra/xfce4-toys-4.2.3
=xfce-extra/xfce4-trigger-launcher-4.2.3
=xfce-extra/xfwm4-themes-4.2.3

You can make emerge use this list of packages with a simple bit of bash magic: emerge -p $(dep -l1 xfce4) Some of the packages below are listed as new because i never actually emerged the xfce4 meta-package. I just tested this with gnome as well and it seems to work perfectly.
Code:
dmartins@unstable ~ $ emerge -p $(dep -l1 xfce4)

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] xfce-base/libxfce4mcs-4.2.3 
[ebuild   R   ] xfce-base/libxfce4util-4.2.3.2 
[ebuild   R   ] xfce-base/libxfcegui4-4.2.3 
[ebuild   R   ] xfce-base/xfce-mcs-manager-4.2.3 
[ebuild   R   ] xfce-base/xfce-mcs-plugins-4.2.3 
[ebuild   R   ] xfce-base/xfce-utils-4.2.3 
[ebuild   R   ] xfce-base/xfce4-panel-4.2.3 
[ebuild   R   ] xfce-base/xfce4-session-4.2.3 
[ebuild   R   ] xfce-base/xfdesktop-4.2.3 
[ebuild  N    ] xfce-base/xffm-4.2.3  USE="samba -debug"
[ebuild  N    ] app-text/psutils-1.17 
[ebuild  N    ] dev-util/gperf-3.0.1 
[ebuild  N    ] app-text/a2ps-4.13c-r4  USE="nls -cjk -tetex -vanilla"
[ebuild  N    ] xfce-base/xfprint-4.2.3  USE="-debug"
[ebuild   R   ] xfce-base/xfwm4-4.2.3.2 
[ebuild  N    ] xfce-extra/xfcalendar-4.2.3  USE="-debug"
[ebuild  N    ] xfce-extra/xfce4-appfinder-4.2.3  USE="-debug"
[ebuild   R   ] xfce-extra/xfce4-icon-theme-4.2.3 
[ebuild   R   ] xfce-extra/xfce4-iconbox-4.2.3 
[ebuild   R   ] xfce-extra/xfce4-mixer-4.2.3 
[ebuild   R   ] xfce-extra/xfce4-systray-4.2.3 
[ebuild  N    ] xfce-extra/xfce4-toys-4.2.3  USE="-debug"
[ebuild  N    ] xfce-extra/xfce4-trigger-launcher-4.2.3  USE="-debug"
[ebuild   R   ] xfce-extra/xfwm4-themes-4.2.3 
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Wed May 10, 2006 6:00 am    Post subject: Reply with quote

I have ecatmurs udept script from 3 days ago mirrored here:
http://dev.gentoo.org/~curtis119/udept.tar.gz

untar it into /usr/local/portage/app-portage/

then "emerge udept".
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum