This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yesmar
Recipients yesmar
Date 2009-03-18.18:21:28
SpamBayes Score 1.2023863e-06
Marked as misclassified No
Message-id <1237400494.47.0.163345338744.issue5510@psf.upfronthosting.co.za>
In-reply-to
Content
I couldn't install setuptools (required by gitosis) because Python 2.6.1
didn't install socket when I built it. A little digging and I
uncommented the "_socket socketmodule.c" line in Modules/Setup.
Unfortunately, the Bluetooth socket stuff in Modules/socketmodule.c was
broken under NetBSD. I made this patch and tested on NetBSD 4.0.1.

When researching this bug on bugs.python.org, I noticed issue5400 which,
in order to get Modules/socketmodule.c compiling, disabled Bluetooth
socket support entirely. That isn't necessary. I just had to ensure the
various structure references made use of the proper member names
(according to NetBSD's /usr/include/netbt/bluetooth.h header file). The
changes I made were similar, though not precisely the same, as those for
FreeBSD.

After patching and building:

ramsey@wizard /opt/build/runtime/Python-2.6.1$ ./python -bb -E
Lib/test/regrtest.py test_socket
test_socket
1 test OK.
History
Date User Action Args
2009-03-18 18:21:35yesmarsetrecipients: + yesmar
2009-03-18 18:21:34yesmarsetmessageid: <1237400494.47.0.163345338744.issue5510@psf.upfronthosting.co.za>
2009-03-18 18:21:30yesmarlinkissue5510 messages
2009-03-18 18:21:29yesmarcreate