Skip to content

feat: add the PortAudio sound library and its Python module (PyAudio) - #748

Closed
codebymarshall wants to merge 3 commits into
projectbluefin:mainfrom
codebymarshall:feat/506-pyaudio-portaudio
Closed

codebymarshall wants to merge 3 commits into
projectbluefin:mainfrom
codebymarshall:feat/506-pyaudio-portaudio

Conversation

@codebymarshall

@codebymarshall codebymarshall commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary: This adds two missing audio packages to the package factory: PortAudio, a library that lets programs record and play sound, and PyAudio, which lets Python programs use it. Bluefin expects the Python audio module to be installable, and the factory couldn't build it before. This covers two of the twelve items still open in the long-tail package batch (#506). The batch stays open for the rest.


What changed

  • packages/portaudio/ — imported from Fedora rawhide dist-git, commit ae07850cc16b7a189c8935268f0839a8d4819cb5 (portaudio 19.7.0).
  • packages/pyaudio/ — imported from Fedora rawhide dist-git, commit c04049b1464c8087a842d7b9b0bad6872ebc8874 (PyAudio 0.2.13).
  • config/upstream-sources.json — source locks pointing at the real upstream downloads (GitHub release archive for PortAudio, PyPI for PyAudio). I downloaded both and checked their SHA-512 against Fedora's sources file. Both match:
    • portaudio-19.7.0.tar.gz 7e347a17…e27ac1c
    • PyAudio-0.2.13.tar.gz 1ae453ca…cc943008
  • .packit.yaml and docs/architecture.md were regenerated with the repo tools.
  • config/factory-build-backlog.toml — moved portaudio and python3-pyaudio from [areas.long-tail] to [resolved], and regenerated reports/factory-build-backlog.json.
  • docs/skills/factory-build-backlog.md — added a note: a 404 on a guessed dist-git name doesn't prove a source was removed from Fedora. Look up the binary's real source package first. An earlier comment on parity(long-tail): resolve factory outputs python3-cups through redhat-menus #506 said pyaudio and pskc were "removed from dist-git". That came from querying python-pyaudio/PyAudio, but the real source packages are pyaudio and python-pskc, and both still exist.

Dispositions (this PR)

output recipe evidence
portaudio packages/portaudio Fedora recipe unchanged; upstream source SHA-512 verified
python3-pyaudio packages/pyaudio (%package -n python3-pyaudio) Fedora recipe unchanged; upstream source SHA-512 verified

Runtime closure, checked against Hummingbird's published repodata (public-hummingbird/x86_64) and this repo's recipes:

  • alsa-lib: Hummingbird.
  • libjack.so.0: pipewire-jack-audio-connection-kit-libs, which the factory's packages/pipewire recipe builds (%bcond_without jack).
  • python3/python3-libs: Hummingbird.

So no Fedora runtime repository is needed. Neither name is waived in Utah's baselines/triage.toml.

Not yet done (needs maintainer action)

  • Hosted build evidence. I can't dispatch workflows from a fork, so there's no pinned Packit/mock run URL or binary NEVRAs yet. A maintainer can run the Canary lane for ["portaudio","pyaudio"] and record the result. Then a runtime smoke test, e.g. python3 -c 'import pyaudio; print(pyaudio.get_portaudio_version_text())'.
  • Still open in parity(long-tail): resolve factory outputs python3-cups through redhat-menus #506: python3-perf, python3-pskc (source python-pskc exists; it needs python-lxml at runtime, which isn't in Hummingbird or the factory yet), qrencode-libs (the upstream download at fukuchi.org now 404s, so it needs a generate/fallback source decision), and the seven Qt5-family outputs.

Validation

  • just check: passed (includes factory_build_backlog.py --check: "snapshot consistent (239 entries, 221 pending)")
  • just test: 1379 passed, 2 skipped
  • pre-commit isn't installed in this environment, so I didn't run it. CI runs the same hooks.

Refs #506. This is a partial batch; the outputs listed above stay open.

🤖 Generated with Claude Code

— hive: backend=claude model=claude-opus-5-5


🐝 Hive Agent: contributor | SHA: 4c0b9190

codebymarshall and others added 2 commits October 27, 2026 23:30
Import portaudio 19.7.0 and pyaudio 0.2.13 from Fedora rawhide dist-git.
Both Source0 archives are upstream (GitHub release archive and PyPI) and
their SHA-512 matches Fedora's sources file. PortAudio's runtime libraries
(alsa-lib from Hummingbird, pipewire-jack libs from the factory pipewire
recipe) already resolve, so python3-pyaudio's closure stays inside
Hummingbird plus the factory.

Move portaudio and python3-pyaudio from the long-tail area to [resolved]
and regenerate the backlog report, Packit config and architecture counts.

Part of projectbluefin#506

Assisted-by: Claude Opus 5.5 via Claude Code
Hive-Run: projectbluefin#506
Hive-Plan: long-tail batch: pyaudio + portaudio source family
Hive-Spec: projectbluefin#506
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>
…bluefin#748

Part of projectbluefin#506

Hive-Run: projectbluefin#506
Hive-Plan: long-tail batch: pyaudio + portaudio source family
Hive-Spec: projectbluefin#506
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>
@hivecommons-hive hivecommons-hive Bot added author/clanker A contributor's own hive authored this PR under their login dco All commits are DCO signed-off role/contributor Author holds the contributor tier in this hive's registry; a human must lgtm/approve stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 27, 2026
@hivecommons-hive hivecommons-hive Bot added stage/072-returned-to-contributor Contributor PR: CI red, changes requested or conflicting; diagnosis posted, author must act and removed stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 27, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor

@codebymarshall this PR is back in your court (stage/072-returned-to-contributor). The hive will not merge it until the head changes.

Review asks:

  • the branch conflicts with the base and needs a rebase

Reply here or push a new head to this branch (same sign-off); CI and the review swarm re-run automatically and the PR returns to the normal path.

Queued in your relay fix queue (2 waiting): fixes are handed out before new work as soon as you have capacity.

…rtaudio

# Conflicts:
#	config/factory-build-backlog.toml
#	reports/factory-build-backlog.json
@codebymarshall

Copy link
Copy Markdown
Contributor Author

hive-base-moved: merged current main tip 4d10fea (feat(gnome-apps): reconcile published terminal and GNOME outputs, #747) into this branch. Resolved conflicts in config/factory-build-backlog.toml (kept both the #413 terminal/VTE entries and this PR's portaudio/python3-pyaudio entries) and regenerated reports/factory-build-backlog.json with tools/factory_build_backlog.py (235 entries, 221 pending; --check passes, pytest 1379 passed). New head: e52b5dd4.


🐝 Hive Agent: contributor | SHA: e52b5dd4

@hivecommons-hive hivecommons-hive Bot added stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed stage/072-returned-to-contributor Contributor PR: CI red, changes requested or conflicting; diagnosis posted, author must act labels Oct 28, 2026
@hanthor

hanthor commented Oct 28, 2026

Copy link
Copy Markdown
Member

Adopted as #752, which preserves the reviewed PortAudio/PyAudio recipes, merges current main, and corrects the #506 source-name typo in the backlog skill. #752 passed CI and merged.

hanthor added a commit that referenced this pull request Oct 28, 2026
* feat: add PortAudio and PyAudio build recipes

Import portaudio 19.7.0 and pyaudio 0.2.13 from Fedora rawhide dist-git.
Both Source0 archives are upstream (GitHub release archive and PyPI) and
their SHA-512 matches Fedora's sources file. PortAudio's runtime libraries
(alsa-lib from Hummingbird, pipewire-jack libs from the factory pipewire
recipe) already resolve, so python3-pyaudio's closure stays inside
Hummingbird plus the factory.

Move portaudio and python3-pyaudio from the long-tail area to [resolved]
and regenerate the backlog report, Packit config and architecture counts.

Part of #506

Assisted-by: Claude Opus 5.5 via Claude Code
Hive-Run: #506
Hive-Plan: long-tail batch: pyaudio + portaudio source family
Hive-Spec: #506
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>

* chore(backlog): link portaudio and python3-pyaudio records to #748

Part of #506

Hive-Run: #506
Hive-Plan: long-tail batch: pyaudio + portaudio source family
Hive-Spec: #506
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>

---------

Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>
Co-authored-by: codebymarshall <codebymarshall@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hanthor hanthor closed this Oct 28, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no findings from correctness, security, intent-alignment, style, docs-currency.

Confidence: 5/5 (safe)

— hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88

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

Labels

author/clanker A contributor's own hive authored this PR under their login dco All commits are DCO signed-off role/contributor Author holds the contributor tier in this hive's registry; a human must lgtm/approve stage/050-review-pending Review swarm requested; awaiting a verdict for the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants