diff --git a/srcpkgs/xbps/patches/0003-xbps-create-do-not-use-FTW_MOUNT-with-nftw-3.patch b/srcpkgs/xbps/patches/0003-xbps-create-do-not-use-FTW_MOUNT-with-nftw-3.patch new file mode 100644 index 00000000000..4d1a1b6a05c --- /dev/null +++ b/srcpkgs/xbps/patches/0003-xbps-create-do-not-use-FTW_MOUNT-with-nftw-3.patch @@ -0,0 +1,28 @@ +From 65370045321e97ee1cc82ead3fd6bb7c4b493b90 Mon Sep 17 00:00:00 2001 +From: Juan RP +Date: Wed, 8 Jan 2014 20:16:02 +0100 +Subject: [PATCH 3/3] xbps-create: do not use FTW_MOUNT with nftw(3). + +There's not much point in using FTW_MOUNT anyway because we don't care +if files are in another filesystem. This makes it work with musl +(which uses a different behaviour when FTW_MOUNT is set). +--- + bin/xbps-create/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c +index 1624539..6223f1c 100644 +--- a/bin/xbps-create/main.c ++++ b/bin/xbps-create/main.c +@@ -354,7 +354,7 @@ process_xentry(const char *key, const char *mutable_files) + static void + process_destdir(const char *mutable_files) + { +- if (nftw(".", ftw_cb, 20, FTW_PHYS|FTW_MOUNT) != 0) ++ if (nftw(".", ftw_cb, 20, FTW_PHYS) != 0) + die("failed to process destdir files (nftw):"); + + /* Process regular files */ +-- +1.8.5.2 + diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index bb2baedc5b9..36d495bcbd1 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.28.1 -revision=2 +revision=3 bootstrap=yes patch_args="-Np1" conf_files="/etc/xbps/xbps.conf"