mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
main/attr: fix build with gcc14
Missing include for basename()
This commit is contained in:
parent
e4c5443e27
commit
52b5e5ad59
@ -2,7 +2,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=attr
|
||||
pkgver=2.5.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="utilities for managing filesystem extended attributes"
|
||||
options="checkroot !check" # attr.test fails with no error message
|
||||
url="https://savannah.nongnu.org/projects/attr"
|
||||
@ -10,7 +10,8 @@ arch="all"
|
||||
license="LGPL-2.1-or-later"
|
||||
checkdepends="perl"
|
||||
subpackages="$pkgname-static $pkgname-dev $pkgname-doc lib$pkgname:libs"
|
||||
source="https://download.savannah.nongnu.org/releases/attr/attr-$pkgver.tar.gz"
|
||||
source="https://download.savannah.nongnu.org/releases/attr/attr-$pkgver.tar.gz
|
||||
attr-basename.patch"
|
||||
|
||||
build() {
|
||||
OPTIMIZER="$CFLAGS" \
|
||||
@ -57,4 +58,5 @@ libs() {
|
||||
|
||||
sha512sums="
|
||||
7b8f210ab2233d82d282d36c10ac2f4b10e1ba9bd0f02e1f4e69b8f610cb3266bfac9796349b51b2f92fa6ef2c66c62f1a9c4ae18e202b00af3e251e3b469a24 attr-2.5.2.tar.gz
|
||||
f64a2a4319d61011ba6a72437c47fc1809dfe7254f54376d38c35481176767a91d3fe68727a8b7b316f0825a68be1459b20f3f2ecfd5cb9a3b3a56701182248f attr-basename.patch
|
||||
"
|
||||
|
11
main/attr/attr-basename.patch
Normal file
11
main/attr/attr-basename.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -Naur a/tools/attr.c b/tools/attr.c
|
||||
--- a/tools/attr.c 2024-08-03 05:18:35.620953300 -0400
|
||||
+++ b/tools/attr.c 2024-08-03 05:19:17.751848345 -0400
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
#include <attr/attributes.h>
|
||||
|
Loading…
Reference in New Issue
Block a user