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"
Created attachment 200460 [details] my openldap with pw-sha2 nssov
Created attachment 200462 [details, diff] change moduler dir to libdir instead of libexecdir
Created attachment 200465 [details, diff] smbk5pwd patch modified, not sure if it is correct
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
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.
(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.
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
(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