Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318121 - sys-auth/openpam-20071221 doesn't install on Gentoo/FreeBSD 8.0
Summary: sys-auth/openpam-20071221 doesn't install on Gentoo/FreeBSD 8.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2010-05-02 10:32 UTC by MT
Modified: 2011-07-05 15:42 UTC (History)
2 users (show)

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


Attachments
openpam-20071221-r1.ebuild.patch (openpam-20071221-r1.ebuild.patch,1.30 KB, patch)
2010-05-02 10:33 UTC, MT
Details | Diff
emerge infos (infos,2.90 KB, text/plain)
2010-05-02 10:35 UTC, MT
Details
emerge build.log (build.log,36.72 KB, text/plain)
2010-05-02 10:37 UTC, MT
Details
openpam-20071221-r1.ebuild.patch (openpam-20071221-r1.ebuild.patch,1.30 KB, patch)
2010-05-02 11:10 UTC, MT
Details | Diff
patch for openpam-20071221.ebuild (openpam.ebuild.patch,389 bytes, patch)
2011-04-11 14:18 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2010-05-02 10:32:08 UTC
I got this install error when emerging sys-auth/openpam-20071221:

Making install in pam_deny
gmake[2]: Entering directory `/var/tmp/portage/sys-auth/openpam-20071221/work/openpam-20071221/modules/pam_deny'
gmake[3]: Entering directory `/var/tmp/portage/sys-auth/openpam-20071221/work/openpam-20071221/modules/pam_deny'
test -z "/lib/security/" || ../.././install-sh -c -d "/var/tmp/portage/sys-auth/openpam-20071221/image//lib/security/"
 /bin/bash ../../libtool   --mode=install /usr/bin/install -c   pam_deny.la '/var/tmp/portage/sys-auth/openpam-20071221/image//lib/security/'
libtool: install: error: cannot install `pam_deny.la' to a directory not ending in /lib/security/
gmake[3]: *** [install-pkglibLTLIBRARIES] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-auth/openpam-20071221/work/openpam-20071221/modules/pam_deny'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/sys-auth/openpam-20071221/work/openpam-20071221/modules/pam_deny'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/sys-auth/openpam-20071221/work/openpam-20071221/modules'
gmake: *** [install-recursive] Error 1
>>> Completed installing openpam-20071221 into /var/tmp/portage/sys-auth/openpam-20071221/image/

strip: i686-gentoo-freebsd8.0-strip --strip-unneeded -R .comment
   usr/lib/libpam.so.2.0.0

The oddity is that the installation phase doesn't fail at all as the ebuild is missing a '|| die' statement and the package is partially installed (all headers are missing) leading to a lot compilation errors from all the packages that require openpam's headers.

I don't know how to fix the problem (seems that libtools is not able to relink pam_deny.so) but attached there is an ebuild patch for a cleaned and improved ebuild:

- added EAPI3;
- removed 'flag-o-matic' eclass as isn't used inside the ebuild;
- added a die statement to the 'emake install' phase;
- removed the die statement from econf;

Hope it's useful.
Mauro
Comment 1 MT 2010-05-02 10:33:43 UTC
Created attachment 229993 [details, diff]
openpam-20071221-r1.ebuild.patch
Comment 2 MT 2010-05-02 10:35:33 UTC
Created attachment 229997 [details]
emerge infos
Comment 3 MT 2010-05-02 10:37:20 UTC
Created attachment 229999 [details]
emerge build.log
Comment 4 MT 2010-05-02 11:10:42 UTC
Created attachment 230005 [details, diff]
openpam-20071221-r1.ebuild.patch

EAPI2 version as required by aballier@gentoo.org
Comment 5 Alexis Ballier gentoo-dev 2010-05-02 11:21:15 UTC
(In reply to comment #4)
> Created an attachment (id=230005) [details]
> openpam-20071221-r1.ebuild.patch
> 
> EAPI2 version as required by aballier@gentoo.org
> 

applied this one, thanks

and i cant reproduce your bug btw
Comment 6 Yuta SATOH 2011-04-11 14:18:14 UTC
Created attachment 269495 [details, diff]
patch for openpam-20071221.ebuild

This problem reproduced my environment. 
I applied this patch and solved.
Comment 7 Dmitri Bogomolov 2011-04-27 20:53:03 UTC
I reproduced this issue with
  USE="-* minimal pam" ROOT="/var/jail" emerge openpam
Comment 8 Alexis Ballier gentoo-dev 2011-07-05 15:42:54 UTC
(In reply to comment #6)
> Created attachment 269495 [details, diff]
> patch for openpam-20071221.ebuild
> 
> This problem reproduced my environment. 
> I applied this patch and solved.

applied the WANT_AUTOMAKE part; could reproduce it now, thanks