public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Wim Taymans <wtaymans@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pipewire] f44: Rebuild for libcamera 0.8.0
Date: Thu, 26 Nov 2026 12:26:57 GMT [thread overview]
Message-ID: <179569601773.1.12676864913110365111.rpms-pipewire-9aadb409aead@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pipewire
Branch : f44
Commit : 9aadb409aeadd65e26eed3f167a1799fff582025
Author : Wim Taymans <wtaymans@redhat.com>
Date : 2026-11-09T13:14:18+01:00
Stats : +52/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pipewire/c/9aadb409aeadd65e26eed3f167a1799fff582025?branch=f44
Log:
Rebuild for libcamera 0.8.0
---
diff --git a/0001-spa-libcamera-device-0.8-compatibility.patch b/0001-spa-libcamera-device-0.8-compatibility.patch
new file mode 100644
index 0000000..d900c59
--- /dev/null
+++ b/0001-spa-libcamera-device-0.8-compatibility.patch
@@ -0,0 +1,50 @@
+From 15c4a92ceae560a4e8c6c14b8c338db075860a57 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= <pobrn@protonmail.com>
+Date: Tue, 27 Oct 2026 21:28:56 +0100
+Subject: [PATCH 1/2] spa: libcamera: device: 0.8 compatibility
+
+Version 0.8 of libcamera has incompatible changes, so adjust the code,
+while keeping compatibility with older versions as well.
+
+(cherry picked from commit 54f2f51f5233026e608f8235f5377b9b473918e3)
+---
+ spa/plugins/libcamera/libcamera-device.cpp | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/spa/plugins/libcamera/libcamera-device.cpp b/spa/plugins/libcamera/libcamera-device.cpp
+index 0aeaed855..c6b6106bc 100644
+--- a/spa/plugins/libcamera/libcamera-device.cpp
++++ b/spa/plugins/libcamera/libcamera-device.cpp
+@@ -28,6 +28,7 @@
+
+ #include <libcamera/camera.h>
+ #include <libcamera/property_ids.h>
++#include <libcamera/version.h>
+
+ using namespace libcamera;
+
+@@ -69,12 +70,21 @@ const char *cameraLoc(const Camera& camera)
+ {
+ if (auto location = camera.properties().get(properties::Location)) {
+ switch (location.value()) {
++#if LIBCAMERA_VERSION_MAJOR > 0 || (LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR >= 8)
++ case properties::LocationFront:
++ return "front";
++ case properties::LocationBack:
++ return "back";
++ case properties::LocationExternal:
++ return "external";
++#else
+ case properties::CameraLocationFront:
+ return "front";
+ case properties::CameraLocationBack:
+ return "back";
+ case properties::CameraLocationExternal:
+ return "external";
++#endif
+ }
+ }
+
+--
+2.56.0
+
diff --git a/pipewire.spec b/pipewire.spec
index 9a08749..9227df6 100644
--- a/pipewire.spec
+++ b/pipewire.spec
@@ -84,6 +84,7 @@ Source0: https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/%{ver
Source1: pipewire.sysusers
## upstream patches
+Patch0001: 0001-spa-libcamera-device-0.8-compatibility.patch
## upstreamable patches
@@ -935,6 +936,7 @@ systemctl --no-reload preset --global pipewire.socket >/dev/null 2>&1 || :
%changelog
* Mon Nov 09 2026 Wim Taymans <wtaymans@redhat.com> - 1.6.11-2
- Rebuild for libcamera 0.8.0
+- Add 0.8.0 compatibility patch
* Thu Oct 29 2026 Wim Taymans <wtaymans@redhat.com> - 1.6.11-1
- Update version to 1.6.11
next reply other threads:[~2026-11-26 12:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 12:26 Wim Taymans [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-26 12:26 [rpms/pipewire] f44: Rebuild for libcamera 0.8.0 Wim Taymans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179569601773.1.12676864913110365111.rpms-pipewire-9aadb409aead@fedoraproject.org \
--to=wtaymans@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox