Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge @preserved-rebuild keeps rebuilding binutils
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 198

PostPosted: Mon Jul 17, 2017 7:44 pm    Post subject: emerge @preserved-rebuild keeps rebuilding binutils Reply with quote

Code:
!!! existing preserved libs:
>>> package: sys-libs/binutils-libs-2.27
 *  - /usr/lib64/libbfd-2.25.1.so
 *      used by /usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so (sys-devel/binutils-2.25.1-r1)


Mostly I'm just going "huh!?"

Help?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19441
Location: here

PostPosted: Mon Jul 17, 2017 7:48 pm    Post subject: Reply with quote

What binutils you have enabled (eselect binutils list)? You have removed old version of binutils with emerge -a --depclean?

Reference:
https://forums.gentoo.org/viewtopic-t-1061094-start-0.html
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 198

PostPosted: Mon Jul 17, 2017 8:12 pm    Post subject: Reply with quote

Code:
# emerge -a -depclean
emerge: can't specify both of "--emptytree" and "--noreplace".


Something's not right here.

I --oneshot emerged binutils-libs-2.27 and it doesn't show up on "eselect binutils list"

I double-check that I have binutils set to the latest one (2.26.1) and try another "emerge @preserved-rebuild", and it's *still* emerging binutils-2.25.1-r1!

Turns out binutils 2.27-r1 is masked because "amd64", but somehow portage thinks I have/need binutils-libs 2.27 installed.

Updating binutils and binutils-libs to 2.28... (also updates cairo for some reason)

eselect binutils to 2.28

emerge @preserved-rebuild *still* wants to rebuild binutils 2.25.1-r1, and I still can't depclean (same error)

Letting it rebuild...

Code:

!!! existing preserved libs:
>>> package: sys-libs/binutils-libs-2.28-r1
 *  - /usr/lib64/libbfd-2.25.1.so
 *      used by /usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so (sys-devel/binutils-2.25.1-r1)


This is getting very confusing.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1615

PostPosted: Tue Jul 18, 2017 12:03 am    Post subject: Reply with quote

If I recall correctly, binutils is slotted, meaning you can have multiple copies of that package installed at the same time...

By default portage is going to pick the newest version that satisfies the package dependencies, so if you want to reference the older one you need to specify it with it's slot or by version.

As far as binutils and bintuils-lib, they are 2 separate packages; where binutils is slotted, the other isn't...

If you want to reference 2.25.1 directly, then do something like
Code:
emerge -1a =sys-devel/binutils-2.25.1-r1
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2575

PostPosted: Tue Jul 18, 2017 5:51 am    Post subject: Reply with quote

Illiander wrote:
eselect binutils to 2.28

emerge @preserved-rebuild *still* wants to rebuild binutils 2.25.1-r1, and I still can't depclean (same error)

Whould this solve your problem ...?
https://wiki.gentoo.org/wiki/Preserve-libs wrote:
In some cases, preserved libraries may remain even after the user has rebuilt the relevant package(s). In cases like these, repeated invocations of emerge @preserved-rebuild will not eliminate the preserved libraries. This indicates that the build system for a particular package causes it to inappropriately link against the old (preserved) version of the library, instead of the new one. If you find a package like this, then you should file a bug for the package maintainer (for example, see bug 230257). As a workaround, ...
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19441
Location: here

PostPosted: Tue Jul 18, 2017 5:53 am    Post subject: Reply with quote

charles17 wrote:
https://wiki.gentoo.org/wiki/Preserve-libs wrote:
In some cases, preserved libraries may remain even after the user has rebuilt the relevant package(s). In cases like these, repeated invocations of emerge @preserved-rebuild will not eliminate the preserved libraries. This indicates that the build system for a particular package causes it to inappropriately link against the old (preserved) version of the library, instead of the new one. If you find a package like this, then you should file a bug for the package maintainer (for example, see bug 230257). As a workaround, ...

And the workaround
https://wiki.gentoo.org/wiki/Preserve-libs wrote:
As a workaround, you can manually remove the old library (such as /lib/youroldlibrary.so) and then run revdep-rebuild in order to rebuild the packages which linked against it.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3465
Location: Germany

PostPosted: Tue Jul 18, 2017 6:09 am    Post subject: Reply with quote

Please set first the current binutils version with
eselect binutils
or
binutils-config

Illiander wrote:
Code:
# emerge -a -depclean
emerge: can't specify both of "--emptytree" and "--noreplace".

Here is a missing "-" on the --depclean option (--depclean instead -depclean).
And yes, a "emerge -a --depclean" would be fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum