summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-07 02:41:32 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-07 02:41:32 +0000
commit0d75230e4cb5523f92465b0d5c50e9d1770b6971 (patch)
treed2f67b4b834b4eaeb017bc1d398ad59482f3a229 /www-apache/mod_python
parentRevbump fixing QA problems regarding ldflags (bug #280404) and cjk (bug #2805... (diff)
downloadhistorical-0d75230e4cb5523f92465b0d5c50e9d1770b6971.tar.gz
historical-0d75230e4cb5523f92465b0d5c50e9d1770b6971.tar.bz2
historical-0d75230e4cb5523f92465b0d5c50e9d1770b6971.zip
Fix building with some LDFLAGS (bug #238083).
Package-Manager: portage-13943-svn/cvs/Linux x86_64
Diffstat (limited to 'www-apache/mod_python')
-rw-r--r--www-apache/mod_python/ChangeLog9
-rw-r--r--www-apache/mod_python/Manifest6
-rw-r--r--www-apache/mod_python/files/mod_python-3.3.1-LDFLAGS.patch14
-rw-r--r--www-apache/mod_python/files/mod_python-3.3.1-apache-2.4.patch38
-rw-r--r--www-apache/mod_python/mod_python-3.3.1-r1.ebuild26
5 files changed, 79 insertions, 14 deletions
diff --git a/www-apache/mod_python/ChangeLog b/www-apache/mod_python/ChangeLog
index f6199dd47b9a..cbdccbf35ec0 100644
--- a/www-apache/mod_python/ChangeLog
+++ b/www-apache/mod_python/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apache/mod_python
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/ChangeLog,v 1.17 2008/10/18 13:38:12 nixnut Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/ChangeLog,v 1.18 2009/08/07 02:41:32 arfrever Exp $
+
+ 07 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ mod_python-3.3.1-r1.ebuild, +files/mod_python-3.3.1-LDFLAGS.patch,
+ +files/mod_python-3.3.1-apache-2.4.patch:
+ Fix building with some LDFLAGS (bug #238083).
18 Oct 2008; nixnut <nixnut@gentoo.org> mod_python-3.3.1-r1.ebuild:
Stable on ppc wrt bug 237784
diff --git a/www-apache/mod_python/Manifest b/www-apache/mod_python/Manifest
index fce252ff80de..9f9d43e56cbf 100644
--- a/www-apache/mod_python/Manifest
+++ b/www-apache/mod_python/Manifest
@@ -1,7 +1,9 @@
AUX 16_mod_python.conf 976 RMD160 41fc6205641f081e5fe8c73ce09dff3913dcf5dc SHA1 147236f89633d2a92efbeaaf1bd1f140d9f510ae SHA256 a04639a0e18fc7d3f503706d285bee4a14b007ef1faa2810cd6e7ca642f2f30e
+AUX mod_python-3.3.1-LDFLAGS.patch 517 RMD160 f3932bacdf3d284188bf92c7286e70e72b9fe4fb SHA1 e42039309f68f0b63f29cbe5864605c4424c83a5 SHA256 22c9159bd6a752b42f79226e0c7c305478c63e0069ec34b033387055a46db17a
+AUX mod_python-3.3.1-apache-2.4.patch 1278 RMD160 55d3a5fb7c50e7bdd8748652f7014117b67fcb03 SHA1 ed9f94c6c09b6ca1d9cccf286f731bd5db9ab887 SHA256 b123dd76efe12e21801e462f72b23d614b177493f3d3f2b111e9e4cff3367849
AUX mod_python-apr_brigade_sentinel.patch 520 RMD160 63527bf7374051ab1408a2c5df924f16caa4c9ed SHA1 4710248b4f02108bdc5cb6ee3ca8453175a54cdb SHA256 d2cf3ed0d8261dbe8262a394e9723601bc6d87ec24ea8dbcb1b3bc5c58eaa67b
DIST mod_python-3.3.1.tgz 447954 RMD160 f78f93172963317f4318f8f2455419743c8fb4f5 SHA1 e538170fd78e09408b6d8593da980b126a0fef93 SHA256 ad2331fd5fcfd720ef9e3482973fc2d06eff36ba0c44693cfa42056a62175a6b
-EBUILD mod_python-3.3.1-r1.ebuild 1623 RMD160 3a13206601f14725981b80879cba5564d210dc13 SHA1 82e4a7d74d8aeb766274110e0e48553effa2389f SHA256 4b0987b234c0c519db6fd63e191839c8f63a7ee75577beff8de61b1d1db0fad3
+EBUILD mod_python-3.3.1-r1.ebuild 1669 RMD160 6188fa8a311ff082f4ec781a988e9b48a9cbefab SHA1 21dd582949f57c954fb5473ad104db07562e6936 SHA256 6edbab884253386cf0eaff175f688156ad0d2ba5ba84df5435970895cdfb0fa1
EBUILD mod_python-3.3.1.ebuild 1586 RMD160 5dd0f0423ee86b5b1e7baab7b95afc9988f06e46 SHA1 e78b8258012b2acdad651940bc34ebcdc5278290 SHA256 292b92f76e51ddff30655f07222e0c932bf69a749d86b8d7ed02123b07146171
-MISC ChangeLog 10770 RMD160 5691623b69b5a5708b844e7bee1d47add2bc6c14 SHA1 22268b8c32b5916141a65f9cde17c90050a1140d SHA256 3e661ca19aa3f9e2c61445202cbd9d93728f6dd6fb6c29b18af957003c0df3f4
+MISC ChangeLog 11007 RMD160 8ba158e7c7d0b614ada3c0ff03ec4caa1e987ce7 SHA1 e31dfe1f3825647625f467b9e4889f66b2cd6aae SHA256 1bb112fe960329bf5af377919573a07e1dc5fed3c5cef8fedab74c9825add630
MISC metadata.xml 1085 RMD160 310896be489387af5fa6ddd0ff71e76e937046f5 SHA1 7d85ace0fdbdb904078092813167e37849adfcde SHA256 db3fffe1dc8c7e619fc661ba7bc9bacb0c1404a0ead197c1418ccc53c584ef32
diff --git a/www-apache/mod_python/files/mod_python-3.3.1-LDFLAGS.patch b/www-apache/mod_python/files/mod_python-3.3.1-LDFLAGS.patch
new file mode 100644
index 000000000000..0562f93db748
--- /dev/null
+++ b/www-apache/mod_python/files/mod_python-3.3.1-LDFLAGS.patch
@@ -0,0 +1,14 @@
+--- configure.in
++++ configure.in
+@@ -267,10 +267,7 @@
+ AC_MSG_CHECKING(linker flags used to link Python)
+ AC_SUBST(LDFLAGS)
+ PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
+-PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
+-LDFLAGS="${LDFLAGS} ${PyLFS} ${PyLDFLAGS}"
+-LDFLAGS="${LDFLAGS} ${PY_LDFLAGS}"
+-AC_MSG_RESULT($PY_LDFLAGS)
++LDFLAGS="${LDFLAGS} ${PyLFS}"
+
+ AC_MSG_CHECKING(where Python include files are)
+ AC_SUBST(INCLUDES)
diff --git a/www-apache/mod_python/files/mod_python-3.3.1-apache-2.4.patch b/www-apache/mod_python/files/mod_python-3.3.1-apache-2.4.patch
new file mode 100644
index 000000000000..8484d08d8620
--- /dev/null
+++ b/www-apache/mod_python/files/mod_python-3.3.1-apache-2.4.patch
@@ -0,0 +1,38 @@
+TODO:
+src/requestobject.c uses ap_requires() which has been removed in r368027.
+https://svn.apache.org/viewvc?view=rev&revision=368027
+
+--- src/include/mod_python.h
++++ src/include/mod_python.h
+@@ -72,6 +72,11 @@
+ #endif
+ #endif
+
++#if !AP_MODULE_MAGIC_AT_LEAST(20081201,0)
++#define ap_unixd_config unixd_config
++#define ap_unixd_set_global_mutex_perms unixd_set_global_mutex_perms
++#endif
++
+ /* Python headers */
+ /* this gets rid of some compile warnings */
+ #if defined(_POSIX_THREADS)
+--- src/mod_python.c
++++ src/mod_python.c
+@@ -555,14 +555,14 @@
+ else {
+
+ /*XXX As of httpd 2.0.4, the below should be just
+- a call to unixd_set_global_mutex_perms(mutex[n]); and
++ a call to ap_unixd_set_global_mutex_perms(mutex[n]); and
+ nothing else... For now, while 2.0.48 isn't commonplace yet,
+ this ugly code should be here */
+
+ #if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+ if (!geteuid()) {
+- chown(fname, unixd_config.user_id, -1);
+- unixd_set_global_mutex_perms(mutex[n]);
++ chown(fname, ap_unixd_config.user_id, -1);
++ ap_unixd_set_global_mutex_perms(mutex[n]);
+ }
+ #endif
+ }
diff --git a/www-apache/mod_python/mod_python-3.3.1-r1.ebuild b/www-apache/mod_python/mod_python-3.3.1-r1.ebuild
index c621860683ed..55777bdb7d56 100644
--- a/www-apache/mod_python/mod_python-3.3.1-r1.ebuild
+++ b/www-apache/mod_python/mod_python-3.3.1-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.3.1-r1.ebuild,v 1.4 2008/10/18 13:38:12 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.3.1-r1.ebuild,v 1.5 2009/08/07 02:41:32 arfrever Exp $
-inherit eutils python apache-module multilib
+EAPI="2"
+
+inherit autotools eutils python apache-module multilib
KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86"
@@ -23,19 +25,23 @@ DOCFILES="README NEWS CREDITS"
need_apache2
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
epatch "${FILESDIR}/${PN}-apr_brigade_sentinel.patch"
+ epatch "${FILESDIR}/${P}-apache-2.4.patch"
+ epatch "${FILESDIR}/${P}-LDFLAGS.patch"
+
# Remove optimisations, we do that outside Portage
sed -i -e 's:--optimize 2:--no-compile:' dist/Makefile.in
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-apxs=${APXS}
}
src_compile() {
- econf --with-apxs=${APXS} || die "econf failed"
- sed -i -e 's/ -Wl,--hash-style $//' src/Makefile
- emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed"
+ emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "emake failed"
}
src_install() {