https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-gfx/jpegoptim-1.5.5 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#CF0014
Created attachment 911855 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: CMakeFiles/jpegoptim.dir/getopt.c.o FAILED: CMakeFiles/jpegoptim.dir/jpegoptim.c.o /var/tmp/portage/media-gfx/jpegoptim-1.5.5/work/jpegoptim-1.5.5/getopt.c:299:21: error: too many arguments to function 'getenv'
Looks like getopt.c only gets used when !defined (__GNU_LIBRARY__) and it's kind of nasty/dated. As far as I can tell there is no problem with simply.. not using it with musl. This check may have been intended for another libc.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c679b6bcbc3a675f7bfbdb703cea0689af6d73f8 commit c679b6bcbc3a675f7bfbdb703cea0689af6d73f8 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-11-25 08:51:46 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-11-25 08:58:25 +0000 media-gfx/jpegoptim: avoid broken/dated getopt.c with musl *Should* fix bug #944902 but lazily haven't actually tried gcc15+musl given my ready-to-use musl chroot is llvm-musl. Did try it with glibc and gcc-15 is fine as-is though. Closes: https://bugs.gentoo.org/944902 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)