Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561906 - x11-base/xorg-server add libressl support
Summary: x11-base/xorg-server add libressl support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 512664
Blocks: libressl-support
  Show dependency tree
 
Reported: 2015-09-30 13:38 UTC by Julian Ospald
Modified: 2015-10-12 22:42 UTC (History)
3 users (show)

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


Attachments
xorg-server-1.17.2-r2.ebuild.diff (xorg-server-1.17.2-r2.ebuild.diff,740 bytes, patch)
2015-09-30 13:38 UTC, Julian Ospald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2015-09-30 13:38:23 UTC
Created attachment 413366 [details, diff]
xorg-server-1.17.2-r2.ebuild.diff

this also fixes the slot on openssl
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-09-30 13:42:24 UTC
Not sure we want this. See also discussion in bug 512664 about allowing alternative crypto providers.
Comment 2 Julian Ospald 2015-09-30 13:44:47 UTC
Are you saying you want to block a tree-wide conversion which no one really disagreed against on the dev ML?

Rationale?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-09-30 14:06:16 UTC
xorg-server does not use openssl as an SSL provider (cf. bug 512664 comment 1), so the discussion on the ML does not apply here I think.

That being said, if it is impossible to install both libressl's and openssl's libcrypto on the same system, then there would be a point in supporting either (or some independent implementation).
Comment 4 Julian Ospald 2015-09-30 14:09:43 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #3)
> xorg-server does not use openssl as an SSL provider (cf. bug 512664 comment
> 1), so the discussion on the ML does not apply here I think.
> 
> That being said, if it is impossible to install both libressl's and
> openssl's libcrypto on the same system, then there would be a point in
> supporting either (or some independent implementation).

libressl is a drop-in replacement for openssl, it's not an alternative provider.

If this patch cannot be applied, the whole conversion can be aborted, since the dep-graph will remain broken.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-09-30 14:14:04 UTC
I think you should also add slot on libressl, since you can expect the slot you will use. Also slot operator for subslot changes.
Comment 6 Tolga Dalman 2015-10-04 08:20:44 UTC
(In reply to Julian Ospald (hasufell) from comment #4)
> libressl is a drop-in replacement for openssl, it's not an alternative
> provider.

Help me to understand: why is libressl and openssl being chosen via a USE flag instead of a virtual/openssl meta package ? The relation between openssl and libressl is completely different than, say, with gnutls.

To me, as a user, this decision appears inconsistent.

 
> If this patch cannot be applied, the whole conversion can be aborted, since
> the dep-graph will remain broken.

I agree.
Comment 7 Julian Ospald 2015-10-04 08:44:13 UTC
(In reply to Tolga Dalman from comment #6)
> (In reply to Julian Ospald (hasufell) from comment #4)
> > libressl is a drop-in replacement for openssl, it's not an alternative
> > provider.
> 
> Help me to understand: why is libressl and openssl being chosen via a USE
> flag instead of a virtual/openssl meta package ? The relation between
> openssl and libressl is completely different than, say, with gnutls.
> 
> To me, as a user, this decision appears inconsistent.
> 
>  

Refer to the mailing list, this is not a support channel.
Comment 8 Julian Ospald 2015-10-04 19:50:06 UTC
Could the x11 team elaborate why this depends on bug 512664?

Both things can be done separately, without blocking each other.

The attached patch works and I am using it since more than half a year.
Comment 9 Marek Behún 2015-10-12 20:05:46 UTC
The only functionality xorg-server uses from OpenSSL is sha1 hashing, which is not removed from LibreSSL. I am using LibreSSL overlay and I had to patch just a few packages so that they would compile, xorg-server was never between them. Do we need to create special revision ebuilds? Why not just patch all of them?
Comment 10 Julian Ospald 2015-10-12 20:20:01 UTC
I'll apply this patch in a few days, unless someone can explain to me what this breaks and why we should hold up a global conversion with an unrelated feature request.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2015-10-12 21:17:16 UTC
We talked about it recently and there was little opposition to the change, other than bug #512664 where users might want to skip both openssl and libressl altogether. Since no one in the x11 herd really cares all that much about the SHA1 implementation used, adding libressl seems harmless.