- Add noforcedsize.diff

OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=12
This commit is contained in:
Jan Engelhardt 2020-03-09 19:10:31 +00:00 committed by Git OBS Bridge
parent 44a8205634
commit d1f25434fa
3 changed files with 23 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Mon Mar 9 14:08:43 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Update to new development snapshot 0~1118.4de31cc
* No user-friendly changelog at this stage
* C++14 is now mandated
- Add noforcedsize.diff
-------------------------------------------------------------------
Fri Aug 23 18:54:16 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -23,10 +23,11 @@ Release: 0
Summary: A complex camera support library in C++
License: LGPL-2.1-or-later AND GPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: https://git.linuxtv.org/libcamera.git/
URL: http://libcamera.org/
Source: %name-%version.tar.xz
Patch1: vers.diff
Patch2: noforcedsize.diff
BuildRequires: c++_compiler
BuildRequires: meson >= 0.47
BuildRequires: pkg-config

20
noforcedsize.diff Normal file
View File

@ -0,0 +1,20 @@
It's 12 on i586.
---
include/libcamera/controls.h | 2 --
1 file changed, 2 deletions(-)
Index: libcamera/include/libcamera/controls.h
===================================================================
--- libcamera.orig/include/libcamera/controls.h
+++ libcamera/include/libcamera/controls.h
@@ -170,8 +170,6 @@ private:
std::size_t numElements, std::size_t elementSize);
};
-static_assert(sizeof(ControlValue) == 16, "Invalid size of ControlValue class");
-
class ControlId
{
public: