python/python-2.7.1-linux3.patch
Stephan Kulow 581a05421a Accepting request 76083 from home:oertel:branches:devel:languages:python:Factory
- fix build on factory: setup reports linux3 not linux2 now,
  adapt checks
- fix build on factory: setup reports linux3 not linux2 now,
  adapt checks

OBS-URL: https://build.opensuse.org/request/show/76083
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=102
2011-07-13 09:52:41 +00:00

21 lines
813 B
Diff

--- Python-2.7.1/setup.py 2011/07/10 23:56:34 1.1
+++ Python-2.7.1/setup.py 2011/07/10 23:57:47
@@ -1454,14 +1454,14 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if (platform in ('linux2', 'linux3')):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
- 'freebsd7', 'freebsd8')
+ if (platform in ('linux2', 'linux3', 'freebsd4', 'freebsd5',
+ 'freebsd6', 'freebsd7', 'freebsd8')
or platform.startswith("gnukfreebsd")):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
else: