summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/7zip/7zip_25.01.bb8
-rw-r--r--meta-oe/recipes-extended/7zip/files/0001-Remove-treating-warning-as-errors.patch31
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
9CVE_PRODUCT = "7-zip 7zip" 9CVE_PRODUCT = "7-zip 7zip"
10SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main \ 10SRC_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 "
14SRCREV = "5e96a8279489832924056b1fa82f29d5837c9469" 15SRCREV = "5e96a8279489832924056b1fa82f29d5837c9469"
15 16
16UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest" 17UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest"
17 18
18
19# Support Yocto cross compiling
20CXXFLAGS: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
25EXTRA_OEMAKE += " \ 19EXTRA_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 @@
1From 4d12624e7d6f09d07816d3d0007465c8533af192 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Aug 2025 15:29:13 -0700
4Subject: [PATCH] Remove treating warning as errors
5
6clang finds additional warnings with new versions e.g.
7Clang 21 added a new warning, -Wimplicit-void-ptr-cast
8(grouped under -Wc++-compat), which fires whenever a
9void* is implicitly converted to another pointer
10type (or returned as such).
11
12Upstream-Status: Inappropriate [Distro-specific]
13
14Signed-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
19diff --git a/CPP/7zip/7zip_gcc.mak b/CPP/7zip/7zip_gcc.mak
20index 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