From: byte.size226@simplelogin.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Migrating existing Gentoo to binpkg
Date: Fri, 15 Nov 2024 14:52:56 +0000 [thread overview]
Message-ID: <173168238338.7.14071927941459129665.496068843@simplelogin.com> (raw)
In-Reply-To: <c41ca6b3-91d8-4c18-a5eb-d4e0b7dbce4e@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 2205 bytes --]
Thank you, both!
On 15/11/2024 14:05, Jacques Montier wrote:
> What if you try this :
> emerge -auvDN --getbinpkgonly --with-bdeps=y --binpkg-respect-use=y --
> keep-going world
This does indeed suggest to replace existing builds with the upstream
binary ones. I traced this to --getbinpkgonly which seems to force the
use of the binary packages over source builds where possible.
There are, however, minor differences between this and my earlier
example with --rebuilt-binaries. Using "--getbinpkgonly" suggests a few
downgrades, including to sys-kernel/gentoo-sources.
"--binpkg-respect-use=y" makes no difference as emerge(1) suggests this
is the default.
On 15/11/2024 14:15, Matt Jolly wrote:
> You want to match the binhost flags:
>
> https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart#x86-64-v3_variant
>
That was my assumption as well. But doing so and running a rebuild of
@world with --emptytree did not yield any differences in which binar
y
packages are used between "-march=x86-64-v3" and "-march=znver4".
What caught my attention was a passage from the detailed guide:
"""
* The builder and client architecture and CHOST must match.
* The CFLAGS and CXXFLAGS variables used to build the binary packages
must be compatible with all clients.
...
Portage can not validate if these requirements match. In case of doubt,
it is the responsibility of the system administrator to guard these
settings.
"""
This made me wonder if CFLAGS need to match exactly in a situation, such
as mine, where -march=znver4, being newer, is compatible and anything
built with has "-march=x86-64-v3" /should/ run fine.
If my understanding is correct, then the local value for CFLAGS should
only affect the source builds.
> If you're currently using x86-64-v4 there's no benefit to replacing the
> existing packages. Just let them age out and be replaced over time as
> as new versions are released.
Indeed, that's my
understanding too. Combined with being the same
version, I suspect this is why emerge is not suggesting to replace the
existing source builds with the binary builds, but is happy to do so
with the nuclear "--emptytree" approach.
Best Regards,
Victor
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next prev parent reply other threads:[~2024-11-15 14:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 12:42 [gentoo-user] Migrating existing Gentoo to binpkg byte.size226
2024-11-15 14:05 ` Jacques Montier
2024-11-15 14:15 ` Matt Jolly
2024-11-15 14:52 ` byte.size226 [this message]
2024-11-15 15:41 ` Eli Schwartz
2024-11-17 14:44 ` byte.size226
2024-11-18 9:21 ` Dr Rainer Woitok
2024-11-19 12:06 ` byte.size226
2024-11-15 15:36 ` Eli Schwartz
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=173168238338.7.14071927941459129665.496068843@simplelogin.com \
--to=byte.size226@simplelogin.com \
--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