public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/plasma-camera] f44: Fix for building against libcamera 0.8
@ 2026-11-11 22:49 Steve Cossette
0 siblings, 0 replies; only message in thread
From: Steve Cossette @ 2026-11-11 22:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/plasma-camera
Branch : f44
Commit : 4e001a82b872fa1cdd7b7dbfd9658faa279e728d
Author : Steve Cossette <farchord@gmail.com>
Date : 2026-11-09T09:15:04-05:00
Stats : +48/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/plasma-camera/c/4e001a82b872fa1cdd7b7dbfd9658faa279e728d?branch=f44
Log:
Fix for building against libcamera 0.8
---
diff --git a/7faa4d51fb38b6734111297adaf25232f471bdd8.patch b/7faa4d51fb38b6734111297adaf25232f471bdd8.patch
new file mode 100644
index 0000000..3e05cfe
--- /dev/null
+++ b/7faa4d51fb38b6734111297adaf25232f471bdd8.patch
@@ -0,0 +1,42 @@
+From 7faa4d51fb38b6734111297adaf25232f471bdd8 Mon Sep 17 00:00:00 2001
+From: Robert Mader <robert.mader@collabora.com>
+Date: Sun, 1 Nov 2026 16:42:11 +0100
+Subject: [PATCH] Libcamera 0.8 support
+
+Some enums changed their names - support both the new and the old ones.
+---
+ src/plasmacamera.cpp | 4 ++++
+ src/plasmacameramanager.h | 1 +
+ 2 files changed, 5 insertions(+)
+
+diff --git a/src/plasmacamera.cpp b/src/plasmacamera.cpp
+index c67502c..f19d172 100644
+--- a/src/plasmacamera.cpp
++++ b/src/plasmacamera.cpp
+@@ -627,7 +627,11 @@ bool PlasmaCamera::acquire()
+
+ // Find whether the camera output needs to be mirrored (ex. selife cam)
+ std::optional<int> location = m_camera->properties().get(libcamera::properties::Location);
++#if LIBCAMERA_VERSION_MAJOR > 0 || (LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR >= 8)
++ m_mirrorOutput = location.value_or(libcamera::properties::LocationExternal) == libcamera::properties::LocationFront;
++#else
+ m_mirrorOutput = location.value_or(libcamera::properties::CameraLocationExternal) == libcamera::properties::CameraLocationFront;
++#endif
+
+ return true;
+ }
+diff --git a/src/plasmacameramanager.h b/src/plasmacameramanager.h
+index c890c17..e9775f2 100644
+--- a/src/plasmacameramanager.h
++++ b/src/plasmacameramanager.h
+@@ -11,6 +11,7 @@
+
+ #include <libcamera/libcamera.h>
+ #include <libcamera/camera_manager.h>
++#include <libcamera/version.h>
+
+ #include "plasmacamera.h"
+
+--
+GitLab
+
diff --git a/plasma-camera.spec b/plasma-camera.spec
index 4d9b79b..899d065 100644
--- a/plasma-camera.spec
+++ b/plasma-camera.spec
@@ -7,6 +7,12 @@ URL: https://apps.kde.org/plasma.camera/
Source0: https://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz
+# Upstream
+
+# Fix for building with libcamera 0.8
+# https://invent.kde.org/plasma-mobile/plasma-camera/-/commit/7faa4d51fb38b6734111297adaf25232f471bdd8
+Patch0: 7faa4d51fb38b6734111297adaf25232f471bdd8.patch
+
# libcamera does not currently build on these architectures
ExcludeArch: s390x ppc64le
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 22:49 [rpms/plasma-camera] f44: Fix for building against libcamera 0.8 Steve Cossette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox