GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve/fix FreeBSD Bluetooth socket support · Issue #85302 · python/cpython

Improve/fix FreeBSD Bluetooth socket support #85302

New issue
Copy link
New issue
Copy link
Closed
Closed
Improve/fix FreeBSD Bluetooth socket support#85302
Copy link
Labels
3.10 (EOL)end of lifeend of life3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-freebsdextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement

Description

myfreeweb
mannequin
opened on Jun 26, 2020
Issue body actions
BPO 41130
Nosy @koobs, @myfreeweb

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-06-26.19:00:41.062>
labels = ['3.8', 'type-feature', '3.7', '3.9', '3.10']
title = 'Improve/fix FreeBSD Bluetooth socket support'
updated_at = <Date 2020-06-26.19:00:41.062>
user = 'https://github.com/myfreeweb'

bugs.python.org fields:

activity = <Date 2020-06-26.19:00:41.062>
actor = 'myfreeweb'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['FreeBSD']
creation = <Date 2020-06-26.19:00:41.062>
creator = 'myfreeweb'
dependencies = []
files = []
hgrepos = []
issue_num = 41130
keywords = []
message_count = 1.0
messages = ['372439']
nosy_count = 2.0
nosy_names = ['koobs', 'myfreeweb']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue41130'
versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

Linked PRs

  • gh-85302: Add support for BTPROTO_SCO on FreeBSD #131981

Activity

  1. myfreeweb commented on Jun 26, 2020

    @myfreeweb
    myfreewebmannequin
    on Jun 26, 2020
    MannequinAuthor
    More actions
    1. BTPROTO_HCI addresses only expect string identifiers on NetBSD and DragonFly:

      cpython/Modules/socketmodule.c

      Line 1931 in 2e0a920

      #if defined(__NetBSD__) || defined(__DragonFly__)

    But of course this is true on FreeBSD too. (DragonFly inherited the BT stack from FreeBSD!)
    For example this is how hccontrol creates an address:
    https://github.com/freebsd/freebsd/blob/6bb9221a9b865ee432269099f341e4230a6cbcd4/usr.sbin/bluetooth/hccontrol/hccontrol.c#L115-L129

    So currently it is not possible to bind an HCI socket (without using FFI to directly use the libc bind function) :(

    1. BTPROTO_SCO is excluded on FreeBSD:

      cpython/Modules/socketmodule.c

      Line 1953 in 2e0a920

      #if !defined(__FreeBSD__)

    But SCO has been supported since 2008: freebsd/freebsd-src@bb4c6de

  2. myfreeweb
    added
    3.7 (EOL)end of lifeend of life
    3.8 (EOL)end of lifeend of life
    3.9 (EOL)end of lifeend of life
    3.10 (EOL)end of lifeend of life
    type-featureA feature request or enhancementA feature request or enhancement
    on Jun 26, 2020
  3. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  4. vstinner
    added
    OS-freebsd
    on Apr 21, 2022
  5. iritkatriel
    added
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    on Dec 1, 2023
  6. serhiy-storchaka commented on Apr 1, 2025

    @serhiy-storchaka
    serhiy-storchaka
    on Apr 1, 2025
    Member
    More actions

    (1) was fixed by #131668.

  7. serhiy-storchaka
    added a commit that references this issue on Apr 1, 2025

    pythongh-85302: Add support for BTPROTO_SCO on FreeBSD

    2debf1e
  8. serhiy-storchaka
    added a commit that references this issue on Apr 11, 2025

    gh-85302: Add support for BTPROTO_SCO on FreeBSD (GH-131981)

    e5f8b2c
  9. serhiy-storchaka
    closed this as completedon Apr 12, 2025
  10. koobs commented on Apr 13, 2025

    @koobs
    koobs
    on Apr 13, 2025
    More actions

    😍

  11. serhiy-storchaka commented on Apr 13, 2025

    @serhiy-storchaka
    serhiy-storchaka
    on Apr 13, 2025
    Member
    More actions

    Actually, we did not test this on live FreeBSD machine, and were unable to test it on a VM, so the support is rather theoretical. I will be grateful if someone can test it on machine where the Bluetooth socket tests are not skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10 (EOL)end of lifeend of life3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-freebsdextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.