Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724522 - sys-cluster/ceph-15.2.2: USE=openssl is mutually exclusive with USE=libressl
Summary: sys-cluster/ceph-15.2.2: USE=openssl is mutually exclusive with 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: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-22 01:53 UTC by Stefan Strogin
Modified: 2021-02-26 00:44 UTC (History)
3 users (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 Stefan Strogin gentoo-dev 2020-05-22 01:53:14 UTC
$ emerge -pqv ceph


!!! Problem resolving dependencies for sys-cluster/ceph

!!! The ebuild selected to satisfy "ceph" has unmet requirements.
- sys-cluster/ceph-15.2.2::gentoo USE="cephfs ldap libressl mgr openssl radosgw ssl tcmalloc -babeltrace -custom-cflags (-dpdk) -fuse -grafana -jemalloc -kafka -kerberos -lttng -numa -pmdk -rabbitmq -rbd-rwl -spdk -system-boost -systemd -test -uring -xfs -zfs" ABI_X86="(64)" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_6 python3_7 python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( openssl libressl )


USE=libressl should not be mutually exclusive with USE=openssl.


Please see an example from here: https://wiki.gentoo.org/wiki/Project:LibreSSL

```
REQUIRED_USE="ssl? ( ^^ ( openssl polarssl gnutls nettle ) )"

ssl? (
    openssl? (
        !libressl? ( dev-libs/openssl:0= )
        libressl? ( dev-libs/libressl:0= )
    )
    polarssl? ( net-libs/mbedtls:= )
    gnutls? ( net-libs/gnutls:= )
    nettle? ( dev-libs/nettle:= )
)

Either the former prioritised USE clauses or REQUIRED_USE constructs are permissible. The important point to note is that USE=libressl acts as a discriminating flag between OpenSSL and LibreSSL. As such, it is not a pure implementation USE flag and is analogous to USE=libav. That is, USE=libressl is never mutually exclusive to any other USE flag and should therefore never appear in REQUIRED_USE.
```

Another way is not to use USE=openssl flag at all, like in this example:

```
ssl? (
    gnutls? ( net-libs/gnutls )
    !gnutls? (
        !libressl? ( dev-libs/openssl:0= )
        libressl? ( dev-libs/libressl:0= )
    )
)
```
Comment 1 Alessandro Barbieri 2020-09-18 00:15:57 UTC
see see https://bugs.gentoo.org/683982
Comment 2 Larry the Git Cow gentoo-dev 2021-02-26 00:44:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30c77e40c2758524359e5017bc695bf34991bda3

commit 30c77e40c2758524359e5017bc695bf34991bda3
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2021-02-26 00:42:53 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-02-26 00:44:08 +0000

    sys-cluster/ceph-14.2.16-r2: Revbump, drop libressl, fix objdump call
    
    Closes: https://bugs.gentoo.org/701618
    Closes: https://bugs.gentoo.org/733814
    Closes: https://bugs.gentoo.org/724522
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.15, Repoman-3.0.2
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-cluster/ceph/ceph-14.2.16-r2.ebuild | 394 ++++++++++++++++++++++++++++++++
 1 file changed, 394 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113ee30b5fbc92ced3160824d5d7c0dd2881e40a

commit 113ee30b5fbc92ced3160824d5d7c0dd2881e40a
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2021-02-26 00:35:22 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-02-26 00:44:08 +0000

    sys-cluster/ceph-15.2.9: Version bump
    
    - Add patch to avoid SSE 4.1 functions when SSE 4.1 is disabled (bug
      #701618)
    - Don't call objdump directly (bug #733814)
    - Drop libressl support (closes bug #724522)
    - Add a dep on the new pmdk package (bug #52177)
    
    Closes: https://bugs.gentoo.org/701618
    Bug: https://bugs.gentoo.org/733814
    Closes: https://bugs.gentoo.org/724522
    Closes: https://bugs.gentoo.org/752177
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.15, Repoman-3.0.2
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-cluster/ceph/Manifest                          |   1 +
 sys-cluster/ceph/ceph-15.2.9.ebuild                | 405 +++++++++++++++++++++
 ...ompile-isal_compress-if-don-t-have-SSE4_1.patch |  22 ++
 sys-cluster/ceph/files/rbdmap.initd-r1             | 122 +++++++
 4 files changed, 550 insertions(+)