From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/f2fs-tools/files/, sys-fs/f2fs-tools/
Date: Thu, 1 Sep 2022 02:00:52 +0000 (UTC) [thread overview]
Message-ID: <1661997497.7bd9cba226e32e2a53d7103a62ab58f5289b0c25.sam@gentoo> (raw)
commit: 7bd9cba226e32e2a53d7103a62ab58f5289b0c25
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 1 01:58:17 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 1 01:58:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bd9cba2
sys-fs/f2fs-tools: fix build w/ app-arch/lz4-1.9.4
Closes: https://bugs.gentoo.org/867691
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ols-9999.ebuild => f2fs-tools-1.15.0-r1.ebuild} | 12 +++++++----
sys-fs/f2fs-tools/f2fs-tools-9999.ebuild | 2 +-
.../files/f2fs-tools-1.15.0-lz4-1.9.4.patch | 25 ++++++++++++++++++++++
3 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild b/sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
similarity index 68%
copy from sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
copy to sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
index 106339c983bf..654499bcdb8b 100644
--- a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
+++ b/sys-fs/f2fs-tools/f2fs-tools-1.15.0-r1.ebuild
@@ -3,15 +3,15 @@
EAPI=8
-inherit git-r3 autotools
+inherit autotools
DESCRIPTION="Tools for Flash-Friendly File System (F2FS)"
HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/about/"
-EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git"
-EGIT_BRANCH="dev"
+SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git/snapshot/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0/9"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
IUSE="selinux"
RDEPEND="
@@ -19,13 +19,17 @@ RDEPEND="
elibc_musl? ( sys-libs/queue-standalone )"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.15.0-lz4-1.9.4.patch
+)
+
src_prepare() {
default
eautoreconf
}
src_configure() {
- #This is required to install to /sbin, bug #481110
+ # This is required to install to /sbin, bug #481110
econf \
--bindir="${EPREFIX}"/sbin \
--disable-static \
diff --git a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild b/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
index 106339c983bf..45de5c193d7b 100644
--- a/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
+++ b/sys-fs/f2fs-tools/f2fs-tools-9999.ebuild
@@ -25,7 +25,7 @@ src_prepare() {
}
src_configure() {
- #This is required to install to /sbin, bug #481110
+ # This is required to install to /sbin, bug #481110
econf \
--bindir="${EPREFIX}"/sbin \
--disable-static \
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
new file mode 100644
index 000000000000..4194054271db
--- /dev/null
+++ b/sys-fs/f2fs-tools/files/f2fs-tools-1.15.0-lz4-1.9.4.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/867691
+https://github.com/jaegeuk/f2fs-tools/commit/b9e0985dc2e8f0a15faca21fa208afae57593486
+
+From: Jaegeuk Kim <jaegeuk@kernel.org>
+Date: Mon, 29 Aug 2022 11:03:35 -0700
+Subject: [PATCH] f2fs-tools: fix build error on lz4-1.9.4
+
+LZ4_STREAMSIZE_U64 is undefined in new lz4 lib.
+
+Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
+--- a/fsck/compress.c
++++ b/fsck/compress.c
+@@ -32,10 +32,7 @@
+ #ifdef HAVE_LIBLZ4
+ #define LZ4_MEMORY_USAGE 14
+ #define LZ4_MAX_INPUT_SIZE 0x7E000000 /* 2 113 929 216 bytes */
+-#ifndef LZ4_STREAMSIZE
+-#define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(long long))
+-#endif
+-#define LZ4_MEM_COMPRESS LZ4_STREAMSIZE
++#define LZ4_MEM_COMPRESS sizeof(LZ4_stream_t)
+ #define LZ4_ACCELERATION_DEFAULT 1
+ #define LZ4_WORK_SIZE ALIGN_UP(LZ4_MEM_COMPRESS, 8)
+ #endif
+
next reply other threads:[~2022-09-01 2:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-01 2:00 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-15 15:58 [gentoo-commits] repo/gentoo:master commit in: sys-fs/f2fs-tools/files/, sys-fs/f2fs-tools/ Sam James
2020-01-08 15:17 Mikle Kolyada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1661997497.7bd9cba226e32e2a53d7103a62ab58f5289b0c25.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox