Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2010 02:00:40 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        apache@FreeBSD.org
Subject:   [PATCH] devel/apr: define python version explicitly
Message-ID:  <20100515180040.B763E2AEC65E@sunpoet.net>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Sunpoet Po-Chuan Hsieh
>Organization:	SUNPOET.net
>Confidential:	no 
>Synopsis:	[PATCH] devel/apr: define python version explicitly
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.0-STABLE amd64
>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@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 ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100515180040.B763E2AEC65E>