summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-23 21:41:15 +0000
committerSam James <sam@gentoo.org>2024-11-23 21:54:08 +0000
commit40f2ded5329daed6e674d152288af0f42f0ba539 (patch)
tree10e6702299b50c201ee1cd287e0506c00a74eee1 /sys-apps/bfs
parentsys-apps/moar: add 1.29.0 (diff)
downloadgentoo-40f2ded5329daed6e674d152288af0f42f0ba539.tar.gz
gentoo-40f2ded5329daed6e674d152288af0f42f0ba539.tar.bz2
gentoo-40f2ded5329daed6e674d152288af0f42f0ba539.zip
sys-apps/bfs: add 4.0.4
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/bfs')
-rw-r--r--sys-apps/bfs/Manifest1
-rw-r--r--sys-apps/bfs/bfs-4.0.4.ebuild63
-rw-r--r--sys-apps/bfs/files/bfs-4.0.4-maybe-uninit.patch20
3 files changed, 84 insertions, 0 deletions
diff --git a/sys-apps/bfs/Manifest b/sys-apps/bfs/Manifest
index 9d3340598ed0..29616248b2ba 100644
--- a/sys-apps/bfs/Manifest
+++ b/sys-apps/bfs/Manifest
@@ -2,3 +2,4 @@ DIST bfs-3.3.1.tar.gz 262841 BLAKE2B bc848f4daa98172531e6c13100dcd1f3b722f4282ac
DIST bfs-4.0.1.tar.gz 272678 BLAKE2B c25165b469ea52ef2e0b73ae0cbcef485a739d25cd3c49d25cd0543ab97009b256637d0dab5cb1ce01c3da7ab77519ac6a5b9cff36634c81415ec309d46c7d1d SHA512 0697aab71e2101638fbb5923ec57b9439d6fdd212dccd2f1b90cd4a1bc9c72acca5dca92e9aa6efef06696b324cb6754784602064f35b529ff97d1933672d73c
DIST bfs-4.0.2.tar.gz 274986 BLAKE2B d87dd646a0c6bced3881426f8a82501e9a8ab19b0d4a249fd44d774cac9fd37a7a0cb01551a2af343b4f0c64f7b9e926cee8db67f5217bd39dd469a85b0b434e SHA512 a3ce3ccee27576a4a0ffb2bd46635aaabc5718cbe53eef5da52bc510dcf629a613802d0b2f95da47d009873e6ab1b87eb84087b30c227b27676bb14cac9f6e97
DIST bfs-4.0.3.tar.gz 277809 BLAKE2B c275e65ed6265dab81a10c70fd4012c0140aca0083a903535bb5a1ec7d9bcfb0637addf051430b7e370109d4ac843d7f6d3d4976cd469033d903ade3b5713c30 SHA512 444fa5a012f3b3222794f295f818358897f38c081714b593daeccddf2bb821884df8f9a6eaf3b0426ed7fe83483e31417abc9d97c34019b2e28e948654a5c304
+DIST bfs-4.0.4.tar.gz 278447 BLAKE2B 47a82b0e96d18891815799bd2878266368d3582aeb3aa0b1df9fa79b1eed9125a64dfe061d6f11f9a6265b47c2f3c9d38e21b2d82c7e7f1f9fb313b61d1478f8 SHA512 b372e68fc13624cd410edb64a0429fbb1dac2d01417c78821570b3b1d0e4f6d239d93acffcb5c077f84409edb013c9fec0b2bed50646ed52d62df90d6b1893fb
diff --git a/sys-apps/bfs/bfs-4.0.4.ebuild b/sys-apps/bfs/bfs-4.0.4.ebuild
new file mode 100644
index 000000000000..77ec1b738f0f
--- /dev/null
+++ b/sys-apps/bfs/bfs-4.0.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic toolchain-funcs
+
+DESCRIPTION="Breadth-first version of the UNIX find command"
+HOMEPAGE="https://tavianator.com/projects/bfs.html"
+SRC_URI="https://github.com/tavianator/bfs/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="0BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc"
+IUSE="acl caps debug io-uring selinux unicode"
+
+DEPEND="
+ acl? ( virtual/acl )
+ caps? ( sys-libs/libcap )
+ io-uring? ( sys-libs/liburing:= )
+ selinux? ( sys-libs/libselinux )
+ unicode? ( dev-libs/oniguruma:= )
+"
+RDEPEND="${DEPEND}"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ # Not available on Linux
+ acl_is_trivial_np acl_trivial fdclosedir getdents getprogname
+ posix_spawn_file_actions_addfchdir getmntinfo posix_getdents strtofflags
+ # Seems to be in POSIX 2024 but not yet in ncurses?
+ tcgetwinsize
+)
+
+PATCHES=(
+ "${FILESDIR}"/${P}-maybe-uninit.patch
+)
+
+src_configure() {
+ tc-export CC PKG_CONFIG
+ use debug || append-cppflags -DNDEBUG
+
+ edo ./configure \
+ $(use_with acl libacl) \
+ $(use_with caps libcap) \
+ $(use_with selinux libselinux) \
+ $(use_with io-uring liburing) \
+ $(use_with unicode oniguruma) \
+ V=1
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_test() {
+ # -n check gets confused so need manual src_test definition?
+ emake V=1 check
+}
+
+src_install() {
+ emake V=1 DESTDIR="${D}" install
+ einstalldocs
+}
diff --git a/sys-apps/bfs/files/bfs-4.0.4-maybe-uninit.patch b/sys-apps/bfs/files/bfs-4.0.4-maybe-uninit.patch
new file mode 100644
index 000000000000..be449fcfb1d9
--- /dev/null
+++ b/sys-apps/bfs/files/bfs-4.0.4-maybe-uninit.patch
@@ -0,0 +1,20 @@
+https://github.com/tavianator/bfs/commit/28c2b06a0477d2c84b7229d4e54056b1ec44ac36
+
+From 28c2b06a0477d2c84b7229d4e54056b1ec44ac36 Mon Sep 17 00:00:00 2001
+From: Tavian Barnes <tavianator@tavianator.com>
+Date: Mon, 11 Nov 2024 15:51:07 -0500
+Subject: [PATCH] color: Squelch a -Wmaybe-uninitialized warning on non-LTO
+ builds
+
+--- a/src/color.c
++++ b/src/color.c
+@@ -975,7 +975,7 @@ static const struct esc_seq *file_color(const struct colors *colors, const struc
+ goto error;
+ }
+
+- const struct bfs_stat *statbuf;
++ const struct bfs_stat *statbuf = NULL;
+ const struct esc_seq *color = NULL;
+
+ switch (type) {
+