main/btrfs-progs: fix implicit basename declaration

This commit is contained in:
Sören Tempel 2024-05-12 14:18:38 +02:00
parent fd74ab2633
commit ea20c0c2cb
2 changed files with 17 additions and 0 deletions

View File

@ -45,6 +45,7 @@ subpackages="
source="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$pkgver.tar.xz
btrfs-scan.initd
remove-sphinx_rtd_theme.patch
basename.patch
"
builddir="$srcdir/$pkgname-v$pkgver"
# most pass, one fails to build (fsstress renameat2)
@ -104,4 +105,5 @@ sha512sums="
b5f0694e56eecf1956313b3406610c2e22658ace51a636d79efe996780bb0b03fed95e68a8c9a11dd8649958c0e7dbc7417bb479859365d47b52e478f6830d46 btrfs-progs-v6.8.1.tar.xz
8f8757e094e5cb3b2748e2b41ba3c50d4535e24c5ced3b31eea6457f61f9fe90894a51d512d306ec8ea20ace6bb8dfe00422d3cbea9734568b492a044d4b2018 btrfs-scan.initd
c8354118cc4f17d19213a99580c2d8c0cf3173a91c5e42a62c8a7d3b2b66395419136b9761d70503ced0fc959cf8071ae2e2dc1667f000bf0ac86eddc9253bb3 remove-sphinx_rtd_theme.patch
8f88c06bd244f41cb318b5f432edcf8d7db06dfdb886e75f1b33f6e911a772f32b3b5d67181967469706cf29a37acbe4bc9ec63f6f16a6450b061f17ae1d2fa8 basename.patch
"

View File

@ -0,0 +1,15 @@
Include libgen.h for the basename(3) function prototype.
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
diff -upr btrfs-progs-v6.8.1.orig/common/device-utils.c btrfs-progs-v6.8.1/common/device-utils.c
--- btrfs-progs-v6.8.1.orig/common/device-utils.c 2024-05-12 12:31:38.711451023 +0200
+++ btrfs-progs-v6.8.1/common/device-utils.c 2024-05-12 12:31:51.201469868 +0200
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
+#include <libgen.h>
#include <blkid/blkid.h>
#include "kernel-lib/sizes.h"
#include "kernel-shared/disk-io.h"