Step 2: base dep: lang/python27
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
$NetBSD: patch-aa,v 1.2 2015/04/24 03:01:36 rodent Exp $
|
||||
|
||||
--- Include/py_curses.h.orig 2014-12-10 15:59:32.000000000 +0000
|
||||
+++ Include/py_curses.h
|
||||
--- Include/py_curses.h.orig Sun Nov 10 07:36:39 2013
|
||||
+++ Include/py_curses.h Fri Apr 18 18:45:25 2014
|
||||
@@ -44,6 +44,21 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#ifdef __NetBSD__
|
||||
+#if defined __NetBSD__ || defined __minix
|
||||
+/*
|
||||
+** On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
|
||||
+** against multiple definition of wchar_t and wint_t.
|
||||
11
lang/python27/patches/patch-zz-minix-b
Normal file
11
lang/python27/patches/patch-zz-minix-b
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Python/dynload_shlib.c.orig Fri Apr 18 18:42:43 2014
|
||||
+++ Python/dynload_shlib.c Fri Apr 18 18:43:00 2014
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
-#if defined(__NetBSD__)
|
||||
+#if defined(__NetBSD__) || defined(__minix)
|
||||
#include <sys/param.h>
|
||||
#if (NetBSD < 199712)
|
||||
#include <nlist.h>
|
||||
12
lang/python27/patches/patch-zz-minix-c
Normal file
12
lang/python27/patches/patch-zz-minix-c
Normal file
@@ -0,0 +1,12 @@
|
||||
--- Modules/posixmodule.c.orig Fri Apr 18 18:53:21 2014
|
||||
+++ Modules/posixmodule.c Fri Apr 18 18:53:52 2014
|
||||
@@ -2098,7 +2098,8 @@ Return a string representing the current working direc
|
||||
|
||||
#if (defined(__sun) && defined(__SVR4)) || \
|
||||
defined(__OpenBSD__) || \
|
||||
- defined(__NetBSD__)
|
||||
+ defined(__NetBSD__) || \
|
||||
+ defined(__minix)
|
||||
/* Issue 9185: getcwd() returns NULL/ERANGE indefinitely. */
|
||||
static PyObject *
|
||||
posix_getcwd(PyObject *self, PyObject *noargs)
|
||||
94
lang/python27/patches/patch-zz-minix-d
Normal file
94
lang/python27/patches/patch-zz-minix-d
Normal file
@@ -0,0 +1,94 @@
|
||||
--- Modules/_ctypes/libffi/configure.orig Sat Apr 25 13:51:54 2015
|
||||
+++ Modules/_ctypes/libffi/configure Sat Apr 25 13:56:19 2015
|
||||
@@ -5898,7 +5898,7 @@
|
||||
lt_cv_sys_max_cmd_len=8192;
|
||||
;;
|
||||
|
||||
- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
||||
+ bitrig* | darwin* | dragonfly* | freebsd* | minix* | netbsd* | openbsd*)
|
||||
# This has been around since 386BSD, at least. Likely further.
|
||||
if test -x /sbin/sysctl; then
|
||||
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||
@@ -6367,7 +6367,7 @@
|
||||
lt_cv_deplibs_check_method=pass_all
|
||||
;;
|
||||
|
||||
-netbsd*)
|
||||
+minix* | netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
||||
else
|
||||
@@ -10121,7 +10121,7 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
- netbsd*)
|
||||
+ minix* | netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
||||
wlarc=
|
||||
@@ -10752,7 +10752,7 @@
|
||||
link_all_deplibs=yes
|
||||
;;
|
||||
|
||||
- netbsd*)
|
||||
+ minix* | netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
||||
else
|
||||
@@ -11788,6 +11788,18 @@
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
+minix*)
|
||||
+ version_type=sunos
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
||||
+ soname_spec='$libname$release$shared_ext$major'
|
||||
+ dynamic_linker='Minix ld.elf_so'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
+ hardcode_into_libs=yes
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
need_lib_prefix=no
|
||||
@@ -13859,7 +13871,7 @@
|
||||
esac
|
||||
;;
|
||||
|
||||
- netbsd*)
|
||||
+ minix* | netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
||||
wlarc=
|
||||
@@ -14614,7 +14626,7 @@
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
- netbsd*)
|
||||
+ minix* | netbsd*)
|
||||
;;
|
||||
*qnx* | *nto*)
|
||||
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
||||
@@ -15617,6 +15629,18 @@
|
||||
# people can always --disable-shared, the test was removed, and we
|
||||
# assume the GNU/Linux dynamic linker is in use.
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
+ ;;
|
||||
+
|
||||
+minix*)
|
||||
+ version_type=sunos
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
||||
+ soname_spec='$libname$release$shared_ext$major'
|
||||
+ dynamic_linker='Minix ld.elf_so'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
+ hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
netbsd*)
|
||||
11
lang/python27/patches/patch-zz-minix-e
Normal file
11
lang/python27/patches/patch-zz-minix-e
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Modules/_ctypes/libffi/ltmain.sh.orig Fri Apr 18 19:11:06 2014
|
||||
+++ Modules/_ctypes/libffi/ltmain.sh Fri Apr 18 19:11:33 2014
|
||||
@@ -7627,7 +7627,7 @@ func_mode_link ()
|
||||
# Rhapsody C library is in the System framework
|
||||
func_append deplibs " System.ltframework"
|
||||
;;
|
||||
- *-*-netbsd*)
|
||||
+ *-*-netbsd* | *-*-minix*)
|
||||
# Don't link with libc until the a.out ld.so is fixed.
|
||||
;;
|
||||
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
||||
13
lang/python27/patches/patch-zz-minix-f
Normal file
13
lang/python27/patches/patch-zz-minix-f
Normal file
@@ -0,0 +1,13 @@
|
||||
--- Modules/_ctypes/libffi/config.guess.orig Sat Apr 25 13:58:47 2015
|
||||
+++ Modules/_ctypes/libffi/config.guess Sat Apr 25 13:59:57 2015
|
||||
@@ -880,8 +880,8 @@
|
||||
# other systems with GNU libc and userland
|
||||
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
|
||||
exit ;;
|
||||
- i*86:Minix:*:*)
|
||||
- echo ${UNAME_MACHINE}-pc-minix
|
||||
+ *:Minix:*:*)
|
||||
+ echo ${UNAME_MACHINE}-elf32-minix
|
||||
exit ;;
|
||||
aarch64:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
||||
13
lang/python27/patches/patch-zz-minix-g
Normal file
13
lang/python27/patches/patch-zz-minix-g
Normal file
@@ -0,0 +1,13 @@
|
||||
--- setup.py.orig Sat Apr 25 15:57:29 2015
|
||||
+++ setup.py Sat Apr 25 15:58:11 2015
|
||||
@@ -1396,6 +1396,10 @@
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
+ elif host_platform.startswith('minix'):
|
||||
+ macros = dict()
|
||||
+ libraries = []
|
||||
+
|
||||
elif host_platform.startswith('netbsd'):
|
||||
macros = dict()
|
||||
libraries = []
|
||||
47
lang/python27/patches/patch-zz-minix-h
Normal file
47
lang/python27/patches/patch-zz-minix-h
Normal file
@@ -0,0 +1,47 @@
|
||||
--- configure.orig Tue Apr 28 06:43:45 2015
|
||||
+++ configure Tue Apr 28 06:45:35 2015
|
||||
@@ -5359,7 +5359,7 @@
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
INSTSONAME="$LDLIBRARY".$SOVERSION
|
||||
;;
|
||||
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Interix*|MirBSD*)
|
||||
+ Linux*|GNU*|Minix*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Interix*|MirBSD*)
|
||||
LDLIBRARY='libpython$(VERSION).so'
|
||||
BLDLIBRARY='-L. -lpython$(VERSION)'
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
@@ -8288,7 +8288,7 @@
|
||||
MirBSD*)
|
||||
LDSHARED='$(CC) -shared $(CCSHARED)'
|
||||
LDCXXSHARED='$(CXX) -shared $(CCSHARED)';;
|
||||
- NetBSD*|DragonFly*)
|
||||
+ Minix*|NetBSD*|DragonFly*)
|
||||
LDSHARED='$(CC) -shared'
|
||||
LDCXXSHARED='$(CXX) -shared';;
|
||||
OpenUNIX*|UnixWare*)
|
||||
@@ -8334,7 +8334,7 @@
|
||||
fi;;
|
||||
Linux*|GNU*) CCSHARED="-fPIC";;
|
||||
BSD/OS*/4*) CCSHARED="-fpic";;
|
||||
- FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) CCSHARED="-fPIC";;
|
||||
+ FreeBSD*|Minix*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) CCSHARED="-fPIC";;
|
||||
Interix*) CCSHARED="";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
if test "$GCC" = "yes"
|
||||
@@ -8387,7 +8387,7 @@
|
||||
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
||||
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
|
||||
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
|
||||
- FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*)
|
||||
+ FreeBSD*|Minix*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*)
|
||||
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
||||
then
|
||||
LINKFORSHARED="-Wl,--export-dynamic"
|
||||
@@ -10383,7 +10383,7 @@
|
||||
{
|
||||
int x=kqueue()
|
||||
/* SCO OpenServer 5.0.7/3.2 has not kqueue, but detected as yes. */
|
||||
-#if defined(_SCO_DS)
|
||||
+#if defined(_SCO_DS) || defined(__minix)
|
||||
#error no kqueue
|
||||
#endif
|
||||
;
|
||||
Reference in New Issue
Block a user