NetBSD-Users archive

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

Re: pkgsrc python default version -> 3.7



On Wed, 24 Apr 2019 22:31:36 +0000
coypu%sdf.org@localhost wrote:

> Hi folks,
> 
> The default Python version in pkgsrc is now 3.7, in preparation for
> the coming end of life date of Python 2.7 (the previous default) at
> the end of this year.
> 
> This means any package that can be built with Python 3.7 will be built
> with it, rather than Python 2.7.
> Packages with no Python 3.x support will continue to be built with
> Python 2.7.
> 
> Problems are not likely to occur as many developers have been using
> this default for a while.
> Let me know if there are any problems still.
> 
> To undo this change, if you have a need for it, add this line to your
> /etc/mk.conf:
> PYTHON_VERSION_DEFAULT=27
> 
> For binary packages named pyXX-packagename, a python 2.7 will still be
> built (py27-packagename), as well as all the other python versions
> available.

This totally fails on SPARC Solaris 11.3, due to util-linux where
random_get_bytes() conflicts with Solaris own function. Why does Python
depend on all these Linux packages? Not that I care that much about
Python, but it seems you can't build anything without installing
Perl and Python as well.

===> Building for libuuid-2.32.1
/opt/pkg/bin/bmake  all-recursive
Making all in po
  CC       lib/libuuid_la-randutils.lo
In file included from lib/randutils.c:29:
/usr/include/sys/random.h:71:12: error: conflicting types for
'random_get_bytes' extern int random_get_bytes(uint8_t *dbuf, size_t
dlen); ^~~~~~~~~~~~~~~~
In file included from lib/randutils.c:19:
./include/randutils.h:14:13: note: previous declaration of
'random_get_bytes' was here extern void random_get_bytes(void *buf,
size_t nbytes); ^~~~~~~~~~~~~~~~
*** [lib/libuuid_la-randutils.lo] Error code 1

bmake[2]: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 1 error

bmake[2]: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 ***
[all-recursive] Error code 1

bmake[1]: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 1 error

bmake[1]: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 *** [all]
Error code 2

bmake: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 1 error

bmake: stopped
in /opt/pkgbuild/objects/devel/libuuid/work/util-linux-2.32.1 *** Error
code 2

Stop.
bmake[4]: stopped in /opt/pkgbuild/pkgsrc/devel/libuuid
*** Error code 1

Stop.
bmake[3]: stopped in /opt/pkgbuild/pkgsrc/devel/libuuid
*** Error code 1

Stop.
bmake[2]: stopped in /opt/pkgbuild/pkgsrc/lang/python37
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgbuild/pkgsrc/devel/glib2-tools
*** Error code 1

Stop.
bmake: stopped in /opt/pkgbuild/pkgsrc/wm/windowmaker



Home | Main Index | Thread Index | Old Index