diff --git a/libcamera-fix-for-gcc15.patch b/libcamera-fix-for-gcc15.patch new file mode 100644 index 0000000..bbc011f --- /dev/null +++ b/libcamera-fix-for-gcc15.patch @@ -0,0 +1,10 @@ +--- libcamera-0.4.0/include/libcamera/internal/dma_buf_allocator.h.orig 2025-03-20 11:39:34.091724400 +0100 ++++ libcamera-0.4.0/include/libcamera/internal/dma_buf_allocator.h 2025-03-20 11:39:58.223693700 +0100 +@@ -7,6 +7,7 @@ + + #pragma once + ++#include + #include + #include + #include diff --git a/libcamera.changes b/libcamera.changes index 380fbc3..0619072 100644 --- a/libcamera.changes +++ b/libcamera.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 20 10:48:50 UTC 2025 - Guillaume GARDET + +- Add trivial patch to fix build with gcc15: + * libcamera-fix-for-gcc15.patch + ------------------------------------------------------------------- Mon Dec 23 21:51:19 UTC 2024 - Antonio Larrosa diff --git a/libcamera.spec b/libcamera.spec index e4fc1c8..47e8c04 100644 --- a/libcamera.spec +++ b/libcamera.spec @@ -1,7 +1,7 @@ # # spec file for package libcamera # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ Name: libcamera%extname Version: 0.4.0 Release: 0 Summary: A complex camera support library in C++ -License: GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-SA-4.0 +License: CC-BY-SA-4.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later Group: Development/Libraries/C and C++ URL: https://libcamera.org/ #Git-Web: https://git.libcamera.org/libcamera/libcamera.git/ @@ -35,6 +35,9 @@ URL: https://libcamera.org/ Source: libcamera-%version.tar.xz Source1: baselibs.conf +# PATCH-FIX-UPSTREAM - https://github.com/raspberrypi/libcamera/issues/250 +Patch1: libcamera-fix-for-gcc15.patch + BuildRequires: boost-devel BuildRequires: c++_compiler %if 0%{?suse_version} <= 1500 @@ -57,8 +60,8 @@ BuildRequires: pkgconfig(libevent_pthreads) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(openssl) -BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(pybind11) +BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(yaml-0.1) %if "@BUILD_FLAVOR@" != "" BuildRequires: pkgconfig(Qt6Core)