From c679b6bcbc3a675f7bfbdb703cea0689af6d73f8 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Mon, 25 Nov 2024 03:51:46 -0500 Subject: [PATCH] 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 --- media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild b/media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild index 46f1697664d69..76927fefe6ac3 100644 --- a/media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild +++ b/media-gfx/jpegoptim/jpegoptim-1.5.5.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="Utility to optimize JPEG files" HOMEPAGE="https://www.kokkonen.net/tjko/projects.html" @@ -23,6 +23,8 @@ PATCHES=( ) src_configure() { + use elibc_musl && append-cppflags -D__GNU_LIBRARY__ #944902 + local mycmakeargs=( -DUSE_MOZJPEG=no )