Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Latest binutils persist file from previous version
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
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Wed Jan 24, 2018 8:52 am    Post subject: [solved] Latest binutils persist file from previous version Reply with quote

Hi guys,

I had some servers which I didn't update for about maybe 1 year. I was actually able to update the system quite good, migrated from gcc 4.9 to 6.4, etc. following the guide.

But after full update the system requested me to run emerge @preserved-rebuild, fine, nothing new, but there is something suspicious (but I am not sure):
Code:
>>> package: sys-libs/binutils-libs-2.29.1-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)


So there is still file in my system which is part of previous version used by other file from preivous version:
Code:
acheron ~ # equery b /usr/lib64/libbfd-2.25.1.so
 * Searching for /usr/lib64/libbfd-2.25.1.so ...
sys-libs/binutils-libs-2.29.1-r1 (/usr/lib64/libbfd-2.25.1.so)
acheron ~ # equery b  /usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so
 * Searching for /usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so ...
sys-devel/binutils-2.25.1-r1 (/usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libopcodes-2.25.1.so)
acheron ~ # eix sys-devel/binutils
[?] sys-devel/binutils
     Available versions: 
     (2.25.1) [M]2.25.1-r1
     (2.26.1) [M]2.26.1
     (2.27) [M]~2.27-r1
     (2.28.1) [M]2.28.1
     (2.29.1) 2.29.1-r1
     (git)  **9999
       {cxx multitarget nls static-libs test vanilla zlib}
     Installed versions:  2.25.1-r1(2.25.1)(05:56:05 AM 08/11/2016)(cxx nls zlib -multitarget -static-libs -test -vanilla) 2.29.1-r1(2.29.1)(09:59:01 PM 01/23/2018)(cxx nls -multitarget -static-libs -test -vanilla)
     Homepage:            https://sourceware.org/binutils/
     Description:         Tools necessary to build programs


In the eix output, the 2.25.1-r1 version is marked as RED. When I try to run preserved emerge I get:
Code:
acheron ~ # emerge @preserved-rebuild

 * IMPORTANT: 19 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: config file '/etc/portage/package.keywords/net-p2p' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Calculating dependencies... done!
[ebuild   R   #] sys-devel/binutils-2.25.1-r1
[ebuild   R    ] dev-scheme/guile-1.8.8-r3
[ebuild     U  ] dev-lang/python-3.4.5-r1 [3.4.5] USE="{-test%}"
[ebuild     U  ] app-crypt/gnupg-2.2.4 [2.1.15] USE="smartcard* -wks-server%"

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by @preserved-rebuild (argument)
# /usr/portage/profiles/package.mask:
# Micha�� G��rny <mgorny@gentoo.org>, Andreas K. H��ttel <dilfridge@gentoo.org>,
# Matthias Maier <tamiko@gentoo.org> (21 May 2017)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
# (updated 27 Dec 2017 with gcc < 5.4)
=sys-devel/binutils-2.25.1-r1


So it is trying to pull back the obsolete version... :D Any idea how to break this situation?
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force


Last edited by archenroot on Wed Jan 24, 2018 10:38 am; edited 1 time in total
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Wed Jan 24, 2018 10:37 am    Post subject: Reply with quote

Ok, I fixed this situation by manually deleting the file:
Code:
oceanus ~ # mv /usr/lib64/libbfd-2.25.1.so .

_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Fri Jan 26, 2018 3:11 am    Post subject: Reply with quote

The correct solution is to uninstall the old obsolete binutils.
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