libcamera: build with 64-bit time_t
PATCH 1/1 libcamera: build with 64-bit time_t
64-bit time was turned off for all of libcamera because v4l2-compat. libcamera fixed this upstream in v0.3.0 by also undefining _TIME_BITS for v4l2-compat (commit 705601 "v4l2:
Unset _TIME_BITS in addition to _FILE_OFFSET_BITS"), so the workaround is no longer needed.
v4l2-compat.so still uses 32-bit APIs on purpose, so keep the 32bit-time QA skip for it.
Signed-off-by Prasanth R <[email protected]>
---
libcamera.so before:
recvmsg@GLIBC_2.4, ioctl@GLIBC_2.4, clock_gettime@GLIBC_2.17, stat64@GLIBC_2.33, fstat64@GLIBC_2.33, sendmsg@GLIBC_2.4
after:
__recvmsg64, __ioctl_time64, __clock_gettime64, __stat64_time64, __fstat64_time64, __sendmsg64 (GLIBC_2.34)
.../recipes-multimedia/libcamera/libcamera_0.7.2.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb +2 -4
@@ -94,10 +94,8 @@ FILES:${PN}-compliance = "${bindir}/lc-compliance" FILES:${PN}-gst = "${libdir}/gstreamer-1.0" FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" -# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to -# both 32 and 64 bit file APIs. -GLIBC_64BIT_TIME_FLAGS = "" - +# v4l2-compat.so is built with 32-bit file and time APIs on purpose, so it +# can wrap both the 32 and 64-bit calls. The rest of libcamera uses 64-bit time. INSANE_SKIP += "32bit-time" CXXFLAGS += "-Wno-error=array-bounds"
Signature · 1 line
2.34.1