summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-08 05:53:41 +0000
committerSam James <sam@gentoo.org>2024-02-08 05:53:41 +0000
commit9025c4dab44c413b48a9ac68b57330e2f7d3747b (patch)
tree5bb26251e45d1bb09130971427203edf55bb839a /sys-apps/bfs
parentsys-devel/llvm: drop old <gcc-7.4 workaround (diff)
downloadgentoo-9025c4dab44c413b48a9ac68b57330e2f7d3747b.tar.gz
gentoo-9025c4dab44c413b48a9ac68b57330e2f7d3747b.tar.bz2
gentoo-9025c4dab44c413b48a9ac68b57330e2f7d3747b.zip
sys-apps/bfs: fix test configuration
On the bug, Tavian explains (thanks!) that everything is rebuilt if the configuration changes, so let's make sure to preserve the same USE_* options. Closes: https://bugs.gentoo.org/923979 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/bfs')
-rw-r--r--sys-apps/bfs/bfs-3.1.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/sys-apps/bfs/bfs-3.1.ebuild b/sys-apps/bfs/bfs-3.1.ebuild
index 773585e25921..7bf56ee3ed37 100644
--- a/sys-apps/bfs/bfs-3.1.ebuild
+++ b/sys-apps/bfs/bfs-3.1.ebuild
@@ -23,19 +23,24 @@ DEPEND="
"
RDEPEND="${DEPEND}"
-src_compile() {
- tc-export CC
- use debug || append-cppflags -DNDEBUG
-
+bfsmake() {
emake \
USE_ACL=$(usev acl '1') \
USE_ATTR=$(usev xattr '1') \
USE_LIBCAP=$(usev caps '1') \
USE_LIBURING=$(usev io-uring '1') \
- USE_ONIGURUMA=$(usev unicode '1')
+ USE_ONIGURUMA=$(usev unicode '1') \
+ "$@"
+}
+
+src_compile() {
+ tc-export CC
+ use debug || append-cppflags -DNDEBUG
+
+ bfsmake
}
src_test() {
# -n check gets confused so need manual src_test definition?
- emake check
+ bfsmake check
}