ports/186642: [patch] clang has USE_PYTHON_BUILD=yes, but requires python2
Gereon Kaiping
kta1c10!gereon at linta.de
Tue Feb 11 01:40:02 UTC 2014
>Number: 186642
>Category: ports
>Synopsis: [patch] clang has USE_PYTHON_BUILD=3DYES but requires pytho=
>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: Tue Feb 11 01:40:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Gereon Kaiping
>Release: FreeBSD 10.0-BETA3 amd64
>Organization:
>Environment:
System: FreeBSD parhippus 10.0-BETA3 FreeBSD 10.0-BETA3 #0 r258657:
Tue Nov 26 20:13:28 UTC 2013
root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Running python 3.3.3 as python default version, python2.7 installed
>Description:
lang/clang33's configure file (generated with autoconf) tests
explicitly for the python version, requesting major version =3D=3D 2 and
minor version >=3D 5, and therefore fails with the cryptic message that
the python version (parsed from the empty string) is not =E2=80=9C>=3D 2.5=
=E2=80=9D when
pytho
n3 is the default.
>How-To-Repeat:
# cd /usr/ports/lang/clang33
# make -V PYTHON_VERSION
python3.3
# make configure
[=E2=80=A6snip=E2=80=A6]
checking optional compiler flags... -Wno-variadic-macros
-Wno-missing-field-initializers -Wcovered-switch-default
-Wno-uninitialized
checking for python... user defined:
checking for python >=3D 2.5... File "<string>", line 1
import sys; print sys.version.split()[0]
^
SyntaxError: invalid syntax
test: : bad number
not found
configure: error: found python (/usr/local/bin/python3.3); required >=3D 2=
.5
See `config.log' for more details.
=3D=3D=3D> Script "configure" failed unexpectedly.
Please report the problem to brooks at FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/clang33/work/llvm-3.3.src/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provi=
de
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/lang/clang33
*** Error code 1
Stop.
make: stopped in /usr/ports/lang/clang33
>Fix:
patch lang/clang's Makefile as follows:
--- Makefile.orig 2014-02-11 00:54:52.000000000 +0000
+++ Makefile 2014-02-11 00:55:03.000000000 +0000
@@ -34,7 +34,7 @@
GNU_CONFIGURE_PREFIX=3D ${LLVM_PREFIX}
USES=3D gmake perl5
USE_LDCONFIG=3D yes
-USE_PYTHON_BUILD=3D yes
+USE_PYTHON_BUILD=3D -2.9
MAKE_ARGS=3D CLANG_TBLGEN=3D${WRKSRC}/${RELTYPE}/bin/clang-tblgen \
LLVMIncDir=3D${LLVM_PREFIX}/include \
>Release-Note:
>Audit-Trail:
>Unformatted:
n2
More information about the freebsd-ports-bugs
mailing list