1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 06/05/2012 02:44 PM, Aaron W. Swenson wrote: |
5 |
|
6 |
> "There's never anything important in all that text." - Anonymous |
7 |
> Gentoo User |
8 |
|
9 |
The bad part is, that even reading of these messages can result in a |
10 |
breakage. I update a bunch of machines with these steps (maybe we |
11 |
should place instructions like these on a prominent place). |
12 |
(this is multi user, multi session). |
13 |
|
14 |
#preparations |
15 |
eix-sync |
16 |
cd /etc/portage |
17 |
git pull ; [ git stash ; git pull ; git stash pop ; git commit -a ; |
18 |
git push ] |
19 |
|
20 |
#on kernel updates |
21 |
emerge -av1 --nodeps gentoo-sources |
22 |
cd /usr/src/linux ; zcat /proc/config.gz > .config |
23 |
make oldconfig |
24 |
time ( make -j8 && make install_modules && make install && |
25 |
module-rebuild -X rebuild && |
26 |
eclean-kernel -n 2 -x config && |
27 |
grub2-config -o /boot/grub2/grub2.cfg ) |
28 |
|
29 |
#regular packages |
30 |
emerge -avuND world |
31 |
dispatch-conf/etc-update |
32 |
emerge -a --depclean |
33 |
revdep-rebuild --ignore -- -av |
34 |
revdep-rebuild --ignore -- -av (second run) |
35 |
|
36 |
#on xorg-server updates |
37 |
emerge -av1 $(qlist -IC x11-drivers) |
38 |
|
39 |
Nice, isn't it? |
40 |
|
41 |
[1] if you forget the -X on module-rebuild, you might no longer have |
42 |
the virtualbox-modules version installed in the tree (no packages |
43 |
satisfy ...). virtualbox does remove old versions real quick. |
44 |
|
45 |
The fun part comes with non-root users trying to log in: |
46 |
|
47 |
[2] You've updated nvidia-drivers (kernel module providers in general) |
48 |
userland and kernel modules, but forget to `rmmod nvidia`, or you |
49 |
can't without terminating user sessions, it impossible to start new X |
50 |
servers due to version mismatch between userland and kernel (applies |
51 |
for virtualbox as well) |
52 |
|
53 |
[3] You've updated zlib, but failed to recognize it in the emerge -av |
54 |
output. You get angry reports about broken luatex and inkscape |
55 |
(imagemagik) because of some nasty zlib abi version mismatch, hidden |
56 |
from revdep-rebuild. |
57 |
|
58 |
[5] lafilefixer (funny) |
59 |
[4] python-updater (rare) |
60 |
[6] ocaml gets broken after update w/o lablgl rebuild |
61 |
https://bugs.gentoo.org/385869 |
62 |
|
63 |
Well, I'm lazy, and do this in the backgound, half asleep. |
64 |
And I admit that [1] and [2] are my faults, but [3] is very annoying |
65 |
(just like libdl related stuff) and esp. kernel+module updates take a |
66 |
lot more than just a few 'REBUILD' packages. |
67 |
|
68 |
Is there any chance to detect this ZLIB_VERSION problem with |
69 |
revdep-rebuild (worst case: add a list of possibly broken packages |
70 |
with tests)? |
71 |
|
72 |
===== |
73 |
|
74 |
I understand the urge for `eupdate` but that needs an agreement on |
75 |
the implementation, and I see some rought edges here, where unattended |
76 |
script magic most likely fails. |
77 |
|
78 |
Michael -- half asleep |
79 |
|
80 |
- -- |
81 |
Gentoo Dev |
82 |
http://xmw.de/ |
83 |
-----BEGIN PGP SIGNATURE----- |
84 |
Version: GnuPG v2.0.17 (GNU/Linux) |
85 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
86 |
|
87 |
iF0EAREIAAYFAk/OqZ4ACgkQknrdDGLu8JCZTgD2MXNld64l2D9jdko5sDQ1RedO |
88 |
hDDGT1frS210sIkG5AD+M0N08Ru0FrVmqarkxec6N71egAmrmRUmcMMhtWCcUK0= |
89 |
=0Xwl |
90 |
-----END PGP SIGNATURE----- |