Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280491 - Emerge of net-nds/openldap-2.4.17-r1 fails in Gentoo Prefix
Summary: Emerge of net-nds/openldap-2.4.17-r1 fails in Gentoo Prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 19:07 UTC by Rabbe Fogelholm
Modified: 2010-01-27 15:50 UTC (History)
1 user (show)

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


Attachments
my openldap with pw-sha2 nssov (openldap-2.4.17-r1.ebuild,18.69 KB, text/plain)
2009-08-07 02:16 UTC, zym
Details
change moduler dir to libdir instead of libexecdir (openldap-2.4.17-moduledir-libdir.patch,412 bytes, patch)
2009-08-07 02:18 UTC, zym
Details | Diff
smbk5pwd patch modified, not sure if it is correct (openldap-2.4.17-contrib-smbk5pwd.patch,1.99 KB, patch)
2009-08-07 02:22 UTC, zym
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2009-08-05 19:07:19 UTC
Platform is Gentoo Prefix on SUSE 10 Enterprise SP2. Emerge of openldap fails with this console output:

>>> Completed installing openldap-2.4.17-r1 into /local/scratch/portage/net-nds/openldap-2.4.17-r1/image/local/tmp/r/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/liblber-2.4.so.2.5.0
   usr/lib/libldap-2.4.so.2.5.0
... 30 similar lines deleted ........................
   usr/lib/openldap/openldap/nops-overlay.a
   usr/lib/openldap/openldap/pw-netscape.a
   usr/lib/openldap/openldap/trace.a
   usr/lib/libslapi.a
ecompressdir: bzip2 -9 /local/tmp/r/usr/share/man
 * QA Notice: the following files are outside of the prefix:
 * /usr
 * /usr/lib
 * /usr/lib/openldap
 * /usr/lib/openldap/openldap
 * /usr/lib/openldap/openldap/back_ldap.so
... 30 similar lines deleted ........................
 * /usr/lib/openldap/openldap/back_relay.so
 * /usr/lib/openldap/openldap/back_relay.la
 * /usr/lib/openldap/openldap/back_shell-2.4.so.2.5.0
 * /usr/lib/openldap/openldap/back_shell-2.4.so.2
 * /usr/lib/openldap/openldap/back_shell.so
 * /usr/lib/openldap/openldap/back_shell.la
 * /usr/lib/openldap/openldap/back_sock-2.4.so.2.5.0
 * /usr/lib/openldap/openldap/back_sock-2.4.so.2
 * /usr/lib/openldap/openldap/back_sock.la
 * /usr/lib/openldap/slapd
 * ERROR: net-nds/openldap-2.4.17-r1 failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *       misc-functions.sh:974: <call install_qa_check>
 *       misc-functions.sh:419:                         die "Aborting due to QA concerns: there are files installed outside the prefix"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
!!! post install failed; exiting.

>>> Failed to emerge net-nds/openldap-2.4.17-r1, Log file:

>>>  '/local/scratch/portage/net-nds/openldap-2.4.17-r1/temp/build.log'

 * Messages for package net-nds/openldap-2.4.17-r1:

 * 'enewgroup()' disabled in Prefixed Portage with non root user
 * 'enewuser()' disabled in Prefixed Portage with non root user
 * Adding back_*.so
 * ERROR: net-nds/openldap-2.4.17-r1 failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *       misc-functions.sh:974: <call install_qa_check>
 *       misc-functions.sh:419:                         die "Aborting due to QA concerns: there are files installed outside the prefix"
Comment 1 zym 2009-08-07 02:16:50 UTC
Created attachment 200460 [details]
my openldap with pw-sha2 nssov
Comment 2 zym 2009-08-07 02:18:11 UTC
Created attachment 200462 [details, diff]
change moduler dir to libdir instead of libexecdir
Comment 3 zym 2009-08-07 02:22:36 UTC
Created attachment 200465 [details, diff]
smbk5pwd patch modified, not sure if it is correct
Comment 4 zym 2009-08-07 02:26:36 UTC
the openldap have messed up /usr/lib/openldap, maybe that is the problem, I have build a ebuild with the same setup like the redhat layout: all libs in /usr/lib/openldap, slapd in /usr/libexec, no /usr/lib/openldap/openldap dir anymore.

you may test and see the attached ebuild, or try from my own overlay from http://gitorious.org/gserver/mainline/commits/master

thanks
Comment 5 Rabbe Fogelholm 2009-08-07 20:15:26 UTC
I created an overlay containing your modified ebuild and the two patches. Emerging does not work for me though, it stops because openldap-2.4.16-nssov-build-fix.patch is not found.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-07 20:42:18 UTC
(In reply to comment #4)
> the openldap have messed up /usr/lib/openldap, maybe that is the problem, I
> have build a ebuild with the same setup like the redhat layout: all libs in
> /usr/lib/openldap, slapd in /usr/libexec, no /usr/lib/openldap/openldap dir
> anymore.
> 
> you may test and see the attached ebuild, or try from my own overlay from
> http://gitorious.org/gserver/mainline/commits/master
> 
> thanks
> 

In principle, it is not ideal to modify things in a way that diverges us more away from gentoo-x86. We are not RedHat =P Regardless, thanks for your work.

I have fixed this package in such a way that the out of prefix files are fixed. 

Index: openldap-2.4.17-r1.ebuild
===================================================================
--- openldap-2.4.17-r1.ebuild   (revision 49463)
+++ openldap-2.4.17-r1.ebuild   (working copy)
@@ -298,7 +298,7 @@
        tc-export CC AR CXX
        STRIP=/bin/true \
        econf \
-               --libexecdir=/usr/$(get_libdir)/openldap \
+               --libexecdir="${EPREFIX}"/usr/$(get_libdir)/openldap \
                ${myconf}
 
        if ! use minimal ; then

Closing bug.
Comment 7 Rabbe Fogelholm 2009-08-08 11:55:28 UTC
I tried to verify in a Prefix tree that was emerged today, but I got a failure like this:

libtool: install: warning: remember to run `libtool --finish /usr/lib/openldap/openldap'
>>> Completed installing openldap-2.4.17-r1 into /local/scratch/portage/net-nds/openldap-2.4.17-r1/image/local/tmp/u/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/liblber-2.4.so.2.5.0
   usr/lib/libldap-2.4.so.2.5.0
   usr/lib/libldap_r-2.4.so.2.5.0
   usr/lib/openldap/openldap/back_dnssrv-2.4.so.2.5.0
   usr/lib/openldap/openldap/back_ldap-2.4.so.2.5.0
............ deleted 40 similar-looking lines ................
   usr/lib/libldap_r.a
   usr/lib/libslapi.a
ecompressdir: bzip2 -9 /local/tmp/u/usr/share/man
making executable: local/tmp/u/usr/lib/liblber-2.4.so.2.5.0
making executable: local/tmp/u/usr/lib/libldap-2.4.so.2.5.0
making executable: local/tmp/u/usr/lib/libldap_r-2.4.so.2.5.0
making executable: local/tmp/u/usr/lib/libslapi-2.4.so.2.5.0

>>> Installing (1 of 1) net-nds/openldap-2.4.17-r1
 * ERROR: net-nds/openldap-2.4.17-r1 failed:
 *   Usage: preserve_old_lib <library to preserve> [more libraries to preserve]
 * 
 * Call stack:
 *               ebuild.sh:  64: <call call-ebuildshell 'pkg_preinst'>
 *             environment: 672: <call pkg_preinst>
 *             environment:3136: <call preserve_old_lib>
 *             environment:3209:     [[ -z $1 ]] && die "Usage: preserve_old_lib <library to preserve> [more libraries to prese
rve]";
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
!!! FAILED preinst: 1
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-27 15:50:26 UTC
(In reply to comment #7)

> >>> Installing (1 of 1) net-nds/openldap-2.4.17-r1
>  * ERROR: net-nds/openldap-2.4.17-r1 failed:
>  *   Usage: preserve_old_lib <library to preserve> [more libraries to preserve]

Ah, that was a ebuild syntax error. Can't reproduce with net-nds/openldap-2.4.19-r1