Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:27:03 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
I also added
"--usepkg-exclude 'sys-kernel/gentoo-sources virtual/*" to
EMERGE_DEFAULT_OPTS, as was recommended by one of the guides anyway :)
Hm, I can't see any logic in Gentoo developers wasting electrons and key strokes to provide at least one "sys-kernel/gentoo-sources" and a ple- thora of "virtual/*" packages on the binhost and then advising to ex- clude them from being used. Which guide recommended that?
What if you try this :
emerge -auvDN --getbinpkgonly --with-bdeps=y --binpkg-respect-use=y -- keep-going world
You want to match the binhost flags:
https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart#x86-64-v3_variant
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.
Since I'm planning to use binary packages from x86-64-v3, I presume this should be changed to:
COMMON_FLAGS="-march=x86-64-v3 -O2 -pipe"
or, perhaps:
COMMON_FLAGS="-march=x86-64-v3 -mtune=znver4 -O2 -pipe" ?
I also have a hefty $CPU_FLA
GS_X86 (also added to $USE) from "cpuid2cpuflags" but am not worried
about this as packages that don't fit will simply be built from source
as usual.
1) What would be the preferred CFLAGS configuration
2) To reinstall the current source based packages with their binary equivalent, "--rebuilt-binaries" sufficient or should I just go for "-- emptytree @world"?
My only question that remains is whether I should change the existing
value for CFLAGS (I presume so). Currently, I have:
COMMON_FLAGS="-march=znver4 -O2 -pipe"
(yes CFLAGS etc are set to use $COMMON_FLAGS).
Since I'm planning to use binary packages from x86-64-v3, I presume this should be changed to:
COMMON_FLAGS="-march=x86-64-v3 -O2 -pipe"
or, perhaps:
COMMON_FLAGS="-march=x86-64-v3 -mtune=znver4 -O2 -pipe" ?
I also have a hefty $CPU_FLA
GS_X86 (also added to $USE) from "cpuid2cpuflags" but am not worried
about this as packages that don't fit will simply be built from source
as usual.
Anyway, in both cases running my usual:
emerge -aqvND --update --keep-going --with-bdeps=y @world
doesn't yield any changes to the system. I presume because, as of now, everything is up to date.
In contrast, adding "--rebuilt-binaries" shows a lot of binary packages
being pulled in and "--emptytree", as expected, shows a full rebuild
with a lot of binary packages being pulled in.
So, to the actual questions:
1) What would be the preferred CFLAGS configuration or, since "- march=znver4" is a newer subset of x86-64-v3, can I simply keep the
existing one?
2) To reinstall the current source based packages with their binary equivalent, "--rebuilt-binaries" sufficient or should I just go for "-- emptytree @world"?
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.