Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945970 - dev-libs/nettle-3.10: fails to compile with musl /gcc15
Summary: dev-libs/nettle-3.10: fails to compile with musl /gcc15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-06 14:07 UTC by meartzheast877
Modified: 2025-03-29 17:49 UTC (History)
1 user (show)

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


Attachments
The build log (build.log,16.22 KB, text/plain)
2024-12-06 14:07 UTC, meartzheast877
Details
emerge --info (info.log,5.85 KB, text/plain)
2024-12-06 14:08 UTC, meartzheast877
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)