public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Cossette <farchord@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/plasma-camera] f44: Fix for building against libcamera 0.8
Date: Wed, 11 Nov 2026 22:49:24 GMT	[thread overview]
Message-ID: <179443736421.1.256060044343399713.rpms-plasma-camera-4e001a82b872@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-11 22:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179443736421.1.256060044343399713.rpms-plasma-camera-4e001a82b872@fedoraproject.org \
    --to=farchord@gmail.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