diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-11-12 15:21:08 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-18 03:53:24 +0000 |
commit | f83ba8a5a579ebfe1ee01f894f3d56443cce4986 (patch) | |
tree | 2f9ee69b76c32cf9169a2b69718a2220ff1acf49 /net-print/cups | |
parent | net-print/cups: re-enable tests (diff) | |
download | gentoo-f83ba8a5a579ebfe1ee01f894f3d56443cce4986.tar.gz gentoo-f83ba8a5a579ebfe1ee01f894f3d56443cce4986.tar.bz2 gentoo-f83ba8a5a579ebfe1ee01f894f3d56443cce4986.zip |
net-print/cups: avoid running unittests in src_compile
If USE=test, an option was passed to configure that makes unittest
binaries be built, and as a side effect also runs them. But we really do
not want to run tests in src_compile, as FEATURES=test might not be set.
Crudely hack around this by overriding the autoconf variable that would
normally be set by `$(use_enable test unit-tests)`, when running the
test invocation itself. As a side effect, this also moves the
test-program compilation to src_test.
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-print/cups')
-rw-r--r-- | net-print/cups/cups-2.4.7-r2.ebuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net-print/cups/cups-2.4.7-r2.ebuild b/net-print/cups/cups-2.4.7-r2.ebuild index 3f63cd43a70c..d8a193a64337 100644 --- a/net-print/cups/cups-2.4.7-r2.ebuild +++ b/net-print/cups/cups-2.4.7-r2.ebuild @@ -30,8 +30,6 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="acl dbus debug kerberos openssl pam selinux static-libs systemd test usb X xinetd zeroconf" -# As of 2.4.2, they don't actually seem to be interactive (they pass some flags -# by default to input for us), but they fail on some greyscale issue w/ poppler? RESTRICT="!test? ( test )" BDEPEND=" @@ -167,7 +165,6 @@ multilib_src_configure() { $(use_enable kerberos gssapi) $(multilib_native_use_enable pam) $(use_enable static-libs static) - $(use_enable test unit-tests) --with-tls=$(usex openssl openssl gnutls) $(use_with systemd ondemand systemd) $(multilib_native_use_enable usb libusb) @@ -222,7 +219,12 @@ multilib_src_test() { mkdir "${T}"/cups-tests || die # We only build some of CUPS for multilib, so can't run the tests. - multilib_is_native_abi && default + if multilib_is_native_abi; then + # avoid building *and running* test binaries in src_compile + # https://github.com/OpenPrinting/cups/commit/b1d42061e9286f50eefc851ed906d17c6e80c4b0 + emake UNITTESTS=unittests + default + fi } multilib_src_install() { |