Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479576 - dev-lang/python: add USE=bluetooth support rather than autodetect
Summary: dev-lang/python: add USE=bluetooth support rather than autodetect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-02 22:37 UTC by SpanKY
Modified: 2018-04-21 21:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2013-08-02 22:37:27 UTC
looks like things have been this way since at least python-2.5.x, and is the same in python-3.3.x.  so let's just say "forever".

here's the 3.3.0 log snippet:
checking bluetooth.h usability... no
checking bluetooth.h presence... no
checking for bluetooth.h... no
checking bluetooth/bluetooth.h usability... no
checking bluetooth/bluetooth.h presence... no
checking for bluetooth/bluetooth.h... no

and if we look at the source, we see Modules/socketmodule.c will conditionally include bluetooth socket support when those headers are found

so i guess we should have USE=bluetooth control these headers and have it pull in net-wireless/bluez as a DEPEND (no RDEPEND needed)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-02 23:20:11 UTC
We need to check PyPy & Jython then as well.
Comment 2 Larry the Git Cow gentoo-dev 2018-04-21 21:39:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25c63c15103dd42edb4f370dc308f5f5aee62bfd

commit 25c63c15103dd42edb4f370dc308f5f5aee62bfd
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-04-21 21:38:44 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-04-21 21:39:38 +0000

    dev-lang/python: Fix automagic dep on bluetooth headers
    
    Add IUSE=bluetooth to control the support for AF_BLUETOOTH.  When
    enabled, pull net-wireless/bluez to provide headers necessary to build
    it.  When disabled, explicitly make the configure test for appropriate
    headers fail for consistency.
    
    Closes: https://bugs.gentoo.org/479576

 dev-lang/python/metadata.xml            |   1 +
 dev-lang/python/python-2.7.14-r2.ebuild | 369 ++++++++++++++++++++++++++++++++
 dev-lang/python/python-3.4.8-r1.ebuild  | 363 +++++++++++++++++++++++++++++++
 dev-lang/python/python-3.5.5-r1.ebuild  | 368 +++++++++++++++++++++++++++++++
 dev-lang/python/python-3.6.5-r1.ebuild  | 350 ++++++++++++++++++++++++++++++
 5 files changed, 1451 insertions(+)