diff options
| -rw-r--r-- | meta-oe/recipes-extended/7zip/7zip_25.01.bb | 8 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/7zip/files/0001-Remove-treating-warning-as-errors.patch | 31 |
2 files changed, 32 insertions, 7 deletions
diff --git a/meta-oe/recipes-extended/7zip/7zip_25.01.bb b/meta-oe/recipes-extended/7zip/7zip_25.01.bb index 779b708eee..f4ea6506e1 100644 --- a/meta-oe/recipes-extended/7zip/7zip_25.01.bb +++ b/meta-oe/recipes-extended/7zip/7zip_25.01.bb | |||
| @@ -9,19 +9,13 @@ LIC_FILES_CHKSUM = "file://DOC/copying.txt;md5=4fbd65380cdd255951079008b364516c | |||
| 9 | CVE_PRODUCT = "7-zip 7zip" | 9 | CVE_PRODUCT = "7-zip 7zip" |
| 10 | SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main \ | 10 | SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main \ |
| 11 | file://0001-support-yocto-cross-compiling.patch \ | 11 | file://0001-support-yocto-cross-compiling.patch \ |
| 12 | file://0001-Remove-treating-warning-as-errors.patch \ | ||
| 12 | file://7z_wrapper.sh \ | 13 | file://7z_wrapper.sh \ |
| 13 | " | 14 | " |
| 14 | SRCREV = "5e96a8279489832924056b1fa82f29d5837c9469" | 15 | SRCREV = "5e96a8279489832924056b1fa82f29d5837c9469" |
| 15 | 16 | ||
| 16 | UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest" | 17 | UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest" |
| 17 | 18 | ||
| 18 | |||
| 19 | # Support Yocto cross compiling | ||
| 20 | CXXFLAGS:append:toolchain-clang = " -Wno-error=cast-qual -Wno-error=sign-conversion \ | ||
| 21 | -Wno-error=disabled-macro-expansion \ | ||
| 22 | -Wno-error=shorten-64-to-32 \ | ||
| 23 | -Wno-error=cast-function-type-strict" | ||
| 24 | |||
| 25 | EXTRA_OEMAKE += " \ | 19 | EXTRA_OEMAKE += " \ |
| 26 | CXXFLAGS_EXTRA='${CXXFLAGS}' \ | 20 | CXXFLAGS_EXTRA='${CXXFLAGS}' \ |
| 27 | CFLAGS_BASE2='${CFLAGS}' \ | 21 | CFLAGS_BASE2='${CFLAGS}' \ |
diff --git a/meta-oe/recipes-extended/7zip/files/0001-Remove-treating-warning-as-errors.patch b/meta-oe/recipes-extended/7zip/files/0001-Remove-treating-warning-as-errors.patch new file mode 100644 index 0000000000..c2bef9616a --- /dev/null +++ b/meta-oe/recipes-extended/7zip/files/0001-Remove-treating-warning-as-errors.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 4d12624e7d6f09d07816d3d0007465c8533af192 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 29 Aug 2025 15:29:13 -0700 | ||
| 4 | Subject: [PATCH] Remove treating warning as errors | ||
| 5 | |||
| 6 | clang finds additional warnings with new versions e.g. | ||
| 7 | Clang 21 added a new warning, -Wimplicit-void-ptr-cast | ||
| 8 | (grouped under -Wc++-compat), which fires whenever a | ||
| 9 | void* is implicitly converted to another pointer | ||
| 10 | type (or returned as such). | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [Distro-specific] | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | CPP/7zip/7zip_gcc.mak | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/CPP/7zip/7zip_gcc.mak b/CPP/7zip/7zip_gcc.mak | ||
| 20 | index 2722c93..b7db06a 100644 | ||
| 21 | --- a/CPP/7zip/7zip_gcc.mak | ||
| 22 | +++ b/CPP/7zip/7zip_gcc.mak | ||
| 23 | @@ -24,7 +24,7 @@ PROGPATH_STATIC = $(O)/$(PROG)s | ||
| 24 | |||
| 25 | |||
| 26 | ifneq ($(CC), xlc) | ||
| 27 | -CFLAGS_WARN_WALL = -Werror -Wall -Wextra | ||
| 28 | +CFLAGS_WARN_WALL = -Wall -Wextra | ||
| 29 | endif | ||
| 30 | |||
| 31 | # for object file | ||
