pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50419: math/cantor fails to build with python34

	Note: There was a bad value `mediumk' for the field `Priority'.
	It was set to the default value of `medium'.

>Number:         50419
>Category:       pkg
>Synopsis:       math/cantor fails to build with python34
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 10 17:40:00 +0000 2015
>Originator:     Greg Oster
>Release:        NetBSD 7.0
System: NetBSD mickey 7.0 NetBSD 7.0 (QUAD) #0: Mon Sep 28 11:54:36 CST 2015 oster@quad:/u1/builds/build265/src/obj/amd64/u1/builds/build265/src/sys/arch/amd64/compile/QUAD amd64
Architecture: x86_64
Machine: amd64

The math/cantor package fails to build if python34 is the default python.
The error is as follows:

In file included from /usr/pkgsrc/math/cantor/work.mickey/.buildlink/include/python3.4/pytime.h:6:0,
                 from /usr/pkgsrc/math/cantor/work.mickey/.buildlink/include/python3.4/Python.h:65,
                 from /usr/pkgsrc/math/cantor/work.mickey/cantor-4.14.3/src/backends/python2/python2session.h:28,
                 from /usr/pkgsrc/math/cantor/work.mickey/cantor-4.14.3/src/backends/python2/python2completionobject.cpp:25:
/usr/pkgsrc/math/cantor/work.mickey/.buildlink/include/python3.4/object.h:435:23: error: expected unqualified-id before ';' token
     PyType_Slot *slots; /* terminated by slot==0. */

The issue appears to be that 'slots' is a reserved keyword in Qt, and
causes conflicts:


	set 'PYTHON_VERSION_DEFAULT = 34' in /etc/mk.conf
	cd /usr/pkgsrc/math/cantor
	make install

As a workaround(fix?), adding the following:


to math/cantor/Makefile
forces the build to use python27, which works fine.


Home | Main Index | Thread Index | Old Index