commit:     2a91638573ba9e4b0dbca6c817c3fa318c47416c
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 13 20:42:09 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Jan 13 20:42:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a916385

dev-libs/openssl: fix config call in src_prepare

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-libs/openssl/openssl-1.1.1s-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-libs/openssl/openssl-1.1.1s-r1.ebuild 
b/dev-libs/openssl/openssl-1.1.1s-r1.ebuild
index cadb162ac5ec..e2f32f1b8861 100644
--- a/dev-libs/openssl/openssl-1.1.1s-r1.ebuild
+++ b/dev-libs/openssl/openssl-1.1.1s-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -160,10 +160,12 @@ src_prepare() {
 
        local sslout=$(./gentoo.config)
        einfo "Using configuration: ${sslout:-(openssl knows best)}"
+       local config="Configure"
+       [[ -z ${sslout} ]] && config="config"
 
        # The config script does stupid stuff to prompt the user.  Kill it.
        sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
-       ./config ${sslout} --test-sanity || die "I AM NOT SANE"
+       edo ./${config} ${sslout} --test-sanity || die "I AM NOT SANE"
 
        multilib_copy_sources
 }

Reply via email to