Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527140 - net-nds/openldap-2.4.40-r2[berkdb] depends on 2 slots of sys-libs/db
Summary: net-nds/openldap-2.4.40-r2[berkdb] depends on 2 slots of sys-libs/db
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-27 20:26 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-11-21 13:03 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 Arfrever Frehtes Taifersar Arahesis 2014-10-27 20:26:04 UTC
net-nds/openldap-2.4.40-r2 has:
RDEPEND="...
        berkdb? ( 
            >=sys-libs/db-4.4
            <sys-libs/db-6
        )
..."
Each of atoms is matched separately. Since sys-libs/db has multiple slots, 2 slots of sys-libs/db (e.g. 6.0 and 5.3) are pulled by these dependencies.

A simplest solution:
RDEPEND="...
        berkdb? (
            || (
                sys-libs/db:5.3
                sys-libs/db:5.1
                sys-libs/db:4.8
                sys-libs/db:4.7
                sys-libs/db:4.6
                sys-libs/db:4.5
                sys-libs/db:4.4
            )
        )
..."

Better solution with := slot operator:
RDEPEND="...
        berkdb? (
            <sys-libs/db-6.0:=
            || (
                sys-libs/db:5.3
                sys-libs/db:5.1
                sys-libs/db:4.8
                sys-libs/db:4.7
                sys-libs/db:4.6
                sys-libs/db:4.5
                sys-libs/db:4.4
            )
        )
..."

Also please delete obsolete comment (originally about RESTRICT in net-nds/openldap-2.4.40-r1):
# This is only actually applicable if linking against db-6
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-11-01 00:28:51 UTC
InCVS
Comment 2 Geoff Leach 2014-11-21 05:57:58 UTC
I'm finding openldap wanting to always rebuild. Think it is due to the slot operator in the dependency <sys-libs/db-6.0:=, with just <sys-libs/db-6.0 goes away. Flags -minimal sasl. (And even though I've read through the slot operators, not sure I'm on top of it, so maybe a slot operator there to trigger rebuilds of other packages - I gather the intended purpose? - makes sense).
Comment 3 Arfrever Frehtes Taifersar Arahesis 2014-11-21 13:03:23 UTC
(In reply to Geoff Leach from comment #2)

It is bug #528610.