From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] What's the best way to force a particular version of a dependency
Date: Sun, 07 Jun 2020 23:30:59 +0200 [thread overview]
Message-ID: <832F5D51-72AF-4C34-BD4C-00A020BBF773@antarean.org> (raw)
In-Reply-To: <CAGfcS_nXe-tprpNCXDJs0ShJ1DfjdJJ3g=Z0jxQVBnwTuxHBiA@mail.gmail.com>
On 7 June 2020 21:30:19 CEST, Rich Freeman <rich0@gentoo.org> wrote:
>On Sun, Jun 7, 2020 at 2:56 PM n952162 <n952162@web.de> wrote:
>>
>>
>> $ equery list \* | grep readline
>> sys-libs/readline-7.0_p5-r1
>>
>> But, given your answer about exclusivity/inclusivity in the other
>thread, I guess this result is questionable...
>
>This is just showing what version you have installed, not what
>versions are available.
>
>>
>> The ebuild for bash-5.0_p17 has:
>>
>> READLINE_VER="8.0"
>>
>> The ebuilds for other the other users don't, I believe.
>
>So, first, this is just a random local variable and has no meaning in
>and of itself. It is used in the dependency string which makes that
>version of bash dependent on readline v8 specifically. Other packages
>that don't list a version of readline will accept any version that
>isn't masked/etc. So they're fine with v8.
>
>>
>> The emerge that I used was this:
>>
>> emerge -auDv --verbose-conflicts --changed-use --keep-going
>--with-bdeps=y --changed-deps --backtrack=100 @system
>
>Yeah, you might have to include the other packages that need readline
>if portage complains.
>
>>
>> However, I was just able to get it to build with this script:
>>
>> $ cat update-readline
>> #!/usr/bin/env bash
>> emerge -uUv $(cat <<-eof
>> sys-libs/readline
>> dev-db/postgresql
>> sys-apps/gawk
>> net-wireless/wpa_supplicant
>> sys-fs/lvm2
>> dev-lang/python
>> dev-lang/lua
>> sci-visualization/gnuplot
>> dev-db/postgresql
>> app-text/hunspell
>> sys-fs/udftools
>> sys-block/parted
>> x11-wm/fvwm
>> net-misc/ntp
>> sys-devel/gdb
>> dev-db/postgresql
>> sys-libs/gdbm
>> net-mail/mailutils
>> app-misc/rlwrap
>> sys-devel/bc
>> dev-libs/libxml2
>> net-dns/bind-tools
>> eof
>> )
>>
>
>That will probably work. Offhand I'm not sure if you need to add -1 /
>--oneshot to that to prevent all that cruft from being added to your
>world file.
You need to add "-1" or "--oneshot".
As this has been used, I would definitely expect the world-file to be full of this, causing issues with updates later.
Also, by restricting to @system, any packages not in @system with a restriction on readline V8 will cause the mentioned problem.
@system is, for me, a lasr resort, but I tend to move my world file away (rename) and put it back once @system is done and a depclean finished. This is usually only needed after not updating for a while and/or big changes in the tree.
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
next prev parent reply other threads:[~2020-06-07 21:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-07 18:16 [gentoo-user] What's the best way to force a particular version of a dependency n952162
2020-06-07 18:33 ` Rich Freeman
2020-06-07 18:56 ` n952162
2020-06-07 19:30 ` Rich Freeman
2020-06-07 19:38 ` n952162
2020-06-07 21:03 ` Mark Knecht
2020-06-07 21:15 ` n952162
2020-06-07 21:20 ` Mark Knecht
2020-06-07 21:16 ` Rich Freeman
2020-06-08 9:12 ` Peter Humphrey
2020-06-08 9:18 ` Neil Bothwick
2020-06-08 9:34 ` Peter Humphrey
2020-06-07 20:12 ` n952162
2020-06-07 21:07 ` Dale
2020-06-07 21:20 ` Rich Freeman
2020-06-07 21:33 ` Dale
2020-06-07 21:30 ` J. Roeleveld [this message]
2020-06-07 21:37 ` Dale
2020-06-07 21:45 ` n952162
2020-06-07 22:22 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=832F5D51-72AF-4C34-BD4C-00A020BBF773@antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox