summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-03-11 00:58:38 -0500
committerMike Gilbert <floppym@gentoo.org>2023-03-11 11:51:01 -0500
commit71654452a1a3503eee95858b125e1beb6ca34686 (patch)
tree21f84ed6aeca348ad30f224a2593c79396c8d150
parentdev-libs/openssl: generate fipsmodule.cnf in pkg_preinst (diff)
downloadgentoo-71654452a1a3503eee95858b125e1beb6ca34686.tar.gz
gentoo-71654452a1a3503eee95858b125e1beb6ca34686.tar.bz2
gentoo-71654452a1a3503eee95858b125e1beb6ca34686.zip
dev-libs/openssl: drop sanity test from src_prepare
Configure doesn't do anything special when we pass --test-sanity to it; it just ignores the option entirely. Also move more configurey things to src_configure. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--dev-libs/openssl/openssl-3.0.8-r1.ebuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/dev-libs/openssl/openssl-3.0.8-r1.ebuild b/dev-libs/openssl/openssl-3.0.8-r1.ebuild
index d809d357d0fb..33e696530c76 100644
--- a/dev-libs/openssl/openssl-3.0.8-r1.ebuild
+++ b/dev-libs/openssl/openssl-3.0.8-r1.ebuild
@@ -92,13 +92,6 @@ src_unpack() {
}
src_prepare() {
- # Allow openssl to be cross-compiled
- cp "${FILESDIR}"/gentoo.config-1.0.4 gentoo.config || die
- chmod a+rx gentoo.config || die
-
- # Keep this in sync with app-misc/c_rehash
- SSL_CNF_DIR="/etc/ssl"
-
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
@@ -116,6 +109,13 @@ src_prepare() {
rm test/recipes/80-test_ssl_new.t || die
fi
+ multilib_copy_sources
+}
+
+src_configure() {
+ # Keep this in sync with app-misc/c_rehash
+ SSL_CNF_DIR="/etc/ssl"
+
# Quiet out unknown driver argument warnings since openssl
# doesn't have well-split CFLAGS and we're making it even worse
# and 'make depend' uses -Werror for added fun (bug #417795 again)
@@ -134,14 +134,6 @@ src_prepare() {
append-flags $(test-flags-CC -Wa,--noexecstack)
- local sslout=$(./gentoo.config)
- einfo "Using configuration: ${sslout:-(openssl knows best)}"
- edo perl Configure ${sslout} --test-sanity
-
- multilib_copy_sources
-}
-
-multilib_src_configure() {
# bug #197996
unset APPS
# bug #312551
@@ -151,6 +143,10 @@ multilib_src_configure() {
tc-export AR CC CXX RANLIB RC
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
@@ -167,7 +163,7 @@ multilib_src_configure() {
# ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
#fi
- local sslout=$(./gentoo.config)
+ local sslout=$(bash "${FILESDIR}/gentoo.config-1.0.4")
einfo "Using configuration: ${sslout:-(openssl knows best)}"
# https://github.com/openssl/openssl/blob/master/INSTALL.md#enable-and-disable-features