Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693996 - sys-fs/cryptsetup-2.1.0 requires USE=openssl to enable USE=libressl
Summary: sys-fs/cryptsetup-2.1.0 requires USE=openssl to enable USE=libressl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-10 18:53 UTC by Maciej Barć
Modified: 2019-09-11 07:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Barć gentoo-dev 2019-09-10 18:53:27 UTC
The cryptsetup/cryptsetup-2.1.0 ebuild is broken.

Specyfic code:
"  LIB_DEPEND="
	dev-libs/json-c:=[static-libs(+)]
	dev-libs/libgpg-error[static-libs(+)]
	dev-libs/popt[static-libs(+)]
	>=sys-apps/util-linux-2.31-r1[static-libs(+)]
	argon2? ( app-crypt/argon2:=[static-libs(+)] )
	gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] )
	nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
	openssl? (
		!libressl? ( dev-libs/openssl:0=[static-libs(+)] )
		libressl? ( dev-libs/libressl:0=[static-libs(+)] )
	)
	pwquality? ( dev-libs/libpwquality[static-libs(+)] )
	sys-fs/lvm2[static-libs(+)]
	udev? ( virtual/libudev[static-libs(+)] )"  "

Here we can see that we have to enable openssl to enable libressl.

LibreSSL is an drop in replacenet for OpenSSL and only one USE flag for each should be selected at a time.
Comment 1 Ben Kohler gentoo-dev 2019-09-10 18:57:57 UTC
Enable USE=openssl for openssl-like functionality, then -libressl or +libressl to select between dev-libs/openssl & dev-libs/libressl.

This is similar to the ffmpeg/libav situation.  Enable USE=ffmpeg for ffmpeg-like functionality, then -libav or +libav to select between media-libs/ffmpeg & media-libs/libav.

I'm pretty sure this is by design & intent, not a bug.
Comment 2 Maciej Barć gentoo-dev 2019-09-10 19:01:23 UTC
(In reply to Ben Kohler from comment #1)
> Enable USE=openssl for openssl-like functionality, then -libressl or
> +libressl to select between dev-libs/openssl & dev-libs/libressl.
> 
> This is similar to the ffmpeg/libav situation.  Enable USE=ffmpeg for
> ffmpeg-like functionality, then -libav or +libav to select between
> media-libs/ffmpeg & media-libs/libav.
> 
> I'm pretty sure this is by design & intent, not a bug.

it's really misleading, tho
Comment 3 Maciej Barć gentoo-dev 2019-09-10 19:04:40 UTC
Please read this:
https://wiki.gentoo.org/wiki/Project:LibreSSL
Comment 4 Ben Kohler gentoo-dev 2019-09-10 19:07:55 UTC
Right, that page reinforces what I'm saying.  Look at the 5th CODE block and the paragraph immediately after it.
Comment 5 Maciej Barć gentoo-dev 2019-09-10 19:09:33 UTC
I propose we just change "openssl" USE flag to "ssl", to avoid misunderstandings
(and maake it simpler)
Comment 6 Ben Kohler gentoo-dev 2019-09-10 19:12:02 UTC
But it's not the only ssl provider, there is also gnutls which is optional.  This openssl flag enables support for openssl or the openssl-fork-now-called-libressl.

I don't think there is anything to be fixed here except getting used to the scheme like we have done for libav.
Comment 7 Maciej Barć gentoo-dev 2019-09-10 19:19:24 UTC
(In reply to Ben Kohler from comment #6)
> But it's not the only ssl provider, there is also gnutls which is optional. 
> This openssl flag enables support for openssl or the
> openssl-fork-now-called-libressl.
> 
> I don't think there is anything to be fixed here except getting used to the
> scheme like we have done for libav.

but it's not in the ebuild, is it?
Comment 8 Maciej Barć gentoo-dev 2019-09-10 19:25:51 UTC
(In reply to Ben Kohler from comment #1)
> Enable USE=openssl for openssl-like functionality, then -libressl or
> +libressl to select between dev-libs/openssl & dev-libs/libressl.
> 
> This is similar to the ffmpeg/libav situation.  Enable USE=ffmpeg for
> ffmpeg-like functionality, then -libav or +libav to select between
> media-libs/ffmpeg & media-libs/libav.
> 
> I'm pretty sure this is by design & intent, not a bug.

closing the bug
seems like "fmmpeg vs libav" is the way to do it