Gentoo Archives: gentoo-user

From: Alec Ten Harmsel <alec@××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Confessional: how I generally use emerge.
Date: Fri, 18 Mar 2016 00:37:21
Message-Id: 20160318003054.GA642@apio.adsroot.itcs.umich.edu
In Reply to: [gentoo-user] Confessional: how I generally use emerge. by Alan Grimes
1 On Thu, Mar 17, 2016 at 08:18:13PM -0400, Alan Grimes wrote:
2 > I use two scripts for all emerge use, the goal is to run one command and
3 > then walk away:
4 >
5 > Standard general update script:
6 > #######################
7 > tortoise ~ # cat sysupdate
8 >
9 > #they must have moved or removed the logs, might have to track them down
10 > again...
11 > #rm /var/log/emerge*
12 >
13 > # cache /usr/portage
14 > echo "caching /usr/portage. This will take a long time."
15 > time ls -R /usr/portage > /dev/null
16 >
17 > emerge --sync
18 > layman --sync ALL
19 >
20 > emerge --update --verbose portage
21
22 You almost certainly want this to be:
23
24 emerge --update --verbose --oneshot portage
25
26 "--oneshot" will prevent portage from being added to your @world set.
27
28 > emerge --update --newuse --deep --with-bdeps=y system --keep-going
29
30 Add "--oneshot", same reasoning as above.
31
32 > emerge --update --newuse --deep --with-bdeps=y world --keep-going
33 >
34 > rm -f /var/cache/revdep-rebuild/*.rr
35
36 delete the above line
37
38 > revdep-rebuild
39
40 add "--ignore" to ignore any cached files and fully examine the system.
41
42 > emerge --skipfirst --resume
43 > emerge --skipfirst --resume
44 > etc-update
45 > eclean-dist
46 > ########################
47 >
48 > The eclean line was added just a few days ago from this thread...
49 >
50 > This one is intended to be a nice gentle update script.
51 > It caches the portage tree, then syncs everything, then updates
52 > everything starting with critical system packages, then all world
53 > packages...
54 >
55 > Then it cleans stuff up, it jcakhammers the revdep-rebuild but not too
56 > hard....
57
58 Seeing so much "--resume" and "--skip-first" and "--keep-going"
59 frightens me.
60
61 > This next script is what I use when emerge starts giving me shit:
62 >
63 > ##################
64 > tortoise ~ # cat keepgoing
65 > emerge --update --newuse --deep --with-bdeps=y system
66 > emerge --skipfirst --resume --nodeps
67 > emerge --skipfirst --resume --nodeps
68 > emerge --skipfirst --resume --nodeps
69 >
70 > emerge --update --newuse --deep --with-bdeps=y world
71 > emerge --skipfirst --resume --nodeps
72 > emerge --skipfirst --resume --nodeps
73 > emerge --skipfirst --resume --nodeps
74 > emerge --skipfirst --resume --nodeps
75 > emerge --skipfirst --resume --nodeps
76 > emerge --skipfirst --resume --nodeps
77 > emerge --skipfirst --resume --nodeps
78 > emerge --skipfirst --resume --nodeps
79 > emerge --skipfirst --resume --nodeps
80 > emerge --skipfirst --resume --nodeps
81 >
82 > rm /var/cache/revdep-rebuild/*.rr
83 > revdep-rebuild
84 > emerge --skipfirst --resume --nodeps
85 > emerge --skipfirst --resume --nodeps
86 > emerge --skipfirst --resume --nodeps
87 > emerge --skipfirst --resume --nodeps
88 >
89 > etc-update
90 > ###################
91 >
92 > It's basically the same as the working section of the above but instead
93 > of letting emerge do it's thing, it jackhammers that bitch as hard as
94 > possible to get as much updated as possible, but it requires emerge to
95 > do something and not error out for no good reason... I expect prune and
96 > depclean to be useless but I kinda need update to basically work every
97 > time. =\
98 > Whatever fails on this script, I just live with until next week/month.
99
100 Wow. This script makes me cry.
101
102 > ###################
103 > tortoise ~ # ./pretendupdate
104 >
105 > These are the packages that would be merged, in order:
106 >
107 > Calculating dependencies /
108 >
109 > !!! Problem resolving dependencies for sys-apps/util-linux from @system
110 > ... done!
111 >
112 > !!! The ebuild selected to satisfy "sys-apps/util-linux" has unmet
113 > requirements.
114 > - sys-apps/util-linux-2.27.1::gentoo USE="caps cramfs ncurses nls pam
115 > python readline suid udev unicode -build -fdformat -kill (-selinux)
116 > -slang -static-libs -systemd -test -tty-helpers" ABI_X86="32 64 -x32"
117 > PYTHON_SINGLE_TARGET="-python2_7 -python3_3 -python3_4"
118 > PYTHON_TARGETS="python2_7 python3_4 -python3_3"
119 >
120 > The following REQUIRED_USE flag constraints are unsatisfied:
121 > python? ( exactly-one-of ( python_single_target_python2_7
122 > python_single_target_python3_3 python_single_target_python3_4 ) )
123 >
124 > The above constraints are a subset of the following complete expression:
125 > python? ( exactly-one-of ( python_single_target_python2_7
126 > python_single_target_python3_3 python_single_target_python3_4 )
127 > python_single_target_python2_7? ( python_targets_python2_7 )
128 > python_single_target_python3_3? ( python_targets_python3_3 )
129 > python_single_target_python3_4? ( python_targets_python3_4 ) )
130 >
131 > (dependency required by "@system" [set])
132 > (dependency required by "@world" [argument])
133 >
134 > tortoise ~ # cat ./pretendupdate
135 > emerge --update --newuse --deep --with-bdeps=y world --verbose --pretend
136 > tortoise ~ #
137 >
138 > ###########
139 >
140 > Google is not being helpful with this... =(
141
142 What have you set PYTHON_SINGLE_TARGET to? It *must* be one of:
143
144 * python2_7
145 * python3_4
146
147 Alec

Replies

Subject Author
Re: [gentoo-user] Confessional: how I generally use emerge. Alan Grimes <ALONZOTG@×××××××.net>
[gentoo-user] Re: Confessional: how I generally use emerge. "»Q«" <boxcars@×××.net>