diff --git a/srcpkgs/attr/patches/8a80d895dfd779373363c3a4b62ecce5a549efb2.patch b/srcpkgs/attr/patches/8a80d895dfd779373363c3a4b62ecce5a549efb2.patch new file mode 100644 index 00000000000..818161f1524 --- /dev/null +++ b/srcpkgs/attr/patches/8a80d895dfd779373363c3a4b62ecce5a549efb2.patch @@ -0,0 +1,27 @@ +From 8a80d895dfd779373363c3a4b62ecce5a549efb2 Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" +Date: Sat, 30 Mar 2024 10:17:10 +0100 +Subject: tools/attr.c: Add missing libgen.h include for basename(3) + +Fixes compilation issue with musl and modern C99 compilers. + +See: https://bugs.gentoo.org/926294 +--- + tools/attr.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/attr.c b/tools/attr.c +index f12e4af..6a3c1e9 100644 +--- a/tools/attr.c ++++ b/tools/attr.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + #include + +-- +cgit v1.1 + diff --git a/srcpkgs/attr/template b/srcpkgs/attr/template index b140ed631b9..dc2b3e8e14a 100644 --- a/srcpkgs/attr/template +++ b/srcpkgs/attr/template @@ -1,7 +1,7 @@ # Template file for 'attr' pkgname=attr version=2.5.2 -revision=1 +revision=2 bootstrap=yes build_style=gnu-configure configure_args="--libdir=/usr/lib${XBPS_TARGET_WORDSIZE}