Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537418 - net-nds/openldap USE=cxx should purge extraneous libtool files
Summary: net-nds/openldap USE=cxx should purge extraneous libtool files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-23 04:35 UTC by cmuelle8
Modified: 2017-11-05 20:46 UTC (History)
0 users

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


Attachments
openldap-2.4.40-r3.ebuild.patch (openldap-2.4.40-r3.ebuild.patch,518 bytes, patch)
2015-01-23 04:37 UTC, cmuelle8
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cmuelle8 2015-01-23 04:35:07 UTC
SYMPTOM
run revdep-rebuild or cave fix-linkage and (repeatedly) observe:
* net-nds/openldap-2.4.40-r3::installed
    /usr/lib64/libldapcpp.la (requires /usr/lib64/liblber.la /usr/lib64/libldap.la)

CURE
--- gentoo/net-nds/openldap/openldap-2.4.40-r3.ebuild~  2014-11-10 01:51:21.000000000 +0100
+++ gentoo/net-nds/openldap/openldap-2.4.40-r3.ebuild   2015-01-23 04:40:09.000000000 +0100
@@ -697,8 +697,9 @@
                if use cxx ; then
                        einfo "Install the ldapc++ library"
                        cd "${BUILD_DIR}/contrib/ldapc++" || die
                        emake DESTDIR="${D}" libexecdir="${EPREFIX}/usr/$(get_libdir)/openldap" install
+                       use static-libs || prune_libtool_files --all
                        cd "${S}"/contrib/ldapc++ || die
                        newdoc README ldapc++-README
                fi
 

SEE ALSO
# grep prune_libtool_files gentoo/net-nds/openldap/openldap-2.4.40-r3.ebuild


Reproducible: Always
Comment 1 cmuelle8 2015-01-23 04:37:12 UTC
Created attachment 394694 [details, diff]
openldap-2.4.40-r3.ebuild.patch
Comment 2 Larry the Git Cow gentoo-dev 2017-11-05 20:46:27 UTC
The bug has been closed via the following commit(s):

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

commit d5eaafc35a30d6371c1edfc53d44cf0678a849c8
Author:     Zhao Yongming <ming.zym@gmail.com>
AuthorDate: 2017-10-16 08:50:09 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-11-05 20:45:27 +0000

    net-nds/openldap: fix modules libtool files prune
    
    the prune_libtool_files is run before the modules intall, that will
    leave many la files in openldap module directory broken due to main
    la file is gone, which will make revdep-rebuild or cave fix-linkage
    keep rebuilding net-nds/openldap.
    
    keep module la files removed by default will prevent user from using
    .la file in modules config, which is working but should not been
    encouraged, such as BUG:600484
    
    Fixes: https://bugs.gentoo.org/537418
    (cherry picked from commit 2c2376d9efd3d77424e3c8a626a165daf881e145)
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 net-nds/openldap/openldap-2.4.44-r1.ebuild | 3 ++-
 net-nds/openldap/openldap-2.4.44.ebuild    | 3 ++-
 net-nds/openldap/openldap-2.4.45.ebuild    | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)