commit:     9fd73a4fccf890d6732d22695276991d2777888e
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Wed Jan  1 08:52:32 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 29 16:11:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fd73a4f

sys-apps/gawk: avoid broken/dated getopt.c with musl

Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39927
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sys-apps/gawk/gawk-5.3.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys-apps/gawk/gawk-5.3.1.ebuild b/sys-apps/gawk/gawk-5.3.1.ebuild
index 116a94925b2f..2d4476058498 100644
--- a/sys-apps/gawk/gawk-5.3.1.ebuild
+++ b/sys-apps/gawk/gawk-5.3.1.ebuild
@@ -24,7 +24,7 @@ if [[ ${GAWK_IS_BETA} == yes || ${PV} == *_beta* ]] ; then
        SRC_URI="https://www.skeeve.com/gawk/${MY_P}.tar.gz";
 else
        VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gawk.asc
-       inherit verify-sig
+       inherit verify-sig flag-o-matic
 
        SRC_URI="mirror://gnu/gawk/${P}.tar.xz"
        SRC_URI+=" verify-sig? ( mirror://gnu/gawk/${P}.tar.xz.sig )"
@@ -60,6 +60,8 @@ fi
 src_prepare() {
        default
 
+       use elibc_musl && append-cppflags -D__GNU_LIBRARY__
+
        # Use symlinks rather than hardlinks, and disable version links
        sed -i \
                -e '/^LN =/s:=.*:= $(LN_S):' \

Reply via email to