Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944111 - dev-util/fuzz-0.6-r3 fails to compile: getopt.c:404:21: error: too many arguments to function getenv
Summary: dev-util/fuzz-0.6-r3 fails to compile: getopt.c:404:21: error: too many argum...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-20 08:12 UTC by Agostino Sarubbo
Modified: 2025-02-13 12:41 UTC (History)
0 users

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


Attachments
build.log (build.log,66.62 KB, text/plain)
2024-11-20 08:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-20 08:12:06 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/fuzz-0.6-r3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0002
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-20 08:12:07 UTC
Created attachment 910472 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2025-02-13 12:41:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d042be2d8cb16f0a2c8a74611433346d2950760

commit 1d042be2d8cb16f0a2c8a74611433346d2950760
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-10 14:43:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-13 12:41:19 +0000

    dev-util/fuzz: fix compilation on musl
    
    Missing include for string.h, glibc transitively included strcmp
    Removed different getopt definition for non-glibc situation:
    we are all living in POSIX-land (Somewhat. Hopefully. Mostly.) and
    definitions for getopt are the same on musl and glibc.
    
    Closes: https://bugs.gentoo.org/944111
    Closes: https://bugs.gentoo.org/934059
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40514
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/fuzz/files/fuzz-0.6-musl.patch            | 34 ++++++++++++++++++++++
 .../{fuzz-0.6-r3.ebuild => fuzz-0.6-r4.ebuild}     |  7 +++--
 2 files changed, 39 insertions(+), 2 deletions(-)