Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: lang/python27/patches/patch-Include_pyport.h
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-Include_pyport.h,v
- retrieving revision 1.3
- diff -u -r1.3 patch-Include_pyport.h
- --- lang/python27/patches/patch-Include_pyport.h 24 Apr 2015 03:01:36 -0000 1.3
- +++ lang/python27/patches/patch-Include_pyport.h 12 Jul 2015 02:17:19 -0000
- @@ -1,19 +1,29 @@
- -$NetBSD: patch-Include_pyport.h,v 1.3 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- SunOS defines gethostname in <unistd.h>
- http://bugs.python.org/issue19561
- +Add Bitrig support
- ---- Include/pyport.h.orig 2014-12-10 15:59:32.000000000 +0000
- +--- Include/pyport.h.orig Sat May 23 16:09:00 2015
- +++ Include/pyport.h
- -@@ -640,11 +640,6 @@ Please be conservative with adding new o
- +@@ -467,7 +467,7 @@ extern "C" {
- + * This isn't reliable. See Py_OVERFLOWED comments.
- + * X is evaluated more than once.
- + */
- +-#if defined(__FreeBSD__) || defined(__OpenBSD__) || (defined(__hpux) && defined(__ia64))
- ++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__Bitrig__) || (defined(__hpux) && defined(__ia64))
- + #define _Py_SET_EDOM_FOR_NAN(X) if (isnan(X)) errno = EDOM;
- + #else
- + #define _Py_SET_EDOM_FOR_NAN(X) ;
- +@@ -639,11 +639,6 @@ Prototypes that are missing from the standard include
- + Please be conservative with adding new ones, document them and enclose them
- in platform-specific #ifdefs.
- **************************************************************************/
- -
- +-
- -#ifdef SOLARIS
- -/* Unchecked */
- -extern int gethostname(char *, int);
- -#endif
- --
- +
- #ifdef __BEOS__
- /* Unchecked */
- - /* It's in the libs, but not the headers... - [cjh] */
- Index: lang/python27/patches/patch-Lib_ctypes_util.py
- ===================================================================
- RCS file: lang/python27/patches/patch-Lib_ctypes_util.py
- diff -N lang/python27/patches/patch-Lib_ctypes_util.py
- --- /dev/null 1 Jan 1970 00:00:00 -0000
- +++ lang/python27/patches/patch-Lib_ctypes_util.py 12 Jul 2015 02:17:19 -0000
- @@ -0,0 +1,12 @@
- +$NetBSD$
- +
- +--- Lib/ctypes/util.py.orig Wed Jun 3 01:33:38 2015
- ++++ Lib/ctypes/util.py
- +@@ -153,6 +153,7 @@ elif os.name == "posix":
- +
- + if (sys.platform.startswith("freebsd")
- + or sys.platform.startswith("openbsd")
- ++ or sys.platform.startswith("bitrig")
- + or sys.platform.startswith("dragonfly")):
- +
- + def _num_version(libname):
- Index: lang/python27/patches/patch-Lib_test_test_fcntl.py
- ===================================================================
- RCS file: lang/python27/patches/patch-Lib_test_test_fcntl.py
- diff -N lang/python27/patches/patch-Lib_test_test_fcntl.py
- --- /dev/null 1 Jan 1970 00:00:00 -0000
- +++ lang/python27/patches/patch-Lib_test_test_fcntl.py 12 Jul 2015 02:17:19 -0000
- @@ -0,0 +1,13 @@
- +$NetBSD$
- +
- +--- Lib/test/test_fcntl.py.orig Wed Jun 3 01:36:04 2015
- ++++ Lib/test/test_fcntl.py
- +@@ -27,7 +27,7 @@ def get_lockdata():
- + else:
- + start_len = "qq"
- +
- +- if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bsdos'))
- ++ if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bitrig', 'bsdos'))
- + or sys.platform == 'darwin'):
- + if struct.calcsize('l') == 8:
- + off_t = 'l'
- Index: lang/python27/patches/patch-Lib_test_test_fileio.py
- ===================================================================
- RCS file: lang/python27/patches/patch-Lib_test_test_fileio.py
- diff -N lang/python27/patches/patch-Lib_test_test_fileio.py
- --- /dev/null 1 Jan 1970 00:00:00 -0000
- +++ lang/python27/patches/patch-Lib_test_test_fileio.py 12 Jul 2015 02:17:19 -0000
- @@ -0,0 +1,12 @@
- +$NetBSD$
- +
- +--- Lib/test/test_fileio.py.orig Wed Jun 3 01:38:09 2015
- ++++ Lib/test/test_fileio.py
- +@@ -308,6 +308,7 @@ class OtherFileTests(unittest.TestCase):
- + self.assertEqual(f.writable(), True)
- + if sys.platform != "darwin" and \
- + 'bsd' not in sys.platform and \
- ++ 'bitrig' not in sys.platform and \
- + not sys.platform.startswith('sunos'):
- + # Somehow /dev/tty appears seekable on some BSDs
- + self.assertEqual(f.seekable(), False)
- Index: lang/python27/patches/patch-Lib_test_test_posix.py
- ===================================================================
- RCS file: lang/python27/patches/patch-Lib_test_test_posix.py
- diff -N lang/python27/patches/patch-Lib_test_test_posix.py
- --- /dev/null 1 Jan 1970 00:00:00 -0000
- +++ lang/python27/patches/patch-Lib_test_test_posix.py 12 Jul 2015 02:17:19 -0000
- @@ -0,0 +1,14 @@
- +$NetBSD$
- +
- +--- Lib/test/test_posix.py.orig Wed Jun 3 01:41:05 2015
- ++++ Lib/test/test_posix.py
- +@@ -538,7 +538,8 @@ class PosixTester(unittest.TestCase):
- + quirky_platform = (
- + 'sunos' in sys.platform or
- + 'netbsd' in sys.platform or
- +- 'openbsd' in sys.platform
- ++ 'openbsd' in sys.platform or
- ++ 'bitrig'in sys.platform
- + )
- + if quirky_platform:
- + expected_errno = errno.ERANGE
- Index: lang/python27/patches/patch-Lib_test_test_subprocess.py
- ===================================================================
- RCS file: lang/python27/patches/patch-Lib_test_test_subprocess.py
- diff -N lang/python27/patches/patch-Lib_test_test_subprocess.py
- --- /dev/null 1 Jan 1970 00:00:00 -0000
- +++ lang/python27/patches/patch-Lib_test_test_subprocess.py 12 Jul 2015 02:17:19 -0000
- @@ -0,0 +1,13 @@
- +$NetBSD$
- +
- +--- Lib/test/test_subprocess.py.orig Wed Jun 3 01:43:15 2015
- ++++ Lib/test/test_subprocess.py
- +@@ -951,7 +951,7 @@ class POSIXProcessTestCase(BaseTestCase):
- + getattr(p, method)(*args)
- + return p
- +
- +- @unittest.skipIf(sys.platform.startswith(('netbsd', 'openbsd')),
- ++ @unittest.skipIf(sys.platform.startswith(('netbsd', 'openbsd', 'bitrig')),
- + "Due to known OS bug (issue #16762)")
- + def _kill_dead_process(self, method, *args):
- + # Do not inherit file handles from the parent.
- Index: lang/python27/patches/patch-Modules_posixmodule.c
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-Modules_posixmodule.c,v
- retrieving revision 1.2
- diff -u -r1.2 patch-Modules_posixmodule.c
- --- lang/python27/patches/patch-Modules_posixmodule.c 24 Apr 2015 03:01:36 -0000 1.2
- +++ lang/python27/patches/patch-Modules_posixmodule.c 12 Jul 2015 02:17:19 -0000
- @@ -1,8 +1,8 @@
- -$NetBSD: patch-Modules_posixmodule.c,v 1.2 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- ---- Modules/posixmodule.c.orig 2014-12-10 15:59:55.000000000 +0000
- +--- Modules/posixmodule.c.orig Sat May 23 16:09:20 2015
- +++ Modules/posixmodule.c
- -@@ -317,6 +317,10 @@ extern int lstat(const char *, struct st
- +@@ -317,6 +317,10 @@ extern int lstat(const char *, struct stat *);
- #define PARSE_PID "i"
- #define PyLong_FromPid PyInt_FromLong
- #define PyLong_AsPid PyInt_AsLong
- @@ -13,3 +13,11 @@
- #elif SIZEOF_PID_T == SIZEOF_LONG
- #define PARSE_PID "l"
- #define PyLong_FromPid PyInt_FromLong
- +@@ -2152,6 +2156,7 @@ Return a string representing the current working direc
- +
- + #if (defined(__sun) && defined(__SVR4)) || \
- + defined(__OpenBSD__) || \
- ++ defined(__Bitrig__) || \
- + defined(__NetBSD__)
- + /* Issue 9185: getcwd() returns NULL/ERANGE indefinitely. */
- + static PyObject *
- Index: lang/python27/patches/patch-Modules_socketmodule.c
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-Modules_socketmodule.c,v
- retrieving revision 1.5
- diff -u -r1.5 patch-Modules_socketmodule.c
- --- lang/python27/patches/patch-Modules_socketmodule.c 24 Apr 2015 03:01:36 -0000 1.5
- +++ lang/python27/patches/patch-Modules_socketmodule.c 12 Jul 2015 02:17:19 -0000
- @@ -1,8 +1,17 @@
- -$NetBSD: patch-Modules_socketmodule.c,v 1.5 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- ---- Modules/socketmodule.c.orig 2014-12-10 15:59:55.000000000 +0000
- +--- Modules/socketmodule.c.orig Sat May 23 16:09:21 2015
- +++ Modules/socketmodule.c
- -@@ -248,7 +248,7 @@ shutdown(how) -- shut down traffic in on
- +@@ -186,7 +186,7 @@ shutdown(how) -- shut down traffic in one or both dire
- + (this includes the getaddrinfo emulation) protect access with a lock. */
- + #if defined(WITH_THREAD) && (defined(__APPLE__) || \
- + (defined(__FreeBSD__) && __FreeBSD_version+0 < 503000) || \
- +- defined(__OpenBSD__) || defined(__NetBSD__) || \
- ++ defined(__OpenBSD__) || defined(__Bitrig__) || defined(__NetBSD__) || \
- + defined(__VMS) || !defined(HAVE_GETADDRINFO))
- + #define USE_GETADDRINFO_LOCK
- + #endif
- +@@ -248,7 +248,7 @@ shutdown(how) -- shut down traffic in one or both dire
- /* Irix 6.5 fails to define this variable at all. This is needed
- for both GCC and SGI's compiler. I'd say that the SGI headers
- are just busted. Same thing for Solaris. */
- Index: lang/python27/patches/patch-al
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-al,v
- retrieving revision 1.17
- diff -u -r1.17 patch-al
- --- lang/python27/patches/patch-al 24 May 2015 07:44:07 -0000 1.17
- +++ lang/python27/patches/patch-al 12 Jul 2015 02:17:19 -0000
- @@ -1,28 +1,28 @@
- -$NetBSD: patch-al,v 1.17 2015/05/24 07:44:07 adam Exp $
- +$NetBSD$
- -- recognize MirBSD, Interix
- +- recognize MirBSD, Interix, Bitrig
- - remove special-case library version hack for FreeBSD
- - don't set Mac OS X target version: stick to the current one
- - honor pkgsrc LDFLAGS
- - other stuff not previously commented (XXX)
- ---- configure.orig 2015-05-23 16:09:25.000000000 +0000
- +--- configure.orig Sat May 23 16:09:25 2015
- +++ configure
- @@ -3271,7 +3271,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/*)
- ++ OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456] | MirBSD/* | Bitrig/*)
- 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
- -@@ -5373,15 +5373,10 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
- +@@ -5373,15 +5373,10 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
- RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- INSTSONAME="$LDLIBRARY".$SOVERSION
- ;;
- - Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
- -+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Interix*|MirBSD*)
- ++ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Interix*|MirBSD*|Bitrig*)
- LDLIBRARY='libpython$(VERSION).so'
- BLDLIBRARY='-L. -lpython$(VERSION)'
- RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- @@ -34,7 +34,7 @@
- INSTSONAME="$LDLIBRARY".$SOVERSION
- ;;
- hp*|HP*)
- -@@ -5415,6 +5410,11 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
- +@@ -5415,6 +5410,11 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
- LDLIBRARY='libpython$(VERSION).so'
- RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
- ;;
- @@ -91,6 +91,15 @@
- BSD/OS*/4*)
- LDSHARED="gcc -shared"
- LDCXXSHARED="g++ -shared";;
- +@@ -8284,7 +8283,7 @@ then
- + else
- + LDSHARED="ld -Bshareable"
- + fi;;
- +- OpenBSD*)
- ++ OpenBSD*|Bitrig*)
- + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
- + then
- + LDSHARED='$(CC) -shared $(CCSHARED)'
- @@ -8300,6 +8299,9 @@ then
- ;;
- esac
- @@ -106,7 +115,7 @@
- Linux*|GNU*) CCSHARED="-fPIC";;
- BSD/OS*/4*) CCSHARED="-fpic";;
- - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
- -+ FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) CCSHARED="-fPIC";;
- ++ FreeBSD*|NetBSD*|OpenBSD*|Bitrig*|MirBSD*|DragonFly*) CCSHARED="-fPIC";;
- + Interix*) CCSHARED="";;
- OpenUNIX*|UnixWare*)
- if test "$GCC" = "yes"
- @@ -116,7 +125,7 @@
- SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
- ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
- - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
- -+ FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*)
- ++ FreeBSD*|NetBSD*|OpenBSD*|Bitrig*|MirBSD*|DragonFly*)
- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
- then
- LINKFORSHARED="-Wl,--export-dynamic"
- @@ -136,3 +145,14 @@
- ;
- return 0;
- }
- +@@ -15328,6 +15336,10 @@ do
- + case $ac_option in
- + # Handling of the options.
- + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ++ : Avoid regenerating within pkgsrc
- ++ exit 0
- ++ : Avoid regenerating within pkgsrc
- ++ exit 0
- + ac_cs_recheck=: ;;
- + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- + $as_echo "$ac_cs_version"; exit ;;
- Index: lang/python27/patches/patch-am
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-am,v
- retrieving revision 1.19
- diff -u -r1.19 patch-am
- --- lang/python27/patches/patch-am 24 Apr 2015 03:01:36 -0000 1.19
- +++ lang/python27/patches/patch-am 12 Jul 2015 02:17:19 -0000
- @@ -1,4 +1,4 @@
- -$NetBSD: patch-am,v 1.19 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- Disabled modules for normal build:
- bsddb
- @@ -23,7 +23,9 @@
- cygwin 2.7.3-no-libm.patch
- ---- setup.py.orig 2014-12-10 16:00:01.000000000 +0000
- +Add Bitrig support
- +
- +--- setup.py.orig Sat May 23 16:09:25 2015
- +++ setup.py
- @@ -33,7 +33,7 @@ host_platform = get_platform()
- COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
- @@ -374,6 +376,15 @@
- if dbmext is not None:
- exts.append(dbmext)
- else:
- +@@ -1890,7 +1723,7 @@ class PyBuildExt(build_ext):
- + # Check for the include files on Debian and {Free,Open}BSD, where
- + # they're put in /usr/include/{tcl,tk}X.Y
- + dotversion = version
- +- if '.' not in dotversion and "bsd" in host_platform.lower():
- ++ if '.' not in dotversion and "bsd" in host_platform.lower() or "bitrig" in host_platform.lower():
- + # OpenBSD and FreeBSD use Tcl/Tk library names like libtcl83.a,
- + # but the include subdirs are named like .../include/tcl8.3.
- + dotversion = dotversion[:-1] + '.' + dotversion[-1]
- @@ -2230,9 +2063,9 @@ def main():
- ext_modules=[Extension('_struct', ['_struct.c'])],
- Index: lang/python27/patches/patch-aw
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-aw,v
- retrieving revision 1.3
- diff -u -r1.3 patch-aw
- --- lang/python27/patches/patch-aw 24 Apr 2015 03:01:36 -0000 1.3
- +++ lang/python27/patches/patch-aw 12 Jul 2015 02:17:19 -0000
- @@ -1,13 +1,13 @@
- -$NetBSD: patch-aw,v 1.3 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- ---- Modules/nismodule.c.orig 2014-12-10 15:59:55.000000000 +0000
- +--- Modules/nismodule.c.orig Sat May 23 16:09:20 2015
- +++ Modules/nismodule.c
- @@ -89,7 +89,7 @@ nis_mapname (char *map, int *pfix)
- return map;
- }
- -#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
- -+#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
- ++#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__Bitrig__) || defined(__FreeBSD__) || defined(__DragonFly__)
- typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *);
- #else
- typedef int (*foreachfunc)(int, char *, int, char *, int, char *);
- Index: lang/python27/patches/patch-az
- ===================================================================
- RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-az,v
- retrieving revision 1.5
- diff -u -r1.5 patch-az
- --- lang/python27/patches/patch-az 24 Apr 2015 03:01:36 -0000 1.5
- +++ lang/python27/patches/patch-az 12 Jul 2015 02:17:19 -0000
- @@ -1,7 +1,16 @@
- -$NetBSD: patch-az,v 1.5 2015/04/24 03:01:36 rodent Exp $
- +$NetBSD$
- ---- Modules/selectmodule.c.orig 2014-12-10 15:59:55.000000000 +0000
- +--- Modules/selectmodule.c.orig Sat May 23 16:09:20 2015
- +++ Modules/selectmodule.c
- +@@ -1235,7 +1235,7 @@ static PyTypeObject kqueue_queue_Type;
- + /*
- + * kevent is not standard and its members vary across BSDs.
- + */
- +-#if !defined(__OpenBSD__)
- ++#if !defined(__OpenBSD__) && !defined(__Bitrig__)
- + # define IDENT_TYPE T_UINTPTRT
- + # define IDENT_CAST Py_intptr_t
- + # define DATA_TYPE T_INTPTRT
- @@ -1906,7 +1906,9 @@ initselect(void)
- PyModule_AddIntConstant(m, "KQ_FILTER_NETDEV", EVFILT_NETDEV);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment