diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-12-15 20:26:58 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-12-15 20:26:58 +0000 |
commit | 53bcdc0752e0b2e48b891f52f047baa498d5ffe7 (patch) | |
tree | 2c2655111c7bbf75abb46a62165d25211f9e6152 | |
parent | Fix cross-compile issues with ospeed offset too. (diff) | |
download | historical-53bcdc0752e0b2e48b891f52f047baa498d5ffe7.tar.gz historical-53bcdc0752e0b2e48b891f52f047baa498d5ffe7.tar.bz2 historical-53bcdc0752e0b2e48b891f52f047baa498d5ffe7.zip |
Fix compilation on platforms not needing -lcrypt, bug #330235. Call emake correctly for Prefix.
Package-Manager: portage-2.2.01.19941-prefix/cvs/Darwin i386
-rw-r--r-- | net-misc/whois/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/whois/whois-5.0.8.ebuild | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/net-misc/whois/ChangeLog b/net-misc/whois/ChangeLog index fdcab13b4805..c59034ff9b6a 100644 --- a/net-misc/whois/ChangeLog +++ b/net-misc/whois/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/whois # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.164 2011/12/05 09:36:47 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.165 2011/12/15 20:26:58 grobian Exp $ + + 15 Dec 2011; Fabian Groffen <grobian@gentoo.org> whois-5.0.8.ebuild: + Fix compilation on platforms not needing -lcrypt, bug #330235. Call emake + correctly for Prefix. *whois-5.0.13 (05 Dec 2011) diff --git a/net-misc/whois/whois-5.0.8.ebuild b/net-misc/whois/whois-5.0.8.ebuild index 065a149338f3..ce0e70daf3d6 100644 --- a/net-misc/whois/whois-5.0.8.ebuild +++ b/net-misc/whois/whois-5.0.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.8.ebuild,v 1.7 2011/03/01 00:33:08 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.8.ebuild,v 1.8 2011/12/15 20:26:58 grobian Exp $ EAPI=3 inherit eutils toolchain-funcs @@ -28,6 +28,9 @@ src_prepare() { else sed -i -e '/ENABLE_NLS/s:define:undef:' config.h fi + + echo "int main() {}" | $(tc-getCC) ${CFLAGS} ${LDFLAGS} -xc -o /dev/null - -lcrypt >& /dev/null \ + || sed -i -e 's/-lcrypt//' Makefile } src_configure() { :;} # expected no-op @@ -41,7 +44,7 @@ src_compile() { } src_install() { - emake BASEDIR="${ED}" prefix=/usr install || die + emake BASEDIR="${D}" prefix="${EPREFIX}"/usr install || die insinto /etc doins whois.conf dodoc README debian/changelog |