Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What's the best way to force a particular version of a dependency
Date: Sun, 07 Jun 2020 20:20:15
Message-Id: 1c983806-5cee-a857-6e6c-1cb9f26da1c5@web.de
In Reply to: Re: [gentoo-user] What's the best way to force a particular version of a dependency by Rich Freeman
1 On 2020-06-07 21:30, Rich Freeman wrote:
2 > On Sun, Jun 7, 2020 at 2:56 PM n952162 <n952162@×××.de> wrote:
3 >>
4 >> $ equery list \* | grep readline
5 >> sys-libs/readline-7.0_p5-r1
6 >>
7 >> But, given your answer about exclusivity/inclusivity in the other thread, I guess this result is questionable...
8 > This is just showing what version you have installed, not what
9 > versions are available.
10 >
11 >> The ebuild for bash-5.0_p17 has:
12 >>
13 >> READLINE_VER="8.0"
14 >>
15 >> The ebuilds for other the other users don't, I believe.
16 > So, first, this is just a random local variable and has no meaning in
17 > and of itself. It is used in the dependency string which makes that
18 > version of bash dependent on readline v8 specifically. Other packages
19 > that don't list a version of readline will accept any version that
20 > isn't masked/etc. So they're fine with v8.
21 >
22 >> The emerge that I used was this:
23 >>
24 >> emerge -auDv --verbose-conflicts --changed-use --keep-going --with-bdeps=y --changed-deps --backtrack=100 @system
25 > Yeah, you might have to include the other packages that need readline
26 > if portage complains.
27
28
29 I don't understand this - what can I add to @system to get @system to
30 update?
31
32 Ah, you mean that since /readline/ is used by *~*@system packages ...
33 I'll try @world ... oh, that's not inclusive of @system, perhaps.
34
35 Is emerge @system @world the ace?
36
37
38 >
39 >> However, I was just able to get it to build with this script:
40 >>
41 >> $ cat update-readline
42 >> #!/usr/bin/env bash
43 >> emerge -uUv $(cat <<-eof
44 >> sys-libs/readline
45 >> dev-db/postgresql
46 >> sys-apps/gawk
47 >> net-wireless/wpa_supplicant
48 >> sys-fs/lvm2
49 >> dev-lang/python
50 >> dev-lang/lua
51 >> sci-visualization/gnuplot
52 >> dev-db/postgresql
53 >> app-text/hunspell
54 >> sys-fs/udftools
55 >> sys-block/parted
56 >> x11-wm/fvwm
57 >> net-misc/ntp
58 >> sys-devel/gdb
59 >> dev-db/postgresql
60 >> sys-libs/gdbm
61 >> net-mail/mailutils
62 >> app-misc/rlwrap
63 >> sys-devel/bc
64 >> dev-libs/libxml2
65 >> net-dns/bind-tools
66 >> eof
67 >> )
68 >>
69 > That will probably work. Offhand I'm not sure if you need to add -1 /
70 > --oneshot to that to prevent all that cruft from being added to your
71 > world file.
72 >
73
74 No, it hadn't worked.  I oversaw this:
75
76 WARNING: One or more updates/rebuilds have been skipped due to a
77 dependency conflict:
78
79 sys-libs/readline:0
80
81   (sys-libs/readline-8.0_p4:0/8::gentoo, ebuild scheduled for merge)
82 conflicts with
83     sys-libs/readline:0/7= required by
84 (dev-libs/libxml2-2.9.9-r3:2/2::gentoo, installed)
85                      ^^^^^
86
87 dev-libs/libxml2:2
88
89   (dev-libs/libxml2-2.9.9-r3:2/2::gentoo, ebuild scheduled for merge)
90 conflicts with
91 dev-libs/libxml2[python,python_targets_python3_6(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),python_single_target_python3_6(+)]
92 required by (dev-util/itstool-2.0.6:0/0::gentoo, installed)
93
94
95
96 Lots built, but nothing is changed.  I'll try @system @world

Replies