]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
unzip: Fix build with GCC-15
authorKhem Raj <raj.khem@gmail.com>
Thu, 21 Aug 2025 23:04:14 +0000 (01:04 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 26 Aug 2025 20:10:34 +0000 (13:10 -0700)
Add a patch to remove redundant declarations

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/unzip/unzip/gcc15.patch [new file with mode: 0644]
meta/recipes-extended/unzip/unzip_6.0.bb

diff --git a/meta/recipes-extended/unzip/unzip/gcc15.patch b/meta/recipes-extended/unzip/unzip/gcc15.patch
new file mode 100644 (file)
index 0000000..ab06a47
--- /dev/null
@@ -0,0 +1,18 @@
+Do not redefine gmtime(), localtime()
+
+They are already provided by system time.h header
+
+Upstream-Status: Inactive-Upstream [need a new release]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
+--- a/unix/unxcfg.h
++++ b/unix/unxcfg.h
+@@ -117,7 +117,6 @@ typedef struct stat z_stat;
+ #  endif
+ #else
+ #  include <time.h>
+-   struct tm *gmtime(), *localtime();
+ #endif
+ #if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN)))
index c13e7a008eaa2e8a482758c38b8718dffa301e4d..0a88b4c092bb800b7ce156f9376a173d167881d3 100644 (file)
@@ -32,6 +32,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/
         file://CVE-2022-0530.patch \
         file://0001-configure-Add-correct-system-headers-and-prototypes-.patch \
         file://0001-unix-configure-fix-detection-for-cross-compilation.patch \
+        file://gcc15.patch \
 "
 UPSTREAM_VERSION_UNKNOWN = "1"