Преглед изворни кода

Fix build of ossaudiodev in Linux/FreeBSD for Python 2.6 (#2049)

This is essentially the same fix as in pull request #2047, but it
is applied from Python 2.6.6 to 2.6.9, and for `ossaudiodev` as well
as the (deprecated) `linuxaudiodev`.
pull/2051/head
Víctor Molina García пре 4 година
committed by GitHub
родитељ
комит
f7450587dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 измењених фајлова са 68 додато и 4 уклоњено
  1. +17
    -1
      plugins/python-build/share/python-build/patches/2.6.6/Python-2.6.6/000_patch-setup.py.diff
  2. +17
    -1
      plugins/python-build/share/python-build/patches/2.6.7/Python-2.6.7/000_patch-setup.py.diff
  3. +17
    -1
      plugins/python-build/share/python-build/patches/2.6.8/Python-2.6.8/000_patch-setup.py.diff
  4. +17
    -1
      plugins/python-build/share/python-build/patches/2.6.9/Python-2.6.9/000_patch-setup.py.diff

+ 17
- 1
plugins/python-build/share/python-build/patches/2.6.6/Python-2.6.6/000_patch-setup.py.diff Прегледај датотеку

@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
@@ -1443,14 +1443,13 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if platform.startswith('linux'):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- 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')

+ 17
- 1
plugins/python-build/share/python-build/patches/2.6.7/Python-2.6.7/000_patch-setup.py.diff Прегледај датотеку

@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
@@ -1443,14 +1443,13 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if platform.startswith('linux'):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- 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')

+ 17
- 1
plugins/python-build/share/python-build/patches/2.6.8/Python-2.6.8/000_patch-setup.py.diff Прегледај датотеку

@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
@@ -1443,14 +1443,13 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if platform.startswith('linux'):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- 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')

+ 17
- 1
plugins/python-build/share/python-build/patches/2.6.9/Python-2.6.9/000_patch-setup.py.diff Прегледај датотеку

@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
@@ -1443,14 +1443,13 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if platform.startswith('linux'):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- 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')

Loading…
Откажи
Сачувај