My Unofficial Guide to a Stable System World Update

Anything that pertains to Portage

Moderator: Moderators

Postby wolfden » Wed May 23, 2007 8:09

:shock:

I have not heard of anyone running into that issue
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Tonight I'll try it without the "skipfirst" and &a

Postby flick » Wed May 23, 2007 11:16

Tonight I'll try it without the "skipfirst" and "resume", maybe an error or warning message came up that I didn't catch. Only way to find out is, well, to find out. :D
flick
Growing Hen
 
Posts: 119
Joined: Wed Jan 03, 2007 15:09
Location: Milwaukee, WI

Postby aye » Thu May 24, 2007 21:58

I started
Code: Select all
emerge -e system || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
about 24h ago, but I still have 23 out of ~350 packages left to recompile. So it will probably take at least another couple of hours.

Is it normal??? I was using Gentoo for couple of months a while back and I believe the same procedure took significantly less time.

I'm doing this on a fresh Sabayon 3.3 x86_64 DVD install. I have default kernel and /etc/make.conf. Using Fluxbox and xterm for recompiling. Firefox is open as well. My CPU - AMD 3200+, 1GB RAM.
aye
Baby Hen
 
Posts: 7
Joined: Wed May 23, 2007 15:04
Location: Ventspils, Latvia

Postby wolfden » Fri May 25, 2007 1:26

I can't remember how long it took on 3.3

On 3.4 it only takes about a half a day
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby aye » Fri May 25, 2007 9:13

Ok, it's been about 36h since I started recompiling system, but I still have 6 packages left. So emerge -e world will quite possibly take about 3 days or even more!
aye
Baby Hen
 
Posts: 7
Joined: Wed May 23, 2007 15:04
Location: Ventspils, Latvia

Postby wolfden » Fri May 25, 2007 9:42

weird, that is the X2 processor right?

in your make.conf do you have set

MAKEOPTS="-j3"

so you use both cores?
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby aye » Fri May 25, 2007 9:59

No, it's single core AMD Athlon 3200+. But still on the same machine on Gentoo I'd have recompiled both system and world by now, but I haven't even finished system yet.

I'll try to reinstall once more. I'm suspecting that I've gone wrong with partitioning.
aye
Baby Hen
 
Posts: 7
Joined: Wed May 23, 2007 15:04
Location: Ventspils, Latvia

Postby Lomion » Fri May 25, 2007 11:30

Great guide!

Now I've never tried to do a world update before, but now I've a lot of free time and (yeah) a lot of cold beer with me, so I wondered: "why not?" :D

I've Sabayon linux 3.3 AMD64 running on a Intel P4 531 processor and I've done minor update to packages like Openoffice, Firefox, Azureus and so on... Oh and also kernel 2.6.21-sabayon-r1 'cause I cannot read sensors with old one (2.6.20)

I've followed your guide until syncing and layman update (using layer einit and sabayon), but now when I start world update using "emerge -upDN --world" this is what I get:

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

Calculating world dependencies \
!!! All ebuilds that could satisfy ">=sys-apps/baselayout-2.0.0_alpha1" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/baselayout-2.0.0_alpha3 (masked by: package.mask)
# Roy Marples <uberlord@gentoo.org> (02 Oct 2006)
# masked for testing due to major ebuild and installation changes

- sys-apps/baselayout-2.0.0_alpha2-r1 (masked by: package.mask)
- sys-apps/baselayout-2.0.0_alpha2 (masked by: package.mask)
- sys-apps/baselayout-2.0.0_alpha1 (masked by: package.mask)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "sys-apps/einit-modules-gentoo-9999-r5" [ebuild])


So, I've searched on online package database and found that theese packages are HardMasked unstable, and I'm not sure if unmasking them will be a good idea...
So how can I get out of this?

Thanks a lot!
Lomion
Simple Hen
 
Posts: 60
Joined: Fri May 11, 2007 17:46
Location: Italy

Postby wolfden » Fri May 25, 2007 11:39

(dependency required by "sys-apps/einit-modules-gentoo-9999-r5" [ebuild])


do you use einit? If not emerge -C it

The biggest thing to this is look at what portage is telling you, than the most obviously thing to do is ask yourself, am I even using that? If not, get rid of it or mask it for good.

Another great tool is

Code: Select all
equery depends packagename


that will tell you want programs is pulling in that program.


I don't touch enint and I just remove the overlay completely
Code: Select all
layman -d einit
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby wolfden » Fri May 25, 2007 12:02

I've been testing this script out:
http://forums.gentoo.org/viewtopic-t-546828.html
view the code:
http://phpfi.com/235242

After the -e system and world you can run this script, which does emerge -uDN --world and it does a much cleaner interface, it doesn't display lines of scrolling text like regular emerge does. It will spit out the error messages and other important info.

If it hits a package that fails it gives the error and than moves on to the next package till it runs thru the complete list and than it will reattempt to reinstall the failed packages. The reattempt is nice cause sometimes packages will install afterwards. Some packages are fussy about order of install.


To use the script
    1. view the code and copy and paste it all into a text file and save it as update.
    2. Place it in the /usr/bin/ directory, yes you will have to be root to do that.
    3. Make the text file executable - chmod +x update or right click on it and go to properties and check the box executable
    4. Jump to your command prompt and su to root than simply type update.


It will calculate and show you the updates and ask to continue. Once it completes it will ask to run revdep-rebuild. Just note, it is a new script and you may run into bugs, check the link to original thread often for updates. So far it's been working great for me. I punch in update, hit Y and I'm good to go. For support with this script, please see the original thread on gentoo forum.


here is example output:

Code: Select all
update
Emerging -uDN world then running revdep-rebuild.
You will be asked for confirmation; CTRL-C to abort at any time.
Resolving...

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

Calculating world dependencies... done!
[ebuild  N    ] app-text/iso-codes-0.58  4,322 kB
[ebuild   R   ] media-sound/jack-audio-connection-kit-0.101.1-r1  USE="alsa jack-tmpfs* mmx netjack portaudio sndfile sse (-altivec) -caps (-coreaudio) -cpudetection -debug -doc -oss" 0 kB
[ebuild   R   ] gnome-extra/libgsf-1.14.2  USE="bzip2 python -debug -doc -gnome (-static%)" 0 kB
[ebuild  N    ] x11-libs/libwnck-2.16.2  USE="-debug -doc" 457 kB
[ebuild   R   ] gnome-base/libgnomecanvas-2.14.0  USE="X -debug -doc (-static%)" 0 kB
[ebuild  N    ] x11-libs/libsexy-0.1.10  USE="-debug -doc" 379 kB
[ebuild  N    ] x11-misc/notification-daemon-0.3.6-r1  USE="-debug" 393 kB
[ebuild  N    ] x11-libs/libnotify-0.4.3  USE="-doc" 381 kB
[ebuild   R   ] gnome-extra/zenity-2.16.2  USE="libnotify* -debug" 0 kB
[ebuild     U ] app-office/openoffice-2.1.0-r1 [2.1.0] USE="branding cairo cups dbus eds gstreamer gtk java kde ldap odk pam sound webdav -binfilter -debug -firefox -gnome -seamonkey" LINGUAS="en_GB -af -ar -as_IN -be_BY -bg -bn -bs -ca -cs -cy -da -de -el -en -en_US -en_ZA -es -et -fa -fi -fr -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -lt -lv -mk -nb -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 4,157 kB

Total: 10 packages (1 upgrade, 5 new, 4 reinstalls), Size of downloads: 10,087 kB
Not compiling app-office/openoffice.
About to cancel (y to proceed)?

** Installing app-text/iso-codes-0.58 - 1 of 9.
Downloading iso-codes-0.58.tar.bz2
(586.70 KB/s) - `/usr/portage/distfiles/iso-codes-0.58.tar.bz2' saved [4425093/4425093]
* Automake used for the package (1.9.6) differs from
* the installed version (1.10).
>>> Emerging (1 of 1) app-text/iso-codes-0.58 to /

** app-text/iso-codes-0.58 installed successfully.
Packages installed so far: 1 of 1.      8 remaining.

** Rebuilding media-sound/jack-audio-connection-kit-0.101.1-r1 - 2 of 9.
* including support for experimental netjack, see http://netjack.sourceforge.net/
Patching:..done
>>> Emerging (1 of 1) media-sound/jack-audio-connection-kit-0.101.1-r1 to /

** media-sound/jack-audio-connection-kit-0.101.1-r1 installed successfully.
Packages installed so far: 2 of 2.      7 remaining.

** Rebuilding gnome-extra/libgsf-1.14.2 - 3 of 9.
Patching:done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) gnome-extra/libgsf-1.14.2 to /

** gnome-extra/libgsf-1.14.2 installed successfully.
Packages installed so far: 3 of 3.      6 remaining.

** Installing x11-libs/libwnck-2.16.2 - 4 of 9.
Downloading libwnck-2.16.2.tar.bz2
(508.91 KB/s) - `/usr/portage/distfiles/libwnck-2.16.2.tar.bz2' saved [467230/467230]
Patching:done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) x11-libs/libwnck-2.16.2 to /

** x11-libs/libwnck-2.16.2 installed successfully.
Packages installed so far: 4 of 4.      5 remaining.

** Rebuilding gnome-base/libgnomecanvas-2.14.0 - 5 of 9.
Patching:done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) gnome-base/libgnomecanvas-2.14.0 to /

** gnome-base/libgnomecanvas-2.14.0 installed successfully.
Packages installed so far: 5 of 5.      4 remaining.

** Installing x11-libs/libsexy-0.1.10 - 6 of 9.
Downloading libsexy-0.1.10.tar.gz
(489.24 KB/s) - `/usr/portage/distfiles/libsexy-0.1.10.tar.gz' saved [387337/387337]
Patching:done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) x11-libs/libsexy-0.1.10 to /

** x11-libs/libsexy-0.1.10 installed successfully.
Packages installed so far: 6 of 6.      3 remaining.

** Installing x11-misc/notification-daemon-0.3.6-r1 - 7 of 9.
Downloading notification-daemon-0.3.6.tar.gz
(513.67 KB/s) - `/usr/portage/distfiles/notification-daemon-0.3.6.tar.gz' saved [402426/402426]
Patching:.done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) x11-misc/notification-daemon-0.3.6-r1 to /

** x11-misc/notification-daemon-0.3.6-r1 installed successfully.
Packages installed so far: 7 of 7.      2 remaining.

** Installing x11-libs/libnotify-0.4.3 - 8 of 9.
Downloading libnotify-0.4.3.tar.gz
(486.48 KB/s) - `/usr/portage/distfiles/libnotify-0.4.3.tar.gz' saved [389402/389402]
>>> Emerging (1 of 1) x11-libs/libnotify-0.4.3 to /

** x11-libs/libnotify-0.4.3 installed successfully.
Packages installed so far: 8 of 8.      1 remaining.

** Rebuilding gnome-extra/zenity-2.16.2 - 9 of 9.
Patching:.done
* Installing GNOME 2 GConf schemas
>>> Emerging (1 of 1) gnome-extra/zenity-2.16.2 to /

** gnome-extra/zenity-2.16.2 installed successfully.
** All packages compiled successfully
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.
Skipped update to: app-office/openoffice
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

PreviousNext

Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest