]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gnupg: disable tests to avoid running target binaries at build time
authorChen Qi <Qi.Chen@windriver.com>
Sun, 18 Feb 2024 02:57:08 +0000 (10:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Feb 2024 22:02:23 +0000 (22:02 +0000)
By default, the tests are built and run at do_compile and we can see
errors like below in log.do_compile:

  gnupg-2.4.4/tests/cms/inittests: line 99: ../../sm/gpgsm: cannot execute binary file: Exec format error

Note that the do_compile process still succeeds. However, we'd better avoid
executing these target binaries at build time.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gnupg/gnupg_2.4.4.bb

index 5b9869b4f3b45c41146a13fa523d5cbf88aabeaf..fff7d8c6da6c81fa616b5a8e1f958ec82390f9e5 100644 (file)
@@ -32,6 +32,7 @@ EXTRA_OECONF = "--disable-ldap \
                --with-readline=${STAGING_LIBDIR}/.. \
                --with-mailprog=${sbindir}/sendmail \
                --enable-gpg-is-gpg2 \
+               --disable-tests \
                "
 # yat2m can be found from recipe-sysroot-native non-deterministically with different versioning otherwise
 CACHED_CONFIGUREVARS += "ac_cv_path_YAT2M=./yat2m"