summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2022-01-18 14:54:33 +0800
committerFlorian Schmaus <flow@gentoo.org>2022-01-18 08:58:41 +0100
commit8bb15cf3b80f086cf3b4a9133e47abe9d60d6624 (patch)
tree14fbd56bbec3f83491ecef21dc70d85345beab41 /sys-fs
parentsys-fs/erofs-utils: fix build on ppc64le (diff)
downloadgentoo-8bb15cf3b80f086cf3b4a9133e47abe9d60d6624.tar.gz
gentoo-8bb15cf3b80f086cf3b4a9133e47abe9d60d6624.tar.bz2
gentoo-8bb15cf3b80f086cf3b4a9133e47abe9d60d6624.zip
sys-fs/erofs-utils: fix build on musl
Closes: https://bugs.gentoo.org/831015 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: WANG Xuerui <git@xen0n.name> Closes: https://github.com/gentoo/gentoo/pull/23850 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/erofs-utils/erofs-utils-1.4.ebuild1
-rw-r--r--sys-fs/erofs-utils/files/1.4-fsck-add-missing-include.patch31
2 files changed, 32 insertions, 0 deletions
diff --git a/sys-fs/erofs-utils/erofs-utils-1.4.ebuild b/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
index be9b257859bf..158c90277a0b 100644
--- a/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
+++ b/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
@@ -26,6 +26,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PV}-dump-fix-de-nid-issues.patch"
+ "${FILESDIR}/${PV}-fsck-add-missing-include.patch"
)
src_prepare() {
diff --git a/sys-fs/erofs-utils/files/1.4-fsck-add-missing-include.patch b/sys-fs/erofs-utils/files/1.4-fsck-add-missing-include.patch
new file mode 100644
index 000000000000..8e4f6ac3d336
--- /dev/null
+++ b/sys-fs/erofs-utils/files/1.4-fsck-add-missing-include.patch
@@ -0,0 +1,31 @@
+From 2ac662b01de904802da4e84d0738e47bf573efde Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex@linutronix.de>
+Date: Mon, 6 Dec 2021 20:14:03 +0100
+Subject: [PATCH 2/2] fsck/main.c: add missing include
+
+Otherwise musl C library builds fail with missing S_IFMT/S_IFDIR
+definitions.
+
+Link: https://lore.kernel.org/r/20211206191403.1435229-1-alex@linutronix.de
+Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
+---
+ fsck/main.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/fsck/main.c b/fsck/main.c
+index aefa881..ad48e35 100644
+--- a/fsck/main.c
++++ b/fsck/main.c
+@@ -6,6 +6,7 @@
+ #include <stdlib.h>
+ #include <getopt.h>
+ #include <time.h>
++#include <sys/stat.h>
+ #include "erofs/print.h"
+ #include "erofs/io.h"
+ #include "erofs/decompress.h"
+--
+2.34.1
+