Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627576 - =dev-libs/elfutils-0.170-r1 stable request
Summary: =dev-libs/elfutils-0.170-r1 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: Was: =sys-devel/prelink-20130503 fail...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-11 23:08 UTC by Sergey Morozov
Modified: 2018-03-11 10:41 UTC (History)
4 users (show)

See Also:
Package list:
=dev-libs/elfutils-0.170-r1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
build.log (build.log,24.35 KB, text/x-log)
2017-08-11 23:08 UTC, Sergey Morozov
no flags Details
emerge --info '=sys-devel/prelink-20130503::gentoo' (emerge-info.txt,7.05 KB, text/plain)
2017-08-11 23:09 UTC, Sergey Morozov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Morozov 2017-08-11 23:08:34 UTC
Created attachment 488626 [details]
build.log

With =dev-libs/elfutils-0.166 prelink compiles successfully.
Comment 1 Sergey Morozov 2017-08-11 23:09:30 UTC
Created attachment 488628 [details]
emerge --info '=sys-devel/prelink-20130503::gentoo'
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-12 17:22:14 UTC
Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install
static libelf.a library. It should.

x86_64-pc-linux-gnu-gcc ... -static -o prelink cache.o ... -lelf
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lelf
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-12 17:56:49 UTC
(In reply to Sergei Trofimovich from comment #2)
> Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install
> static libelf.a library. It should.

It's caused by ebuild bug in 168->169 transition.
    use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
was converted to
    if use static-libs; then
        sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
    fi

Fixed as:

--- elfutils-0.170.ebuild       2017-08-12 18:42:20.994014938 +0100
+++ elfutils-0.170-r1.ebuild    2017-08-12 18:48:10.468236781 +0100
@@ -30,3 +30,3 @@
 
-       if use static-libs; then
+       if ! use static-libs; then
                sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die

Pushed elfutils-0.170-r1 as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0183043a118b18a4bf409fd842f754d1bc0506e0
Comment 4 EoD 2017-10-06 18:25:58 UTC
(In reply to Sergei Trofimovich from comment #3)
> (In reply to Sergei Trofimovich from comment #2)
> > Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install
> > static libelf.a library. It should.
> 
> It's caused by ebuild bug in 168->169 transition.
>     use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e
> '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
> was converted to
>     if use static-libs; then
>         sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::'
> lib{asm,dw,elf}/Makefile.in || die
>     fi
> 
> Fixed as:
> 
> --- elfutils-0.170.ebuild       2017-08-12 18:42:20.994014938 +0100
> +++ elfutils-0.170-r1.ebuild    2017-08-12 18:48:10.468236781 +0100
> @@ -30,3 +30,3 @@
>  
> -       if use static-libs; then
> +       if ! use static-libs; then
>                 sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::'
> lib{asm,dw,elf}/Makefile.in || die
> 
> Pushed elfutils-0.170-r1 as:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=0183043a118b18a4bf409fd842f754d1bc0506e0

Could we also fix this for the stable version of elfutils? 
Either make a new stable dev-libs/elfutils-0.169-r2 with those patches or stabilize the existing dev-libs/elfutils-0.170-r1
Comment 5 Pacho Ramos gentoo-dev 2017-12-03 12:17:45 UTC
This is still broken in stable (just hit when rebuilding world after profiles 17.0 switch)
Comment 6 Pacho Ramos gentoo-dev 2017-12-04 18:09:55 UTC
amd64/x86 stable
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-12 23:01:59 UTC
sparc stable (thanks to Rolf Eike Beer)
Comment 8 Markus Meier gentoo-dev 2017-12-18 18:59:00 UTC
arm stable
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-28 13:29:28 UTC
ia64 stabke
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-30 11:05:41 UTC
hppa stable (thanks to Rolf Eike Beer)
Comment 11 ernsteiswuerfel archtester 2018-01-01 21:59:05 UTC
ppc:

2 tests fail, but this is an improvement over previous stable 0.169-r1 (4 tests fail). See bug #619706
Comment 12 Tobias Klausmann (RETIRED) gentoo-dev 2018-01-20 18:06:03 UTC
Stable on alpha.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-03 22:19:09 UTC
ppc stable
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-11 10:41:57 UTC
ppc64 stable

Last arch. Closing.