Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/erofs-utils/files/, sys-fs/erofs-utils/
Date: Tue, 18 Jan 2022 07:58:55
Message-Id: 1642492721.8bb15cf3b80f086cf3b4a9133e47abe9d60d6624.flow@gentoo
1 commit: 8bb15cf3b80f086cf3b4a9133e47abe9d60d6624
2 Author: WANG Xuerui <git <AT> xen0n <DOT> name>
3 AuthorDate: Tue Jan 18 06:54:33 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 18 07:58:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb15cf3
7
8 sys-fs/erofs-utils: fix build on musl
9
10 Closes: https://bugs.gentoo.org/831015
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: WANG Xuerui <git <AT> xen0n.name>
13 Closes: https://github.com/gentoo/gentoo/pull/23850
14 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
15
16 sys-fs/erofs-utils/erofs-utils-1.4.ebuild | 1 +
17 .../files/1.4-fsck-add-missing-include.patch | 31 ++++++++++++++++++++++
18 2 files changed, 32 insertions(+)
19
20 diff --git a/sys-fs/erofs-utils/erofs-utils-1.4.ebuild b/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
21 index be9b257859bf..158c90277a0b 100644
22 --- a/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
23 +++ b/sys-fs/erofs-utils/erofs-utils-1.4.ebuild
24 @@ -26,6 +26,7 @@ BDEPEND="virtual/pkgconfig"
25
26 PATCHES=(
27 "${FILESDIR}/${PV}-dump-fix-de-nid-issues.patch"
28 + "${FILESDIR}/${PV}-fsck-add-missing-include.patch"
29 )
30
31 src_prepare() {
32
33 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
34 new file mode 100644
35 index 000000000000..8e4f6ac3d336
36 --- /dev/null
37 +++ b/sys-fs/erofs-utils/files/1.4-fsck-add-missing-include.patch
38 @@ -0,0 +1,31 @@
39 +From 2ac662b01de904802da4e84d0738e47bf573efde Mon Sep 17 00:00:00 2001
40 +From: Alexander Kanavin <alex@××××××××××.de>
41 +Date: Mon, 6 Dec 2021 20:14:03 +0100
42 +Subject: [PATCH 2/2] fsck/main.c: add missing include
43 +
44 +Otherwise musl C library builds fail with missing S_IFMT/S_IFDIR
45 +definitions.
46 +
47 +Link: https://lore.kernel.org/r/20211206191403.1435229-1-alex@××××××××××.de
48 +Reviewed-by: Gao Xiang <hsiangkao@×××××××××××××.com>
49 +Signed-off-by: Alexander Kanavin <alex@××××××××××.de>
50 +Signed-off-by: Gao Xiang <hsiangkao@×××××××××××××.com>
51 +---
52 + fsck/main.c | 1 +
53 + 1 file changed, 1 insertion(+)
54 +
55 +diff --git a/fsck/main.c b/fsck/main.c
56 +index aefa881..ad48e35 100644
57 +--- a/fsck/main.c
58 ++++ b/fsck/main.c
59 +@@ -6,6 +6,7 @@
60 + #include <stdlib.h>
61 + #include <getopt.h>
62 + #include <time.h>
63 ++#include <sys/stat.h>
64 + #include "erofs/print.h"
65 + #include "erofs/io.h"
66 + #include "erofs/decompress.h"
67 +--
68 +2.34.1
69 +