Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2013 13:36:54 GMT
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180997: [patch] Make qemu-devel build with PYTHON_DEFAULT_VERSION of 3+
Message-ID:  <201308021336.r72Dasuw061448@oldred.freebsd.org>
Resent-Message-ID: <201308021340.r72De02r091454@freefall.freebsd.org>

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

>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@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:



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