1 |
On Sunday 20 September 2015 16:25:34 lee wrote: |
2 |
> Alan McKinnon <alan.mckinnon@×××××.com> writes: |
3 |
> > On 19/09/2015 21:36, lee wrote: |
4 |
> >> Hi, |
5 |
> >> |
6 |
> >> how could I solve these updating problems: |
7 |
> >> |
8 |
> >> |
9 |
> >> emerge -j 8 -a --update --newuse --deep --with-bdeps=y @world |
10 |
> >> |
11 |
> >> * IMPORTANT: 4 news items need reading for repository 'gentoo'. |
12 |
> >> * Use eselect news read to view new items. |
13 |
> >> |
14 |
> >> These are the packages that would be merged, in order: |
15 |
> >> |
16 |
> >> Calculating dependencies... done! |
17 |
> >> |
18 |
> >> !!! Multiple package instances within a single package slot have been |
19 |
> >> pulled !!! into the dependency graph, resulting in a slot conflict: |
20 |
> >> |
21 |
> >> dev-libs/boost:0 |
22 |
> >> |
23 |
> >> (dev-libs/boost-1.56.0-r1:0/1.56.0::gentoo, ebuild scheduled for merge) |
24 |
> >> pulled in by>> |
25 |
> >> (no parents that aren't satisfied by other packages in this slot) |
26 |
> >> |
27 |
> >> (dev-libs/boost-1.55.0-r2:0/1.55.0::gentoo, ebuild scheduled for merge) |
28 |
> >> pulled in by>> |
29 |
> >> dev-libs/boost:0/1.55.0= required by |
30 |
> >> (dev-libs/librevenge-0.0.2:0/0::gentoo, installed)>> |
31 |
> >> ^^^^^^^^^^ |
32 |
> >> |
33 |
> >> (and 2 more with the same problem) |
34 |
> > |
35 |
> > I'm not sure why you are getting this one. Portage is only pulling in |
36 |
> > boost-1.56.0-r1 because it's the latest stable version, but librevenge |
37 |
> > requires something earlier. Portage should therefore shut up and install |
38 |
> > the only real solution - keep boost at 1.55.0 |
39 |
> |
40 |
> Maybe because it says that there's a slot conflict. I had another one |
41 |
> of those, and getting rid of it prevents me from having a pdf reader |
42 |
> installed. I haven't had the need to read a pdf since, but sooner or |
43 |
> later I'll need to be able to. |
44 |
|
45 |
Can you provide your world file? |
46 |
should be located at: |
47 |
/var/lib/portage/world |
48 |
|
49 |
> > Try these possibilities: |
50 |
> > |
51 |
> > emerge =dev-libs/boost-1.55.0-r2 |
52 |
> |
53 |
> Why this particular version; how did you figure that out? I read from |
54 |
> the second message that boost doesn't work with itself because |
55 |
> librevenge is installed. So I could remove librevenge, but a lot of |
56 |
> things depend on it, amongst them libreoffice. |
57 |
|
58 |
Don't forget to add "-1" or "--oneshot" as options when installing |
59 |
dependencies manually. |
60 |
|
61 |
> From there, I don't know what the effects are. Now libreoffice is still |
62 |
> 4.4.1.2, and I would expect it being upgraded to 5.x maybe. So I would |
63 |
> have to remove boost instead --- IIRC I installed it only to try out |
64 |
> regex_match() and regex_search() --- but removing boost seems a bit |
65 |
> unreasonable, considering that it takes a while to build. And even with |
66 |
> boost removed, I have no good reason to think that there won't be other |
67 |
> problems, and it leaves the question what to do when I need boost again: |
68 |
> I don't even have a pdf reader ... |
69 |
> |
70 |
> So I decided I'd better ask what to do. It's hard to believe that we |
71 |
> are seriously expected to remove lots of software which we might not be |
72 |
> able to install again just to do an update. All these conflicts give me |
73 |
> the impression that something in the repo is broken and needs to be |
74 |
> fixed. |
75 |
|
76 |
I have no such issues, neither do most people. |
77 |
Which seems to indicate the issue is not with the repo. |
78 |
Lets look at the actual contents of your world-file. (see above) |
79 |
|
80 |
> > emerge -avuND world |
81 |
> > |
82 |
> > or |
83 |
> > |
84 |
> > emerge -j 8 -a --update --newuse --deep --with-bdeps=n @world |
85 |
> > |
86 |
> > or quickpkg boost, then unmerge it and re-run emerge world. |
87 |
> > Boost is a pain to build so with a quickpkg you can put it back with a |
88 |
> > minimum of effort |
89 |
> |
90 |
> Maybe next weekend or so, I don't feel like doing it now and don't |
91 |
> really have the time to. |
92 |
|
93 |
quickpkg is really quick. |
94 |
Then, to reinstall from that: emerge -vak1 dev-libs/boost |
95 |
|
96 |
> >> dev-util/boost-build:0 |
97 |
> >> |
98 |
> >> (dev-util/boost-build-1.55.0:0/0::gentoo, installed) pulled in by |
99 |
> >> |
100 |
> >> =dev-util/boost-build-1.55* required by |
101 |
> >> (dev-libs/boost-1.55.0-r2:0/1.55.0::gentoo, ebuild scheduled for |
102 |
> >> merge) ^ ^^^^^ |
103 |
> >> |
104 |
> >> (dev-util/boost-build-1.56.0:0/0::gentoo, ebuild scheduled for merge) |
105 |
> >> pulled in by>> |
106 |
> >> =dev-util/boost-build-1.56* required by |
107 |
> >> (dev-libs/boost-1.56.0-r1:0/1.56.0::gentoo, ebuild scheduled for |
108 |
> >> merge) ^ ^^^^^ |
109 |
> > |
110 |
> > This is a consequence of boost. |
111 |
> > Fix the boost issue and this one goes away |
112 |
> |
113 |
> I thought it might. It's yet another message telling me that boost |
114 |
> doesn't work with boost. |
115 |
|
116 |
You seem to want 2 different versions of boost, which are in the same slot. |
117 |
Which isn't allowed. |
118 |
|
119 |
> >> media-video/ffmpeg:0 |
120 |
> >> |
121 |
> >> (media-video/ffmpeg-2.6.3:0/54.56.56::gentoo, ebuild scheduled for |
122 |
> >> merge) pulled in by>> |
123 |
> >> (no parents that aren't satisfied by other packages in this slot) |
124 |
> >> |
125 |
> >> (media-video/ffmpeg-2.2.14:0/52.55.55::gentoo, installed) pulled in by |
126 |
> >> |
127 |
> >> media-video/ffmpeg:0/52.55.55=[vdpau] required by |
128 |
> >> (media-libs/mlt-0.9.0:0/0::gentoo, installed)>> |
129 |
> >> ^^^^^^^^^^^^ |
130 |
> > |
131 |
> > Similar to boost. try a similar approach |
132 |
> |
133 |
> I tried 'emerge -j 8 -a --update --newuse --deep --with-bdeps=y ffmpeg' |
134 |
> to upgrade ffmpeg only because it seemed to be smallest problem. But |
135 |
> no, that requires quite a lot of packages and gives me a lengthy list |
136 |
> which looks like some kind of dependency hell. So that was a no-go, |
137 |
> too. |
138 |
> |
139 |
> Sure, I could also remove ffmpeg, but how do I know that I can reinstall |
140 |
> it after upgrading? |
141 |
|
142 |
media-libs/mlt... |
143 |
Lets have a look at your world-file. |
144 |
|
145 |
> >> !!! The ebuild selected to satisfy "sci-libs/hdf5" has unmet |
146 |
> >> requirements. |
147 |
> >> - sci-libs/hdf5-1.8.14-r1::gentoo USE="cxx fortran threads zlib -debug |
148 |
> >> -examples -fortran2003 -mpi -static-libs -szip">> |
149 |
> >> The following REQUIRED_USE flag constraints are unsatisfied: |
150 |
> >> threads? ( !cxx !fortran ) |
151 |
> > |
152 |
> > Come on, the problem is as clear as daylight and stated right there in |
153 |
> > the output: |
154 |
> > |
155 |
> > If you have threads in USE for hdf5, then you cannot have cxx and/or |
156 |
> > fortran also in USE for hdf5 |
157 |
> > |
158 |
> > echo "=sci-libs/hdf5-1.8.14-r1 -cxx -fortran" >> |
159 |
> > /etc/portage/package.use/package.use |
160 |
> |
161 |
> I gathered that much, but I didn't feel like trying to find out whether |
162 |
> it's better to disable threads or cxx and fortran because of the other |
163 |
> problems. hdf5 was pulled in because of dependencies and not because I |
164 |
> installed it, so I didn't check its USE flags to begin with. |
165 |
|
166 |
Keep threads if you want performance. |
167 |
Then again, what do you want to do with hdf? |
168 |
|
169 |
> >> I could remove boost (and maybe reinstall it later), but I would like to |
170 |
> >> keep ffmpeg. hdf5 apparently goes back to having blender installed, |
171 |
> >> which I would also like to keep. And apparently, I would have to remove |
172 |
> >> libreoffice before I could update. |
173 |
> > |
174 |
> > What does libreoffice have to do with this? |
175 |
> |
176 |
> It depends on librevenge. |
177 |
|
178 |
world-file? |
179 |
|
180 |
> >> Why can't we just update like we can with any other distribution but |
181 |
> >> have to run into dependency problems all the time instead? |
182 |
> > |
183 |
> > You fail to understand how gentoo works. At no time did Gentoo ever |
184 |
> > guarantee that updates would work like binary distros and the process |
185 |
> > would be trouble free. Quite the opposite - Gentoo is upfront in telling |
186 |
> > you that there will always be update issues and you are the person to |
187 |
> > solve them. |
188 |
> |
189 |
> It never told me that. |
190 |
|
191 |
True, it's not clearly stated. |
192 |
|
193 |
> > This is because of how Gentoo works. With a binary distro, there is only |
194 |
> > one variant of a package. If package A depends on ldap, and cifs, and |
195 |
> > kerberos and nfs, and you don't want any of those then that is tough |
196 |
> > shit because you are going to get them. And you are going to get them |
197 |
> > because the package maintainer said you are going to get them. |
198 |
> |
199 |
> That's one of the things that bothers me with binary distributions. |
200 |
|
201 |
The more freedom with the package manager, the more conflicts you might |
202 |
encounter. |
203 |
|
204 |
> > Gentoo gives you the choice, and sometimes your choices interfere with |
205 |
> > other choices you make. Now you get to decide. |
206 |
> > |
207 |
> > Binary distros run into the same problems as above, and the package |
208 |
> > maintainer has to solve them. When that is done, the package gets pushed |
209 |
> > out and you don't see what it took. You also don't have any choice. |
210 |
> > |
211 |
> > In Gentoo, YOU have the role that a maintainer has on Fedora, YOU get to |
212 |
> > find out how to solve the problem and YOU get to implement it. That is |
213 |
> > the inevitable side-effect of having choice. |
214 |
> |
215 |
> Where and how do the above messages give me choices? They are telling |
216 |
> me that boost doesn't work with itself, |
217 |
|
218 |
It does, just not versions that are too close and would end up overwriting |
219 |
each others files. |
220 |
|
221 |
> that I cannot upgrade ffmpeg and |
222 |
> that I need to dis- or enable USE flags I've never touched. |
223 |
|
224 |
There are default USE-flags. |
225 |
In your config, in the profile and in the ebuilds. |
226 |
Conflicts can always occur. |
227 |
|
228 |
> I can make |
229 |
> a wild guess that removing boost and ffmpeg /might/ solve the problem, |
230 |
> and from my experience with the pdf reader, I can only assume that |
231 |
> chances that I cannot reinstall either after upgrading are pretty good. |
232 |
> My conclusion is that something in the repos might be broken because if |
233 |
> it wasn't, I wouldn't have these problems. |
234 |
|
235 |
I'm thinking world-file.. |
236 |
|
237 |
> So my choices are to try to somehow force an upgrade and be left with a |
238 |
> non-working system, or to wait until the problems are fixed, or to ask |
239 |
> for help. |
240 |
|
241 |
force an upgrade? |
242 |
|
243 |
> Asking for help turns out that I don't really have a choice because I |
244 |
> can either try to somehow force an upgrade and take the risk of being |
245 |
> left with a non-working system (because Gentoo gives me choices: perhaps |
246 |
> you can see the irony here), or not upgrade at all. |
247 |
|
248 |
How would you force an upgrade? |
249 |
|
250 |
> >> What do I do when I need to update /right now/ and find myself being |
251 |
> >> blocked with cryptic messages like the above that leave me stranded? |
252 |
> >> Once I used 'emerge --sync', there is no way to turn it back to continue |
253 |
> >> to be able to install software if needed when the update cannot be |
254 |
> >> performed. Updates simply need to work, there's no way around that. |
255 |
> > |
256 |
> > You seem unwilling to do what it takes to run Gentoo properly. I suggest |
257 |
> > you delete your Gentoo systems and install Fedora instead. Gentoo is |
258 |
> > obviously not for you. |
259 |
> |
260 |
> That is a really wild assumption you're making, to put it nicely. |
261 |
> |
262 |
> Besides, IMO Fedora is run by stupid fascists who believe they can |
263 |
> dictate people what to think and take over the world --- which is |
264 |
> something I don't want to have anything to do with --- and I don't want |
265 |
> systemd, either, which appears to come along remarkably similar lines. |
266 |
> You'd have to suggest a better alternative, one that is better than |
267 |
> Gentoo. |
268 |
|
269 |
It depends, for someone who wants it all to work magically? |
270 |
Or for someone who doesn't mind learning? |
271 |
|
272 |
> Other than that, can't you imagine that there might be room for |
273 |
> improvement? Like a way to undo an 'emerge --sync' and messages that |
274 |
> are more informative, or providing the user with actual choices that |
275 |
> would solve the problem and let them decide which solution they want |
276 |
> (think of aptitude, which Debian has)? |
277 |
|
278 |
There is, several in fact. |
279 |
One is called "Backups" |
280 |
The other one is portage snapshots. |
281 |
|
282 |
> Or would you rather say that Gentoo seems unwilling to do what it takes |
283 |
> to make it easier to upgrade? Yeah, I know, developer resources are |
284 |
> limited, but so are mine. |
285 |
|
286 |
Mine are even more limited, but I manage to upgrade multiple machines |
287 |
regularly (on average once every 2 months the whole lot) |
288 |
|
289 |
-- |
290 |
Joost |