diff --git a/plugins/python-build/share/python-build/patches/3.1.0/Python-3.1/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.0/Python-3.1/000_patch-setup.py.diff index fd23a80d..ad886b8a 100644 --- a/plugins/python-build/share/python-build/patches/3.1.0/Python-3.1/000_patch-setup.py.diff +++ b/plugins/python-build/share/python-build/patches/3.1.0/Python-3.1/000_patch-setup.py.diff @@ -43,3 +43,13 @@ diff -r -u ../Python-3.1/setup.py ./setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. +@@ -1203,8 +1203,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev') diff --git a/plugins/python-build/share/python-build/patches/3.1.1/Python-3.1.1/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.1/Python-3.1.1/000_patch-setup.py.diff index fd23a80d..ad886b8a 100644 --- a/plugins/python-build/share/python-build/patches/3.1.1/Python-3.1.1/000_patch-setup.py.diff +++ b/plugins/python-build/share/python-build/patches/3.1.1/Python-3.1.1/000_patch-setup.py.diff @@ -43,3 +43,13 @@ diff -r -u ../Python-3.1/setup.py ./setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. +@@ -1203,8 +1203,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev') diff --git a/plugins/python-build/share/python-build/patches/3.1.2/Python-3.1.2/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.2/Python-3.1.2/000_patch-setup.py.diff index fd23a80d..b57d888d 100644 --- a/plugins/python-build/share/python-build/patches/3.1.2/Python-3.1.2/000_patch-setup.py.diff +++ b/plugins/python-build/share/python-build/patches/3.1.2/Python-3.1.2/000_patch-setup.py.diff @@ -43,3 +43,13 @@ diff -r -u ../Python-3.1/setup.py ./setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. +@@ -1207,8 +1207,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev') diff --git a/plugins/python-build/share/python-build/patches/3.1.3/Python-3.1.3/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.3/Python-3.1.3/000_patch-setup.py.diff index bf60166b..4edf36a4 100644 --- a/plugins/python-build/share/python-build/patches/3.1.3/Python-3.1.3/000_patch-setup.py.diff +++ b/plugins/python-build/share/python-build/patches/3.1.3/Python-3.1.3/000_patch-setup.py.diff @@ -44,4 +44,13 @@ diff -r -u setup.py setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. - +@@ -1321,8 +1321,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev') diff --git a/plugins/python-build/share/python-build/patches/3.1.4/Python-3.1.4/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.4/Python-3.1.4/000_patch-setup.py.diff new file mode 100644 index 00000000..ae14c686 --- /dev/null +++ b/plugins/python-build/share/python-build/patches/3.1.4/Python-3.1.4/000_patch-setup.py.diff @@ -0,0 +1,12 @@ +--- setup.py.orig 2012-04-10 01:25:37.000000000 +0200 ++++ setup.py 2021-09-03 10:16:58.575042300 +0200 +@@ -1344,8 +1344,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev') diff --git a/plugins/python-build/share/python-build/patches/3.1.5/Python-3.1.5/000_patch-setup.py.diff b/plugins/python-build/share/python-build/patches/3.1.5/Python-3.1.5/000_patch-setup.py.diff new file mode 100644 index 00000000..ae14c686 --- /dev/null +++ b/plugins/python-build/share/python-build/patches/3.1.5/Python-3.1.5/000_patch-setup.py.diff @@ -0,0 +1,12 @@ +--- setup.py.orig 2012-04-10 01:25:37.000000000 +0200 ++++ setup.py 2021-09-03 10:16:58.575042300 +0200 +@@ -1344,8 +1344,7 @@ + # End multiprocessing + + # Platform-specific libraries +- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', +- 'freebsd7', 'freebsd8'): ++ if platform.startswith('linux') or platform.startswith('freebsd'): + exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) + else: + missing.append('ossaudiodev')