Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143473 - openldap fails to merge with USE="minimal" on first install (bad built_with_use check)
Summary: openldap fails to merge with USE="minimal" on first install (bad built_with_u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
: 143474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-10 09:20 UTC by Lucas Chiesa
Modified: 2006-09-11 05:23 UTC (History)
8 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 Lucas Chiesa 2006-08-10 09:20:30 UTC
The net-nds/openldap-2.3.24-r1 has:

 if use minimal && built_with_use net-nds/openldap minimal ; then

in pkg_setup(). This seems to check for USE flags of previous installations, however, this fails if openldap was not previously installed.

Thank you,

Lucas Chiesa
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 09:23:04 UTC
*** Bug 143474 has been marked as a duplicate of this bug. ***
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2006-08-17 07:37:12 UTC
Any progress on this issue?
Comment 3 Francois Chenier 2006-08-17 20:56:21 UTC
Same problem here with 2.3.24-r2
Comment 4 Jan Oravec 2006-08-20 11:38:14 UTC
The next issue with minimal USE flag is that it depends on berkdb even if none of berkdb/gdbm is in the USE flags.

The berkdb/gdbm are not the only openldap backends, I think that the requirement of at least one of berkdb/gdbm dependency should be eliminated even without minimal USE flag.

Also, many other packages depends only on the openldap library and minimal USE flag installs also client applications. The best solution for this would probably be to divide it into 3 ebuilds - openldap-libs, openldap-client and openldap-server.
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2006-08-20 15:47:10 UTC
regarding the package splitup: are you kidding?! if not, please switch to debian or any other binary package based distribution (really).
Comment 6 Jan Oravec 2006-08-20 17:10:16 UTC
Well, xorg and kde were also split into multiple packages. The client and server are semantically different things so I believe these should be split. Some other packages may depend on openldap libraries (e.g. python-ldap), on openldap client (some scripts?) and on openldap server (3rd party backend storage plugins[**]?). The overall build time won't increase significantly -- only the configure scripts will take a bit longer for those who want both server and client. The manageability of dependencies will increase.

I think that using USE flags to control mix of semantically different things in single package is abusing of USE flags. And I am not going to switch to Debian ;)

** - currently, it would be hard for such packages to depend on openldap which could have been compiled with minimal USE flags (or could be recompiled with minimal later without breaking any dependency)
Comment 7 Bernard Cafarelli gentoo-dev 2006-09-06 07:29:22 UTC
Apart from this split-packages discussion, is there a reason minimal openldap needs an already built minimal openldap to continue?? (at least for the stable 2.3.24-r1 version)
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2006-09-11 05:23:42 UTC
Okay, fixed in CVS now