Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 627122

Summary: sys-fs/cryptsetup have no optional dependencies on libressl
Product: Gentoo Linux Reporter: hexum <hexumg>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description hexum 2017-08-05 19:40:43 UTC
Does cryptsetup support building with libressl?

Ebuild sys-fs/cryptsetup-1.7.5::gentoo provides only next options
exactly-one-of ( gcrypt kernel nettle openssl )
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-08-05 21:04:20 UTC
Read ebuild:

CRYPTO_BACKENDS="+gcrypt kernel nettle openssl"

IUSE="${CRYPTO_BACKENDS} libressl ..."
                         ^^^^^^^^

REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} )
..."

LIB_DEPEND="...
        openssl? (
                !libressl? ( dev-libs/openssl:0=[static-libs(+)] )
                libressl? ( dev-libs/libressl:=[static-libs(+)] )
        )
..."



So to use LibreSSL, you must disable "gcrypt" USE flag and enable "openssl" and "libressl" USE flags.
Comment 2 hexum 2017-08-05 21:32:58 UTC
OK

Looks like libressl is a drop-in replacement for openssl in this case.