Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/f2fs-tools/files/, sys-fs/f2fs-tools/
Date: Thu, 01 Sep 2022 02:00:56
Message-Id: 1661997497.7bd9cba226e32e2a53d7103a62ab58f5289b0c25.sam@gentoo
1 commit: 7bd9cba226e32e2a53d7103a62ab58f5289b0c25
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 01:58:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 01:58:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bd9cba2
7
8 sys-fs/f2fs-tools: fix build w/ app-arch/lz4-1.9.4
9
10 Closes: https://bugs.gentoo.org/867691
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 ...ols-9999.ebuild => f2fs-tools-1.15.0-r1.ebuild} | 12 +++++++----
14 sys-fs/f2fs-tools/f2fs-tools-9999.ebuild | 2 +-
15 .../files/f2fs-tools-1.15.0-lz4-1.9.4.patch | 25 ++++++++++++++++++++++
16 3 files changed, 34 insertions(+), 5 deletions(-)
17
18 diff --git a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild b/sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
19 similarity index 68%
20 copy from sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
21 copy to sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
22 index 106339c983bf..654499bcdb8b 100644
23 --- a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
24 +++ b/sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
25 @@ -3,15 +3,15 @@
26
27 EAPI=8
28
29 -inherit git-r3 autotools
30 +inherit autotools
31
32 DESCRIPTION="Tools for Flash-Friendly File System (F2FS)"
33 HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/about/"
34 -EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git"
35 -EGIT_BRANCH="dev"
36 +SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git/snapshot/${P}.tar.gz"
37
38 LICENSE="GPL-2"
39 SLOT="0/9"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
41 IUSE="selinux"
42
43 RDEPEND="
44 @@ -19,13 +19,17 @@ RDEPEND="
45 elibc_musl? ( sys-libs/queue-standalone )"
46 DEPEND="${RDEPEND}"
47
48 +PATCHES=(
49 + "${FILESDIR}"/${PN}-1.15.0-lz4-1.9.4.patch
50 +)
51 +
52 src_prepare() {
53 default
54 eautoreconf
55 }
56
57 src_configure() {
58 - #This is required to install to /sbin, bug #481110
59 + # This is required to install to /sbin, bug #481110
60 econf \
61 --bindir="${EPREFIX}"/sbin \
62 --disable-static \
63
64 diff --git a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild b/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
65 index 106339c983bf..45de5c193d7b 100644
66 --- a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
67 +++ b/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
68 @@ -25,7 +25,7 @@ src_prepare() {
69 }
70
71 src_configure() {
72 - #This is required to install to /sbin, bug #481110
73 + # This is required to install to /sbin, bug #481110
74 econf \
75 --bindir="${EPREFIX}"/sbin \
76 --disable-static \
77
78 diff --git a/sys-fs/f2fs-tools/files/f2fs-tools-1.15.0-lz4-1.9.4.patch b/sys-fs/f2fs-tools/files/f2fs-tools-1.15.0-lz4-1.9.4.patch
79 new file mode 100644
80 index 000000000000..4194054271db
81 --- /dev/null
82 +++ b/sys-fs/f2fs-tools/files/f2fs-tools-1.15.0-lz4-1.9.4.patch
83 @@ -0,0 +1,25 @@
84 +https://bugs.gentoo.org/867691
85 +https://github.com/jaegeuk/f2fs-tools/commit/b9e0985dc2e8f0a15faca21fa208afae57593486
86 +
87 +From: Jaegeuk Kim <jaegeuk@××××××.org>
88 +Date: Mon, 29 Aug 2022 11:03:35 -0700
89 +Subject: [PATCH] f2fs-tools: fix build error on lz4-1.9.4
90 +
91 +LZ4_STREAMSIZE_U64 is undefined in new lz4 lib.
92 +
93 +Signed-off-by: Jaegeuk Kim <jaegeuk@××××××.org>
94 +--- a/fsck/compress.c
95 ++++ b/fsck/compress.c
96 +@@ -32,10 +32,7 @@
97 + #ifdef HAVE_LIBLZ4
98 + #define LZ4_MEMORY_USAGE 14
99 + #define LZ4_MAX_INPUT_SIZE 0x7E000000 /* 2 113 929 216 bytes */
100 +-#ifndef LZ4_STREAMSIZE
101 +-#define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(long long))
102 +-#endif
103 +-#define LZ4_MEM_COMPRESS LZ4_STREAMSIZE
104 ++#define LZ4_MEM_COMPRESS sizeof(LZ4_stream_t)
105 + #define LZ4_ACCELERATION_DEFAULT 1
106 + #define LZ4_WORK_SIZE ALIGN_UP(LZ4_MEM_COMPRESS, 8)
107 + #endif
108 +