diff options
| -rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch | 38 | ||||
| -rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb | 5 |
2 files changed, 39 insertions, 4 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch new file mode 100644 index 0000000000..f41dde0e16 --- /dev/null +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 5aabd01e415374fc97eebe80d4635c3bae728f81 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hans Verkuil <hverkuil@xs4all.nl> | ||
| 3 | Date: Sat, 12 Apr 2025 12:30:13 +0200 | ||
| 4 | Subject: [PATCH] meson.build: fix arm _TIME_BITS=64 error | ||
| 5 | |||
| 6 | Undefine _TIME_BITS to avoid this error on 32-bit arm: | ||
| 7 | |||
| 8 | /usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64" | ||
| 9 | |||
| 10 | Upstream-Status: Backport [https://github.com/gjasny/v4l-utils/commit/d517cfdcdc16533ab7e06e97c07ca089cf261aef] | ||
| 11 | |||
| 12 | Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> | ||
| 13 | Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> | ||
| 14 | --- | ||
| 15 | meson.build | 6 +++++- | ||
| 16 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/meson.build b/meson.build | ||
| 19 | index 269a9da7..31927cda 100644 | ||
| 20 | --- a/meson.build | ||
| 21 | +++ b/meson.build | ||
| 22 | @@ -53,8 +53,12 @@ v4l2_wrapper_args = [ | ||
| 23 | # As the library needs to provide both 32-bit and 64-bit versions | ||
| 24 | # of file operations, disable transparent large file support (fixes | ||
| 25 | # 'Error: symbol `open64/mmap64' is already defined' compile failure | ||
| 26 | - # otherwise) | ||
| 27 | + # otherwise). | ||
| 28 | + # | ||
| 29 | + # Also disable _TIME_BITS=64 since this is allowed only with | ||
| 30 | + # _FILE_OFFSET_BITS=64, which is now 32. | ||
| 31 | '-U_FILE_OFFSET_BITS', | ||
| 32 | + '-U_TIME_BITS', | ||
| 33 | '-D_FILE_OFFSET_BITS=32', | ||
| 34 | '-D_LARGEFILE64_SOURCE', | ||
| 35 | ] | ||
| 36 | -- | ||
| 37 | 2.34.1 | ||
| 38 | |||
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb index 0a3b5d28b6..a719bff02e 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.28.1.bb | |||
| @@ -13,10 +13,6 @@ DEPENDS = "jpeg \ | |||
| 13 | DEPENDS:append:libc-musl = " argp-standalone" | 13 | DEPENDS:append:libc-musl = " argp-standalone" |
| 14 | DEPENDS:append:class-target = " udev" | 14 | DEPENDS:append:class-target = " udev" |
| 15 | LDFLAGS:append = " -pthread" | 15 | LDFLAGS:append = " -pthread" |
| 16 | # v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to | ||
| 17 | # both 32 and 64 bit file APIs. But it does not handle the time side? | ||
| 18 | # Needs further investigation | ||
| 19 | GLIBC_64BIT_TIME_FLAGS = "" | ||
| 20 | 16 | ||
| 21 | inherit meson gettext pkgconfig | 17 | inherit meson gettext pkgconfig |
| 22 | 18 | ||
| @@ -29,6 +25,7 @@ SRC_URI = "\ | |||
| 29 | git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.28 \ | 25 | git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.28 \ |
| 30 | file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \ | 26 | file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \ |
| 31 | file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \ | 27 | file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \ |
| 28 | file://0003-meson.build-fix-arm-_TIME_BITS-64-error.patch \ | ||
| 32 | " | 29 | " |
| 33 | 30 | ||
| 34 | SRCREV = "fc15e229d9d337e46d730f00647821adbbd58548" | 31 | SRCREV = "fc15e229d9d337e46d730f00647821adbbd58548" |
