libpisp: introduce recipe

It is a dependency of libcamera, when it is built with rpi support.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2025-09-16 19:04:59 +02:00 committed by Andrei Gherzan
parent 6bfb571142
commit 016b1cec8f
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From 230d9c127d45af11739214e78488a93255b832bb Mon Sep 17 00:00:00 2001
From: Gyorgy Sarvari <skandigraun@gmail.com>
Date: Tue, 16 Sep 2025 16:28:34 +0200
Subject: [PATCH] ignore lockf() return value
gcc15 returns an error otherwise:
| ../sources/libpisp-1.2.1/src/helpers/media_device.cpp: In member function 'std::map<std::__cxx11::basic_string<char>, libpisp::helpers::DeviceFd>::iterator libpisp::helpers::MediaDevice::unlock(const std::string&)':
| ../sources/libpisp-1.2.1/src/helpers/media_device.cpp:251:14: error: ignoring return value of 'int lockf(int, int, __off64_t)' declared with attribute 'warn_unused_result' [-Werror=unused-result]
| 251 | lockf(it->second.Get(), F_ULOCK, 0);
| | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Upstream-Status: Submitted [https://github.com/raspberrypi/libpisp/pull/53]
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
src/helpers/media_device.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/helpers/media_device.cpp b/src/helpers/media_device.cpp
index 0dd64d6..121ce79 100644
--- a/src/helpers/media_device.cpp
+++ b/src/helpers/media_device.cpp
@@ -248,6 +248,6 @@ std::map<std::string, DeviceFd>::iterator MediaDevice::unlock(const std::string
if (it == lock_map_.end())
return lock_map_.end();
- lockf(it->second.Get(), F_ULOCK, 0);
+ std::ignore = lockf(it->second.Get(), F_ULOCK, 0);
return lock_map_.erase(it);
}
--
2.51.0

View File

@ -0,0 +1,16 @@
DESCRIPTION = "A helper library to generate run-time configuration for the Raspberry Pi \
ISP (PiSP), consisting of the Frontend and Backend hardware components."
HOMEPAGE = "https://github.com/raspberrypi/libpisp"
LICENSE = "BSD-2-Clause & GPL-2.0-only & GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3417a46e992fdf62e5759fba9baef7a7 \
file://LICENSES/GPL-2.0-only.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c"
SRC_URI = "git://github.com/raspberrypi/libpisp.git;protocol=https;branch=main \
file://0001-ignore-lockf-return-value.patch"
SRCREV = "981977ff21f32c8a97d2a0ecbdff3e39d42ccce3"
DEPENDS = "nlohmann-json"
inherit meson pkgconfig