Created attachment 413744 [details, diff] 0001-media-video-libav-add-libressl-support.patch This also removes 'openssl' USE flag, because libav is the only ebuild so far which uses 'openssl' to choose the provider for ssl. All others use 'gnutls', some use 'openssl' for _features_ (not to choose the provider). That will cause a mess when people try to do USE="-openssl libressl" and the ebuild works fine without this USE flag anyway, as can be seen in the attached patch.
Nah, I don't think that's exactly it. Wouldn't USE=libressl supposed to be enabled globally to get rid of openssl? In this case, USE=gnutls on libav would collide with it unnecessarily.
(In reply to Michał Górny from comment #1) > Nah, I don't think that's exactly it. Wouldn't USE=libressl supposed to be > enabled globally to get rid of openssl? In this case, USE=gnutls on libav > would collide with it unnecessarily. you cannot enable gnutls and libressl at the same time (only for a few ebuilds), so you either randomly choose something or have REQUIRED_USE force consistent ssl provider choice
another way without changing USE flags much would be ssl? ( - openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) - !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) + openssl? ( + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) + ) + !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) )
(In reply to Julian Ospald (hasufell) from comment #3) > another way without changing USE flags much would be > > ssl? ( > - openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) > - !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) > + openssl? ( > + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) > + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) > + ) > + !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) > ) applied this form https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97619fe996cd0638683e3ad05cfe707b088cfb29