summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-01-31 08:22:32 +0000
committerMike Frysinger <vapier@gentoo.org>2014-01-31 08:22:32 +0000
commitd9ebadbe81d691a9007cb34ebd8b879706d72ee7 (patch)
tree4b8dbcc6ac32d697c666d5a06568811739ac91d4 /app-admin/apache-tools
parentFix src_install errors and install of dbmanage helper #459446 by Thomas Stein. (diff)
downloadgentoo-2-d9ebadbe81d691a9007cb34ebd8b879706d72ee7.tar.gz
gentoo-2-d9ebadbe81d691a9007cb34ebd8b879706d72ee7.tar.bz2
gentoo-2-d9ebadbe81d691a9007cb34ebd8b879706d72ee7.zip
Fix cross-compiling handling of pkg-config/pcre-config/apr/apr-util #385779 by Bertrand Jacquin.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'app-admin/apache-tools')
-rw-r--r--app-admin/apache-tools/ChangeLog6
-rw-r--r--app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild24
2 files changed, 24 insertions, 6 deletions
diff --git a/app-admin/apache-tools/ChangeLog b/app-admin/apache-tools/ChangeLog
index 3328cb491d7d..92c71f2ade15 100644
--- a/app-admin/apache-tools/ChangeLog
+++ b/app-admin/apache-tools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/apache-tools
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/ChangeLog,v 1.175 2014/01/31 08:19:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/ChangeLog,v 1.176 2014/01/31 08:22:32 vapier Exp $
+
+ 31 Jan 2014; Mike Frysinger <vapier@gentoo.org> apache-tools-2.4.7-r1.ebuild:
+ Fix cross-compiling handling of pkg-config/pcre-config/apr/apr-util #385779 by
+ Bertrand Jacquin.
*apache-tools-2.4.7-r1 (31 Jan 2014)
diff --git a/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild b/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild
index d9dd1770e957..08d2db88120b 100644
--- a/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild
+++ b/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild,v 1.1 2014/01/31 08:19:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild,v 1.2 2014/01/31 08:22:32 vapier Exp $
EAPI=5
-inherit flag-o-matic eutils multilib
+inherit flag-o-matic eutils multilib toolchain-funcs
DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
HOMEPAGE="http://httpd.apache.org/"
@@ -27,6 +27,14 @@ S="${WORKDIR}/httpd-${PV}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.4.7-Makefile.patch #459446
+
+ # This package really should upgrade to using pcre's .pc file.
+ cat <<-\EOF >"${T}"/pcre-config
+ #!/bin/sh
+ [ "${flag}" = "--version" ] && set -- --modversion
+ exec ${PKG_CONFIG} libpcre "$@"
+ EOF
+ chmod a+x "${T}"/pcre-config
}
src_configure() {
@@ -35,6 +43,8 @@ src_configure() {
# Brain dead check.
tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
+ tc-export PKG_CONFIG
+
# Instead of filtering --as-needed (bug #128505), append --no-as-needed
append-ldflags $(no-as-needed)
@@ -42,16 +52,20 @@ src_configure() {
# econf overwrites the stuff from config.layout, so we have to put them into
# our myconf line too
+ ac_cv_path_PKGCONFIG=${PKG_CONFIG} \
econf \
--libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules \
--sbindir="${EPREFIX}"/usr/sbin \
--with-perl="${EPREFIX}"/usr/bin/perl \
--with-expat="${EPREFIX}"/usr \
--with-z="${EPREFIX}"/usr \
- --with-apr="${EPREFIX}"/usr \
- --with-apr-util="${EPREFIX}"/usr \
- --with-pcre="${EPREFIX}"/usr \
+ --with-apr="${SYSROOT}${EPREFIX}"/usr \
+ --with-apr-util="${SYSROOT}${EPREFIX}"/usr \
+ --with-pcre="${T}"/pcre-config \
"${myconf[@]}"
+ sed -i \
+ -e '/^LTFLAGS/s:--silent::' \
+ build/rules.mk build/config_vars.mk || die
}
src_compile() {