ports/182185: [PATCH] www/mod_python3: Fix linking when Python is built with libs in LOCALBASE
Kubilay Kocak
koobs.freebsd at gmail.com
Tue Sep 17 11:00:00 UTC 2013
>Number: 182185
>Category: ports
>Synopsis: [PATCH] www/mod_python3: Fix linking when Python is built with libs in LOCALBASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 17 11:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Kubilay Kocak
>Release: FreeBSD 9.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD 9-STABLE-amd64.elysium 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r254557: Tue Aug 20 21:44:31 EST
>Description:
www/mod_python3: Fix linking when Python is built with libs in LOCALBASE
- Bump port revision
- While I'm here, sort Makefile entries
- Add regression-test target with comment
Reported by: des, pkg-fallout
Reviewed by: mva
portlint: WARN - pkg-message: possible use of absolute pathname
porttest: ??? whats up with pkg-plist, are apache mod ports not PREFIX safe ???
unittest:
- Ran 68 tests in 12.590s - OK
- Ran 6 tests in 41.549s - OK
Port maintainer (apache at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- ap22-mod_python-3.3.1_4.patch begins here ---
diff -ruN /usr/ports/www/mod_python3/Makefile ./Makefile
--- /usr/ports/www/mod_python3/Makefile 2013-08-15 08:35:50.000000000 +1000
+++ ./Makefile 2013-09-17 20:45:22.337915289 +1000
@@ -1,9 +1,9 @@
# Created by: Hye-Shik Chang
-# $FreeBSD: www/mod_python3/Makefile 324744 2013-08-14 22:35:50Z ak $
+# $FreeBSD: head/www/mod_python3/Makefile 324744 2013-08-14 22:35:50Z ak $
PORTNAME= mod_python
PORTVERSION= 3.3.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
MASTER_SITE_SUBDIR= modpython
@@ -13,20 +13,26 @@
MAINTAINER= apache at FreeBSD.org
COMMENT= Apache module that embeds the Python interpreter within the server
-
USE_APACHE= 22
USE_PYTHON= yes
-MAKE_ARGS+= APXS=${APXS}
-
INSTALLS_EGGINFO= yes
-LATEST_LINK= mod_python3
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" \
- --without-flex
+LATEST_LINK= mod_python3
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-apxs="${APXS}" \
+ --with-python="${PYTHON_CMD}" \
+ --without-flex
+
+LDFLAGS+= -L${LOCALBASE}/lib
+MAKE_ARGS+= APXS=${APXS}
MAKE_ENV= EXPR_COMPAT=yes
post-install:
@${CAT} ${PKGMESSAGE}
+# You need to install apache & mod_python before you run this
+regression-test: build
+ @cd ${WRKSRC} && ${MAKE} check
+
.include <bsd.port.mk>
--- ap22-mod_python-3.3.1_4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list