Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623952 - net-nds/openldap-2.4.45[+libressl +ssl] configure: error: Could not locate TLS/SSL package
Summary: net-nds/openldap-2.4.45[+libressl +ssl] configure: error: Could not locate TL...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-06 05:52 UTC by MrPenguin07
Modified: 2018-04-21 00:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,16.89 KB, text/plain)
2017-07-06 05:53 UTC, MrPenguin07
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MrPenguin07 2017-07-06 05:52:09 UTC
Configure fails checks with USE="libressl ssl" 
however builds fine with USE="libressl -ssl"

Reproducible: Always

Steps to Reproduce:
1. emerge openldap w/ +libressl +ssl
2. configure fails checks
3. change use for openldap +libressl -ssl 
4. now able to compile.
Actual Results:  
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_CTX_set_msg_callback in -lssl... no
checking for ssl3_accept in -lssl... no
configure: error: Could not locate TLS/SSL package


Expected Results:  
Successful compilation.

This is the only package that fails to build using libressl instead of openssl (with the libressl overlay).
Comment 1 MrPenguin07 2017-07-06 05:53:36 UTC
Created attachment 481120 [details]
emerge --info
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-07-06 14:35:41 UTC
I guess this would also fail with openssl[-sslv3].
Comment 3 gourgou 2017-12-28 14:05:28 UTC
That comes from a slight oversight in the ebuild (line 493 as of 2.4.45):

    local ssl_lib="no"
    if use ssl || ( ! use minimal && use samba ) ; then
        ssl_lib="openssl"
        use gnutls && ssl_lib="gnutls"
    fi

    myconf+=( --with-tls=${ssl_lib} )

Where the libressl useflag isn't checked.

I'm not sure how this should be patched though. Should either of gnutls or libressl take precedence over the other? Should both be added to --with-tls? (Useflags for libressl and gnutls aren't mutually exclusive.)
Comment 4 gourgou 2017-12-28 14:09:21 UTC
Seing how gnutls takes precedence over openssl, I think it could do to make it so:

        ssl_lib="openssl"
        use libressl && ssl-lib="libressl"
        use gnutls && ssl_lib="gnutls"
Comment 5 Aaron Bauman (RETIRED) gentoo-dev 2018-04-21 00:26:10 UTC
The logic has been fixed in 2.4.45 and 2.4.44-r1.  Both tested with all USE flags fine.