diff options
| author | Jiaying Song <jiaying.song.cn@windriver.com> | 2025-07-30 13:56:18 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2025-09-11 16:58:30 +0800 |
| commit | 2a7a09ff104d73c94d3517a99ff07e411bb242dd (patch) | |
| tree | 0da3f5e1a3d39150fc1709e2bb81451b97d98d4a /meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch | |
| parent | c29a18fa39ede952f3f6108ec007c1906e2d9a0d (diff) | |
| download | meta-openembedded-2a7a09ff104d73c94d3517a99ff07e411bb242dd.tar.gz | |
v4l-utils: Fix QA and build errors related to _TIME_BITS on 32-bit
* Remove GLIBC_64BIT_TIME_FLAGS="" to enable _TIME_BITS=64 by default,
which avoids the following QA issue during builds on 32-bit systems:
WARNING: lib32-v4l-utils-1.24.1+git-r0 do_package_qa: QA Issue: /usr/bin/cec-compliance uses 32-bit api 'time'
* Undefine _TIME_BITS to fix the build error:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch')
| -rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch | 38 |
1 files changed, 38 insertions, 0 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 | |||
