ossaudiodev and linuxaudiodev not built on SLES11SP2 due to change in sys.platform

I am currently working on porting our Linux tool chains to SuSe Enterprise Linux 11 service pack 2 (SLES11SP2). During this process, we noticed an issue due to a change in the sys.platform string. Previously, the string was "linux2" and it has now changed to "linux3". This seems to be due to a change in the kernel version. This causes the ossaudiodev and linuxaudiodev modules to be omitted from the build. I found the relevant code in setup.py: if platform == 'linux2': # Linux-specific modules exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) ) else: missing.append('linuxaudiodev') if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'): exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) else: missing.append('ossaudiodev') Since neither of these account for "linux3", they are both omitted from the build. I can simply modify the code to include "linux3" so that these modules are built on the new platform. However, I wanted to check and see whether they are specifically being omitted for a reason or if the setup file just wasn't ported and tested against the new platform. Any help would be appreciated. Thanks. Kris ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Sorry, I forgot to mention that this is for Python 2.6.8 and 2.7.3. From: python-dev-bounces+kristofer.wempa=sig.com@python.org [mailto:python-dev-bounces+kristofer.wempa=sig.com@python.org] On Behalf Of Wempa, Kristofer Sent: Monday, May 21, 2012 10:49 AM To: python-dev@python.org Subject: [Python-Dev] ossaudiodev and linuxaudiodev not built on SLES11SP2 due to change in sys.platform I am currently working on porting our Linux tool chains to SuSe Enterprise Linux 11 service pack 2 (SLES11SP2). During this process, we noticed an issue due to a change in the sys.platform string. Previously, the string was "linux2" and it has now changed to "linux3". This seems to be due to a change in the kernel version. This causes the ossaudiodev and linuxaudiodev modules to be omitted from the build. I found the relevant code in setup.py: if platform == 'linux2': # Linux-specific modules exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) ) else: missing.append('linuxaudiodev') if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'): exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) else: missing.append('ossaudiodev') Since neither of these account for "linux3", they are both omitted from the build. I can simply modify the code to include "linux3" so that these modules are built on the new platform. However, I wanted to check and see whether they are specifically being omitted for a reason or if the setup file just wasn't ported and tested against the new platform. Any help would be appreciated. Thanks. Kris ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Am 21.05.2012 16:53, schrieb Wempa, Kristofer:
Sorry, I forgot to mention that this is for Python 2.6.8 and 2.7.3.
You must be mistaken, Python 2.7.3 has a fix for the issue. configure checks for linux*: linux*) MACHDEP="linux2";; On the other hand Python 2.6.8 has no such fix and thus sets linux3 on Kernel 3.0 and newer. You have fix it yourself as described in my blog http://lipyrary.blogspot.de/2011/09/python-and-linux-kernel-30-sysplatform.h... Christian
participants (2)
-
Christian Heimes
-
Wempa, Kristofer