Skip to content

Commit 016b1ce

Browse files
OldManYellsAtCloudagherzan
authored andcommitted
libpisp: introduce recipe
It is a dependency of libcamera, when it is built with rpi support. Signed-off-by: Gyorgy Sarvari <[email protected]>
1 parent 6bfb571 commit 016b1ce

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 230d9c127d45af11739214e78488a93255b832bb Mon Sep 17 00:00:00 2001
2+
From: Gyorgy Sarvari <[email protected]>
3+
Date: Tue, 16 Sep 2025 16:28:34 +0200
4+
Subject: [PATCH] ignore lockf() return value
5+
6+
gcc15 returns an error otherwise:
7+
8+
| ../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&)':
9+
| ../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]
10+
| 251 | lockf(it->second.Get(), F_ULOCK, 0);
11+
| | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12+
13+
Upstream-Status: Submitted [https://github.com/raspberrypi/libpisp/pull/53]
14+
15+
Signed-off-by: Gyorgy Sarvari <[email protected]>
16+
---
17+
src/helpers/media_device.cpp | 2 +-
18+
1 file changed, 1 insertion(+), 1 deletion(-)
19+
20+
diff --git a/src/helpers/media_device.cpp b/src/helpers/media_device.cpp
21+
index 0dd64d6..121ce79 100644
22+
--- a/src/helpers/media_device.cpp
23+
+++ b/src/helpers/media_device.cpp
24+
@@ -248,6 +248,6 @@ std::map<std::string, DeviceFd>::iterator MediaDevice::unlock(const std::string
25+
if (it == lock_map_.end())
26+
return lock_map_.end();
27+
28+
- lockf(it->second.Get(), F_ULOCK, 0);
29+
+ std::ignore = lockf(it->second.Get(), F_ULOCK, 0);
30+
return lock_map_.erase(it);
31+
}
32+
--
33+
2.51.0
34+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
DESCRIPTION = "A helper library to generate run-time configuration for the Raspberry Pi \
2+
ISP (PiSP), consisting of the Frontend and Backend hardware components."
3+
HOMEPAGE = "https://github.com/raspberrypi/libpisp"
4+
LICENSE = "BSD-2-Clause & GPL-2.0-only & GPL-2.0-or-later"
5+
LIC_FILES_CHKSUM = "file://LICENSE;md5=3417a46e992fdf62e5759fba9baef7a7 \
6+
file://LICENSES/GPL-2.0-only.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7+
file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c"
8+
9+
SRC_URI = "git://github.com/raspberrypi/libpisp.git;protocol=https;branch=main \
10+
file://0001-ignore-lockf-return-value.patch"
11+
12+
SRCREV = "981977ff21f32c8a97d2a0ecbdff3e39d42ccce3"
13+
14+
DEPENDS = "nlohmann-json"
15+
16+
inherit meson pkgconfig

0 commit comments

Comments
 (0)