Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841347 - dev-libs/elfutils-0.187 fails to compile under musl: patch -p1 failed with elfutils-0.186-error-header.patch
Summary: dev-libs/elfutils-0.187 fails to compile under musl: patch -p1 failed with el...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 841395 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-04-27 16:57 UTC by bug
Modified: 2022-04-27 23:07 UTC (History)
2 users (show)

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


Attachments
emerge --info '=dev-libs/elfutils-0.187::gentoo' (file_841347.txt,18.24 KB, text/plain)
2022-04-27 16:58 UTC, bug
Details
emerge -pqv '=dev-libs/elfutils-0.187::gentoo' (file_841347.txt,135 bytes, text/plain)
2022-04-27 17:02 UTC, bug
Details
build log (file_841347.txt,3.40 KB, text/plain)
2022-04-27 17:02 UTC, bug
Details
My local patch (file_841347.txt,437 bytes, patch)
2022-04-27 17:11 UTC, bug
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bug 2022-04-27 16:57:12 UTC
The patch "elfutils-0.186-error-header.patch" is present upstream (https://sourceware.org/git/?p=elfutils.git;a=commit;h=90b9e91b961b794a4e58ab76d9191a5e7343584e)
but the elfutils-0.187 ebuild still tries to apply it, causing the build to fail.

Reproducible: Always

Steps to Reproduce:
1. Attempt to emerge dev-libs/elfutils-0.187::gentoo with a musl profile
(emerge =dev-libs/elfutils-0.187::gentoo)
Actual Results:  
The emerge fails.

Expected Results:  
The package would build.

"emerge --info" is in an attachment as it was too long.
Comment 1 bug 2022-04-27 16:58:12 UTC
Created attachment 775053 [details]
emerge --info '=dev-libs/elfutils-0.187::gentoo'
Comment 2 bug 2022-04-27 17:02:08 UTC
Created attachment 775056 [details]
emerge -pqv '=dev-libs/elfutils-0.187::gentoo'

The '[0.187]' local version is due to me patching the ebuild in my local repository.
Comment 3 bug 2022-04-27 17:02:48 UTC
Created attachment 775059 [details]
build log
Comment 4 bug 2022-04-27 17:11:08 UTC
Created attachment 775062 [details, diff]
My local patch

This is the quick fix I use locally.
Comment 5 Larry the Git Cow gentoo-dev 2022-04-27 20:51:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e3e60e31b710c901eaefa8835a9b39b6ddcb48b

commit 9e3e60e31b710c901eaefa8835a9b39b6ddcb48b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-27 20:51:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-27 20:51:13 +0000

    dev-libs/elfutils: update 0.187 musl patches
    
    Closes: https://bugs.gentoo.org/841347
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/elfutils/Manifest              | 1 +
 dev-libs/elfutils/elfutils-0.187.ebuild | 9 +++++----
 2 files changed, 6 insertions(+), 4 deletions(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-27 20:51:45 UTC
Thanks! Sorry for the inconvenience.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-27 23:07:50 UTC
*** Bug 841395 has been marked as a duplicate of this bug. ***