Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 945970

Summary: dev-libs/nettle-3.10: fails to compile with musl /gcc15
Product: Gentoo Linux Reporter: meartzheast877
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: meartzheast877
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/39926
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: The build log
emerge --info

Description meartzheast877 2024-12-06 14:07:04 UTC
dev-libs/nettle does not compile because of a getenv() error, and it seems that several programs suffer from this, so far I have only seen 5, but there may be more.

Reproducible: Always

Steps to Reproduce:
1. Have a musl system
2. Try to compile nettle
Actual Results:  
It does not compile

Expected Results:  
It should compile and install successfully.
Comment 1 meartzheast877 2024-12-06 14:07:42 UTC
Created attachment 913438 [details]
The build log
Comment 2 meartzheast877 2024-12-06 14:08:07 UTC
Created attachment 913439 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-06 14:58:16 UTC
The issue is in ancient bundled copies of (fallback) getopt, so unfortunately, multiple bugs are correct (just saying in case you're worried they're dupes -- they're not unfortunately).
Comment 4 meartzheast877 2024-12-06 16:29:23 UTC
Should I put that these bugs are confirmed?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-06 16:30:48 UTC
We don't use UNCO/CONF in gentoo, really.
Comment 6 Larry the Git Cow gentoo-dev 2025-03-29 17:49:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f989abe49298272382368a2416df1671843c456

commit 2f989abe49298272382368a2416df1671843c456
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2025-01-01 08:44:59 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2025-03-29 17:48:34 +0000

    dev-libs/nettle: avoid broken/dated getopt.c with musl
    
    Closes: https://bugs.gentoo.org/945970
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/39926
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-libs/nettle/nettle-3.10.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)