Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613226 - emerge (emerge system) fails on @preserved-rebuild
Summary: emerge (emerge system) fails on @preserved-rebuild
Status: RESOLVED DUPLICATE of bug 563934
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-19 14:55 UTC by Nico Baggus
Modified: 2017-03-19 22:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Baggus 2017-03-19 14:55:14 UTC
emerge @preserved-rebuild just keeps on rebuilding the same item
I have seen this more often in the past, then a emerge -C <package> and emerge <package> could resolve the issue..

Somehow that doesn't strike me as a wise move in the case of binutils..

# eselect binutils list
 [1] x86_64-pc-linux-gnu-2.25.1
 [2] x86_64-pc-linux-gnu-2.26.1 *
# emerge -1 @preserved-rebuild
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-devel/binutils-2.25.1-r1::gentoo
>>> Installing (1 of 1) sys-devel/binutils-2.25.1-r1::gentoo

!!! existing preserved libs found
# emerge -1 @preserved-rebuild
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-devel/binutils-2.25.1-r1::gentoo
>>> Installing (1 of 1) sys-devel/binutils-2.25.1-r1::gentoo

!!! existing preserved libs found
# cat /var/lib/portage/preserved_libs_registry
{
    "sys-libs/binutils-libs:0": [
        "sys-libs/binutils-libs-2.27", 
        "17064", 
        [
            "/usr/lib64/libbfd-2.25.1.so"
        ]
    ]
}

# eix ^binutils$
[I] sys-devel/binutils
     Available versions:  
     (2.25.1) 2.25.1-r1
     (2.26.1) 2.26.1
     (2.27) ~2.27
     (2.28) **2.28
     (git)  **9999
       {cxx multitarget nls static-libs test vanilla zlib}
     Installed versions:  2.25.1-r1(2.25.1)(14:18:53 19-03-17)(cxx nls zlib -multitarget -static-libs -test -vanilla) 2.26.1(2.26.1)(19:40:21 11-03-17)(cxx nls -multitarget -static-libs -test -vanilla)
     Homepage:            https://sourceware.org/binutils/
     Description:         Tools necessary to build programs


# eix ^binutils-libs$
[I] sys-libs/binutils-libs
     Available versions:  2.25.1-r2(0/2.25.1) 2.27(0/2.27) ~2.28(0/2.28) {64-bit-bfd multitarget nls static-libs zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  2.27(23:01:05 17-03-17)(nls -64-bit-bfd -multitarget -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://sourceware.org/binutils/
     Description:         Core binutils libraries (libbfd, libopcodes, libiberty) for external packages
Comment 1 Nico Baggus 2017-03-19 14:58:32 UTC
Additional info:
# ls -l /usr/lib/*libbfd*
-rwxr-xr-x 1 root root 1211232  7 jun  2016 /usr/lib/libbfd-2.25.1.so
-rwxr-xr-x 1 root root 1275928 17 mrt 23:01 /usr/lib/libbfd-2.27.so
lrwxrwxrwx 1 root root      14 17 mrt 23:01 /usr/lib/libbfd.so -> libbfd-2.27.so

# equery b /usr/lib/libbfd-2.25.1.so
 * Searching for /usr/lib/libbfd-2.25.1.so ... 
sys-libs/binutils-libs-2.27 (/usr/lib64/libbfd-2.25.1.so)
Comment 2 Coacher 2017-03-19 15:03:04 UTC

*** This bug has been marked as a duplicate of bug 563934 ***
Comment 3 Nico Baggus 2017-03-19 15:49:02 UTC
ahem... just to state something obvious....
How can this be a duplicate of a revdep-rebuild issue?

(Revdep issue could be solved, but that isn;t the case for @preserved-rebuild, one year later)...
Comment 4 Brian Evans (RETIRED) gentoo-dev 2017-03-19 22:32:15 UTC
(In reply to Nico Baggus from comment #3)
> ahem... just to state something obvious....
> How can this be a duplicate of a revdep-rebuild issue?
> 
> (Revdep issue could be solved, but that isn;t the case for
> @preserved-rebuild, one year later)...

I suspect the wranglers saw bug 586108 and did what the toolchain maintainer called a dupe.

The real action needed to be taken is to depclean binutils-2.25.1-r1 to solve this issue.  This would also be proposed by 'emerge --ask --depclean' which emerge tells you to do after a full world update.

Once that is done, a preserved-rebuild will succeed if any references remain.