Skip to content

pipewire: fix build with libcamera 0.8 - #586770

Merged
K900 merged 1 commit into
NixOS:stagingfrom
hesiod:libcamera-pipewire-fix
Nov 14, 2026
Merged

K900 merged 1 commit into
NixOS:stagingfrom
hesiod:libcamera-pipewire-fix

Conversation

@hesiod

@hesiod hesiod commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

See prior discussion: #584599 (comment)

Upstream PR: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/3103

Unfortunately upstream never includes libcamera/version.h or libcamera/libcamera.h so the version definitions are missing by default, therefore we vendor a small patch instead of using the upstream diff. Should probably be reported upstream.

Things done

@hesiod
hesiod requested a review from mweinelt November 11, 2026 15:26
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 11, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested review from K900 and qweered November 11, 2026 15:36
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Nov 11, 2026
@hesiod
hesiod force-pushed the libcamera-pipewire-fix branch from eb1c716 to 9bad651 Compare November 12, 2026 01:32
@K900

K900 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

If we have to bodge the version conditionals anyway, maybe just vendor a tiny patch that only has the new code paths?

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 12, 2026
@hesiod
hesiod force-pushed the libcamera-pipewire-fix branch from 9bad651 to fe202c2 Compare November 14, 2026 11:54
@hesiod

hesiod commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

@K900 vendored a simplified patch as requested

Comment thread pkgs/by-name/pi/pipewire/package.nix Resolved
Upstream PR: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/3103

Unfortunately upstream messed up their patch a little bit by never including
libcamera/version.h or libcamera/libcamera.h so the version definitions are
missing by default. Therefore the simplest option is to simply vendor the
patch removing the preprocessor condition.
@hesiod
hesiod force-pushed the libcamera-pipewire-fix branch from fe202c2 to 24c3abe Compare November 14, 2026 12:05
@K900
K900 enabled auto-merge November 14, 2026 12:09
@K900
K900 added this pull request to the merge queue Nov 14, 2026
Merged via the queue into NixOS:staging with commit 12246d4 Nov 14, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants