ports/180997: [patch] Make qemu-devel build with PYTHON_DEFAULT_VERSION of 3+

Nathan Whitehorn nwhitehorn at FreeBSD.org
Fri Aug 2 13:40:00 UTC 2013


>Number:         180997
>Category:       ports
>Synopsis:       [patch] Make qemu-devel build with PYTHON_DEFAULT_VERSION of 3+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 02 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Whitehorn
>Release:        10-CURRENT
>Organization:
>Environment:
FreeBSD comporellon.tachypleus.net 10.0-CURRENT FreeBSD 10.0-CURRENT #125 r251046M: Mon May 27 20:24:29 CDT 2013     root at comporellon.tachypleus.net:/usr/obj/usr/src/sys/COMPORELLON  amd64
>Description:
qemu-devel's configure script requires Python <= 2.7 but the Makefile has it use the default python. If the default python is python 3, it will fail.
>How-To-Repeat:

>Fix:
Use only python up to 2.7 (patch).

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 324163)
+++ Makefile	(working copy)
@@ -19,7 +19,7 @@
 USE_BZIP2=	yes
 USES=		gmake pkgconfig
 USE_PERL5_BUILD=	yes
-USE_PYTHON_BUILD=	yes
+USE_PYTHON_BUILD=	-2.7
 USE_GNOME+=	glib20
 PATCH_STRIP=	-p1
 MAKE_ENV+=	BSD_MAKE="${MAKE}"
@@ -214,6 +214,8 @@
 MAKE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin
 .endif
 
+CONFIGURE_ARGS+= --python=${PYTHON_CMD}
+
 # -lprocstat actually only _needs_ -lelf after r249666 or r250870 (MFC)
 # but it shouldn't matter much
 post-patch:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list