Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405167 - net-nds/openldap-2.4.28-r1 : add static-libs IUSE support
Summary: net-nds/openldap-2.4.28-r1 : add static-libs IUSE support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-21 16:26 UTC by Agostino Sarubbo
Modified: 2014-10-12 06:28 UTC (History)
1 user (show)

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


Attachments
patch converting openldap for static-libs USE flag (openldap-2.4.33-r1.patch,1.61 KB, patch)
2012-10-17 21:24 UTC, Sean McGovern
Details | Diff
patch (openldap-2.4.35-r1.ebuild.patch,1.50 KB, patch)
2013-10-24 04:29 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2012-02-21 16:26:21 UTC
$summary, clean also unneeded .la files

/usr/lib64/liblber.a
/usr/lib64/libldap.a
/usr/lib64/libldap_r.a
/usr/lib64/liblber-2.4.so.2.8.1
/usr/lib64/libldap-2.4.so.2.8.1
/usr/lib64/libldap_r-2.4.so.2.8.1
/usr/lib64/libldap_r.so
/usr/lib64/libldap_r-2.4.so.2
/usr/lib64/libldap.so
/usr/lib64/libldap-2.4.so.2
/usr/lib64/liblber.so
/usr/lib64/liblber-2.4.so.2
/usr/lib64/libldap.la
/usr/lib64/libldap_r.la
/usr/lib64/liblber.la
Comment 1 Sean McGovern 2012-09-17 13:32:34 UTC
I modified the current ebuild for 2.4.31 to use static-libs and it seems to be OK for me. I did in the process discover that mail-client/pine requires the static libs, but there is already a request (#371593) to remove this ebuild as it is largely dead upstream.

Before I submit this for approval, should I be making it work with all the previous ebuilds for openldap or is just the current one OK?
Comment 2 Sean McGovern 2012-10-17 21:24:50 UTC
Created attachment 326794 [details, diff]
patch converting openldap for static-libs USE flag

Attached is a patch to 2.4.33 which modifies the ebuild for the static-libs USE flag. Also removes .la files from /usr/$(get_libdir). Unlike many other packages, openldap actually uses LTDL from libtool, so don't remove the .la files anywhere else.
Comment 3 Sean McGovern 2012-11-17 19:34:28 UTC
*ping!*
Comment 4 Sean McGovern 2013-02-04 14:57:48 UTC
again, *ping!*
Comment 5 Sean McGovern 2013-10-15 17:29:56 UTC
* 3rd ping!

Suggest changing title to >=net-nds/openldap-2.4.35 as lower versions are currently hardmasked due to recent security vulnerabilities.
Comment 6 Nikoli 2013-10-24 04:29:48 UTC
Created attachment 361756 [details, diff]
patch

Sean, thank you for patch, works fine here. Changed it a bit: better use prune_libtool_files instead of find.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-10-12 06:28:05 UTC
in 2.4.40