ports/146621: [PATCH] devel/apr: define python version explicitly

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Sat May 15 18:10:08 UTC 2010


>Number:         146621
>Category:       ports
>Synopsis:       [PATCH] devel/apr: define python version explicitly
>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:   Sat May 15 18:10:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed May  5 00:44:42 CST
>Description:
- Define python version explicitly
  ${APR_WRKDIR}/build/gen-build.py does not work with Python 3.1

Port maintainer (apache at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- apr-1.4.2.1.3.9_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sunpoet/apr/../../devel/apr/Makefile /usr/ports/sunpoet/apr/Makefile
--- /usr/ports/sunpoet/apr/../../devel/apr/Makefile	2010-05-08 17:29:32.000000000 +0800
+++ /usr/ports/sunpoet/apr/Makefile	2010-05-16 01:56:16.000000000 +0800
@@ -36,7 +36,7 @@
 USE_ICONV=		yes
 USE_AUTOTOOLS=	automake:19 autoconf:262 libtool:22:env
 USE_PERL5_BUILD=	yes
-USE_PYTHON_BUILD=	yes
+USE_PYTHON_BUILD=	-2.6
 USE_LDCONFIG=		yes
 GNU_CONFIGURE=		yes
 
@@ -216,6 +216,8 @@
 	${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},g' \
 		${APR_WRKDIR}/build/apr_threads.m4 ${APR_WRKDIR}/build/apr_hints.m4 \
 		${APU_WRKDIR}/build/apu-conf.m4
+	${REINPLACE_CMD} -e '1 s/python/${PYTHON_VERSION}/' \
+		${APR_WRKDIR}/build/gen-build.py
 
 run-autotools::
 	cd ${APR_WRKDIR} ; \
--- apr-1.4.2.1.3.9_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list