commit: 9025c4dab44c413b48a9ac68b57330e2f7d3747b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Feb 8 05:53:41 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Feb 8 05:53:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9025c4da
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 <AT> gentoo.org> sys-apps/bfs/bfs-3.1.ebuild | 17 +++++++++++------ 1 file 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 }
