summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/attr/APKBUILD14
-rw-r--r--system/attr/posix-basename-header.patch27
2 files changed, 33 insertions, 8 deletions
diff --git a/system/attr/APKBUILD b/system/attr/APKBUILD
index 17065b3c9..c37d58257 100644
--- a/system/attr/APKBUILD
+++ b/system/attr/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=attr
-pkgver=2.5.1
-pkgrel=1
+pkgver=2.5.2
+pkgrel=0
pkgdesc="Utilities for managing filesystem extended attributes"
url="https://savannah.nongnu.org/projects/attr"
arch="all"
@@ -12,12 +12,9 @@ checkdepends="perl"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang libattr"
source="https://download.savannah.nongnu.org/releases/attr/attr-$pkgver.tar.gz
test-runner-musl.patch
+ posix-basename-header.patch
"
-prepare() {
- default_prepare
-}
-
build() {
./configure \
--build=$CBUILD \
@@ -50,5 +47,6 @@ libattr() {
mv "$pkgdir"/lib/lib*.so.* "$subpkgdir"/lib/
}
-sha512sums="8b4c043d61f8f3e0cd098e701181069f51117b85fd6ba18bfe9af77d894ea671232377d4793ffc822e9259ceee6ac71d75732eb93b2830c6cb5d0d918ba2d21b attr-2.5.1.tar.gz
-da4b903ae0ba1c72bae60405745c1135d1c3c1cefd7525fca296f8dc7dac1e60e48eeba0ba80fddb035b24b847b00c5a9926d0d586c5d7989d0428e458d977d3 test-runner-musl.patch"
+sha512sums="7b8f210ab2233d82d282d36c10ac2f4b10e1ba9bd0f02e1f4e69b8f610cb3266bfac9796349b51b2f92fa6ef2c66c62f1a9c4ae18e202b00af3e251e3b469a24 attr-2.5.2.tar.gz
+da4b903ae0ba1c72bae60405745c1135d1c3c1cefd7525fca296f8dc7dac1e60e48eeba0ba80fddb035b24b847b00c5a9926d0d586c5d7989d0428e458d977d3 test-runner-musl.patch
+2345dff0f4b5e4f3bbed770c80930a3c295d7f3b83917ad97a81237e3e69402eebb1f6afb2c88e7d57eb57aa47a5eb6c8f30aaeba7395c9debae96c7a7a370de posix-basename-header.patch"
diff --git a/system/attr/posix-basename-header.patch b/system/attr/posix-basename-header.patch
new file mode 100644
index 000000000..818161f15
--- /dev/null
+++ b/system/attr/posix-basename-header.patch
@@ -0,0 +1,27 @@
+From 8a80d895dfd779373363c3a4b62ecce5a549efb2 Mon Sep 17 00:00:00 2001
+From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
+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 <errno.h>
+ #include <string.h>
+ #include <locale.h>
++#include <libgen.h>
+
+ #include <attr/attributes.h>
+
+--
+cgit v1.1
+