head 1.5; access; symbols pkgsrc-2019Q1:1.4.0.2 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.3.0.6 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.4 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.2 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.2.0.10 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.8 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.6 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.2 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.1.0.12 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.10 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.8 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.6 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.4 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.2 pkgsrc-2015Q4-base:1.1; locks; strict; comment @# @; 1.5 date 2019.04.26.09.40.16; author roy; state dead; branches; next 1.4; commitid EcRxmo7B0v3XeQkB; 1.4 date 2019.03.02.13.23.36; author adam; state Exp; branches; next 1.3; commitid bE05IYSy7CP5eNdB; 1.3 date 2018.06.17.19.21.22; author adam; state Exp; branches; next 1.2; commitid c6D8IR427LvRuFGA; 1.2 date 2017.05.30.14.04.54; author bouyer; state Exp; branches; next 1.1; commitid i3762avFLIgz4qTz; 1.1 date 2015.12.05.17.12.13; author adam; state Exp; branches; next ; commitid WERummxnJx8CwMLy; desc @@ 1.5 log @Wave bye-bye to python34 and python35. Discussed on pkgsrc-users@@ @ text @$NetBSD: patch-configure,v 1.4 2019/03/02 13:23:36 adam Exp $ MirBSD support: http://bugs.python.org/issue21458 Changes for consistency across pkgsrc platforms. Detect is_pad() (taken from Python 3.7). Detect netcan/can.h on NetBSD Fix linking on Darwin; don't use -stack_size. --- configure.orig 2018-08-02 09:19:12.000000000 +0000 +++ configure @@@@ -3441,7 +3441,7 @@@@ case $ac_sys_system/$ac_sys_release in # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. # In addition, Stefan Krah confirms that issue #1244610 exists through # OpenBSD 4.6, but is fixed in 4.7. - OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) + OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456] | MirBSD/*) define_xopen_source=no # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is # also defined. This can be overridden by defining _BSD_SOURCE @@@@ -5975,7 +5975,7 @@@@ $as_echo "#define Py_ENABLE_SHARED 1" >> PY3LIBRARY=libpython3.so fi ;; - Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) + Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|MirBSD*) LDLIBRARY='libpython$(LDVERSION).so' BLDLIBRARY='-L. -lpython$(LDVERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} @@@@ -7990,7 +7990,7 @@@@ done # On Linux, can.h and can/raw.h require sys/socket.h -for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h +for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h netcan/can.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " @@@@ -9268,8 +9268,8 @@@@ then LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' else # No framework, use the Python app as bundle-loader - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' + BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)' + LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' fi ;; Darwin/*) @@@@ -9293,9 +9293,9 @@@@ then LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' else # No framework, use the Python app as bundle-loader - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' - LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' + BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)' + LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' + LDCXXSHARED="$LDCXXSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' fi else # building for OS X 10.3 and later @@@@ -9334,6 +9334,9 @@@@ then ;; esac fi;; + MirBSD*) + LDSHARED='$(CC) -shared $(CCSHARED)' + LDCXXSHARED='$(CXX) -shared $(CCSHARED)';; NetBSD*|DragonFly*) LDSHARED='$(CC) -shared' LDCXXSHARED='$(CXX) -shared';; @@@@ -9377,7 +9380,7 @@@@ then fi;; Linux*|GNU*) CCSHARED="-fPIC";; BSD/OS*/4*) CCSHARED="-fpic";; - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; + FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) CCSHARED="-fPIC";; OpenUNIX*|UnixWare*) if test "$GCC" = "yes" then CCSHARED="-fPIC" @@@@ -9416,7 +9419,6 @@@@ then # Issue #18075: the default maximum stack size (8MBytes) is too # small for the default recursion limit. Increase the stack size # to ensure that tests don't crash - LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" if test "$enable_framework" then @@@@ -9426,7 +9428,7 @@@@ then OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) + FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) if [ "`$CC -dM -E - &6; } case $ac_sys_system in - Linux*|GNU*|Darwin) - EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; *) EXT_SUFFIX=${SHLIB_SUFFIX};; esac @@@@ -15694,6 +15694,36 @@@@ $as_echo "#define WINDOW_HAS_FLAGS 1" >> fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 +$as_echo_n "checking for is_pad... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef is_pad +void *x=is_pad +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 $as_echo_n "checking for is_term_resized... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext @ 1.4 log @python3[4567]: find_library() fixes; remove -stack_size from LDFLAGS on Darwin. PkgSrc changes: * Make find_library() consitant for all Python versions: - Fallback to clang, when gcc is not installed. - Find libraries in PkgSrc prefix. * Do not use -stack_size; it ends up in 'pythonNN-config --ldflags', and some modules fail to build. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.3 2018/06/17 19:21:22 adam Exp $ @ 1.3 log @python: pkgsrc changes - Fix buidling curses (consistent across platforms) - Fix finding libraries with ctypes.util.find_library - Enable spwd module on Linux - Cleanup @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2017/05/30 14:04:54 bouyer Exp $ d8 3 a10 1 --- configure.orig 2018-02-04 23:40:56.000000000 +0000 d82 9 a90 1 @@@@ -9426,7 +9429,7 @@@@ then d99 1 a99 1 @@@@ -14757,8 +14760,6 @@@@ $as_echo "$SOABI" >&6; } d108 1 a108 1 @@@@ -15694,6 +15695,36 @@@@ $as_echo "#define WINDOW_HAS_FLAGS 1" >> @ 1.2 log @Add support for NetBSD's socketcan implementation. Tested with the example from http://www.bencz.com/hacks/2016/07/10/python-and-socketcan/ Needs rev 1.3 or newer. @ text @d1 1 a1 4 $NetBSD: patch-configure,v 1.1 2015/12/05 17:12:13 adam Exp $ MirBSD support http://bugs.python.org/issue21458 d3 1 d5 2 d8 3 a10 7 XXX: Not sure what the BLDSHARED changes are about. detect netcan/can.h on NetBSD --- configure.orig 2017-01-17 08:57:54.000000000 +0100 +++ configure 2017-05-30 15:40:52.322257152 +0200 @@@@ -3462,7 +3462,7 @@@@ d19 1 a19 1 @@@@ -5996,7 +5996,7 @@@@ d28 1 a28 1 @@@@ -7991,7 +7991,7 @@@@ d37 1 a37 1 @@@@ -9269,8 +9269,8 @@@@ d48 1 a48 1 @@@@ -9294,9 +9294,9 @@@@ d61 1 a61 1 @@@@ -9335,6 +9335,9 @@@@ d71 1 a71 1 @@@@ -9378,7 +9381,7 @@@@ d80 1 a80 1 @@@@ -9427,7 +9430,7 @@@@ d89 1 a89 1 @@@@ -14758,8 +14761,6 @@@@ d98 37 @ 1.1 log @What’s New In Python 3.5 New syntax features: * PEP 492, coroutines with async and await syntax. * PEP 465, a new matrix multiplication operator: a @@ b. * PEP 448, additional unpacking generalizations. New library modules: * typing: PEP 484 – Type Hints. * zipapp: PEP 441 Improving Python ZIP Application Support. New built-in features: * bytes % args, bytearray % args: PEP 461 – Adding % formatting to bytes and bytearray. * New bytes.hex(), bytearray.hex() and memoryview.hex() methods. (Contributed by Arnon Yaari in issue 9951.) * memoryview now supports tuple indexing (including multi-dimensional). (Contributed by Antoine Pitrou in issue 23632.) * Generators have a new gi_yieldfrom attribute, which returns the object being iterated by yield from expressions. (Contributed by Benno Leslie and Yury Selivanov in issue 24450.) * A new RecursionError exception is now raised when maximum recursion depth is reached. (Contributed by Georg Brandl in issue 19235.) CPython implementation improvements: * When the LC_TYPE locale is the POSIX locale (C locale), sys.stdin and sys.stdout now use the surrogateescape error handler, instead of the strict error handler. (Contributed by Victor Stinner in issue 19977.) * .pyo files are no longer used and have been replaced by a more flexible scheme that includes the optimization level explicitly in .pyc name. (See PEP 488 overview.) * Builtin and extension modules are now initialized in a multi-phase process, which is similar to how Python modules are loaded. (See PEP 489 overview.) Significant improvements in the standard library: * collections.OrderedDict is now implemented in C, which makes it 4 to 100 times faster. * The ssl module gained support for Memory BIO, which decouples SSL protocol handling from network IO. * The new os.scandir() function provides a better and significantly faster way of directory traversal. * functools.lru_cache() has been mostly reimplemented in C, yielding much better performance. * The new subprocess.run() function provides a streamlined way to run subprocesses. * The traceback module has been significantly enhanced for improved performance and developer convenience. Security improvements: * SSLv3 is now disabled throughout the standard library. It can still be enabled by instantiating a ssl.SSLContext manually. (See issue 22638 for more details; this change was backported to CPython 3.4 and 2.7.) * HTTP cookie parsing is now stricter, in order to protect against potential injection attacks. (Contributed by Antoine Pitrou in issue 22796.) Windows improvements: * A new installer for Windows has replaced the old MSI. See Using Python on Windows for more information. * Windows builds now use Microsoft Visual C++ 14.0, and extension modules should use the same. @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.5 2014/10/09 09:15:38 adam Exp $ d10 5 a14 3 --- configure.orig 2015-09-13 11:41:26.000000000 +0000 +++ configure @@@@ -3374,7 +3374,7 @@@@ case $ac_sys_system/$ac_sys_release in d23 1 a23 1 @@@@ -5787,7 +5787,7 @@@@ $as_echo "#define Py_ENABLE_SHARED 1" >> d32 10 a41 1 @@@@ -8832,8 +8832,8 @@@@ then d52 1 a52 1 @@@@ -8857,9 +8857,9 @@@@ then d65 1 a65 1 @@@@ -8898,6 +8898,9 @@@@ then d75 1 a75 1 @@@@ -8941,7 +8944,7 @@@@ then d84 1 a84 1 @@@@ -8990,7 +8993,7 @@@@ then d93 1 a93 1 @@@@ -14371,8 +14374,6 @@@@ $as_echo "$SOABI" >&6; } @