View previous topic :: View next topic |
Author |
Message |
ixuz n00b
Joined: 01 Jun 2009 Posts: 49
|
Posted: Sat Mar 23, 2024 1:13 pm Post subject: Profile 23 Upgrade: binutils error |
|
|
I am trying to switch from 17.1 to 23.0 (split-usr). Binpackages are used on my system.
Step 9 while emerging binutils with "emerge --ask --oneshot --getbinpkg sys-devel/binutils" gives the following error message:
Code: |
Local copy of remote index is up-to-date and will be used.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.40 s (backtrack: 0/20).
[binary R ] sys-devel/binutils-2.41-r5-1 USE="cet* zstd*"
Would you like to merge these packages? [Yes/No]
>>> Emerging binary (1 of 1) sys-devel/binutils-2.41-r5::gentoo
--2024-03-23 14:06:39-- https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/releases/amd64/binpackages/23.0/x86-64-v3/sys-devel/binutils/binutils-2.41-r5-1.gpkg.tar
Resolving mirror.eu.oneandone.net... 2001:8d8:5c0:404::3, 217.72.206.21
Connecting to mirror.eu.oneandone.net|2001:8d8:5c0:404::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7147520 (6,8M) [application/octet-stream]
Saving to: ‘/var/cache/binpkgs/sys-devel/binutils-2.41-r5.gpkg.tar.partial’
/var/cache/binpkgs/sys-devel/binutils-2.41-r5.gpkg. 100%[===================================================================================================================>] 6,82M 14,3MB/s in 0,5s
2024-03-23 14:06:40 (14,3 MB/s) - ‘/var/cache/binpkgs/sys-devel/binutils-2.41-r5.gpkg.tar.partial’ saved [7147520/7147520]
* binutils-2.41-r5.gpkg.tar MD5 SHA1 size ;-) ... [ ok ]
>>> Extracting info
*
* Your profile is of type merged-usr, but your directories
* on-disk are of type split-usr.
* Please switch back to your last valid profile setting and
* read the documentation about merged-usr and profile changes.
*
* ERROR: sys-devel/binutils-2.41-r5::gentoo failed (setup phase):
* ERROR: 23.0 merged-usr profile, but disk is split-usr
*
* Call stack:
* ebuild.sh, line 784: Called __ebuild_main 'setup'
* phase-functions.sh, line 991: Called __source_all_bashrcs
* ebuild.sh, line 426: Called __try_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
* ebuild.sh, line 487: Called __qa_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
* ebuild.sh, line 123: Called source '/usr/portage/profiles/releases/23.0/profile.bashrc'
* profile.bashrc, line 9: Called die
* The specific snippet of code:
* die "ERROR: 23.0 merged-usr profile, but disk is split-usr"
*
* If you need support, post the output of `emerge --info '=sys-devel/binutils-2.41-r5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.41-r5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.41-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.41-r5/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/binutils-2.41-r5/empty'
* S: '/var/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41'
|
I don't know why because "eselect profile show" gives:
Code: |
Current /etc/portage/make.profile symlink:
default/linux/amd64/23.0/split-usr
|
I never used actively merged-usr before... |
|
Back to top |
|
|
ixuz n00b
Joined: 01 Jun 2009 Posts: 49
|
Posted: Sat Mar 23, 2024 1:38 pm Post subject: |
|
|
On Reddit someone told me that binpackages for Profile 23 are only provided for merged-usr. So the news item is wrong when using binpackages. You have to avoid the --getbinpkg trigger...
Last edited by ixuz on Sat Mar 23, 2024 1:39 pm; edited 1 time in total |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1663
|
Posted: Sat Mar 23, 2024 1:39 pm Post subject: |
|
|
Try without --getbinpkg |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54266 Location: 56N 3W
|
Posted: Sat Mar 23, 2024 2:13 pm Post subject: |
|
|
ixuz,
Code: | * Your profile is of type merged-usr, but your directories
* on-disk are of type split-usr. |
That looks wrong. What profiles are you changing from/to? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ixuz n00b
Joined: 01 Jun 2009 Posts: 49
|
Posted: Sat Mar 23, 2024 2:28 pm Post subject: |
|
|
From default/linux/amd64/17.1 to default/linux/amd64/23.0/split-usr .
The new symlink is correct. The problem is clearly that when using binpackages from official binhosts this error pops up which is misleading. Doing the same steps without --getbinpkg works as expected.
I am now at the last step (world rebuild). After that I will switch to merged-usr and see if binpackages work again. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21644
|
Posted: Sat Mar 23, 2024 3:31 pm Post subject: |
|
|
This error is triggered if your on-disk layout disagrees with the environment variable PROFILE_23_USRTYPE, which appears to be set in profiles/features/split-usr/make.defaults. I suspect that binpackages use the environment of the profile active when they were built, so a binpackage built on a merged-usr profile always thinks it is installing in a merged-usr profile, regardless of the actual value of /etc/portage/make.profile.
[Edit: corrected path for the symlink. The first iteration of this post incorrectly said /etc/portage/profile; the correct value is /etc/portage/make.profile.]
Last edited by Hu on Sat Mar 23, 2024 4:20 pm; edited 1 time in total |
|
Back to top |
|
|
ixuz n00b
Joined: 01 Jun 2009 Posts: 49
|
Posted: Sat Mar 23, 2024 3:48 pm Post subject: |
|
|
So, what do I do now? Wait for upstream binhosts change the way how they build the packages or just do it like I mentioned before (switch to merged-usr on my side).
Besides on my system is no file /etc/portage/profile . |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54266 Location: 56N 3W
|
Posted: Sat Mar 23, 2024 4:06 pm Post subject: |
|
|
ixuz,
/etc/portage/profile is for you to make local adjustment to your profile, as set by eselect profile.
Most users do not need to use /etc/portage/profile _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21644
|
Posted: Sat Mar 23, 2024 4:19 pm Post subject: |
|
|
ixuz wrote: | Besides on my system is no file /etc/portage/profile . | Sorry. I meant to write /etc/portage/make.profile, which is a symlink pointing to your chosen profile, but I misremembered the exact name and did not check it. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1663
|
Posted: Sat Mar 23, 2024 5:07 pm Post subject: |
|
|
I am no expert on binpkgs and environment variables. But if this is the case, the safety check at profiles/releases/23.0/profile.bashrc in the repository can be improved.
This looks to have been reported with Bug 927631 |
|
Back to top |
|
|
ixuz n00b
Joined: 01 Jun 2009 Posts: 49
|
Posted: Sat Mar 23, 2024 6:31 pm Post subject: |
|
|
Can now confirm: Switching to "merged-usr" ( https://wiki.gentoo.org/wiki/Merge-usr ) after switching to the new 23 profile binpkgs are working/installing again without error. |
|
Back to top |
|
|
|