diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 62de04001e4..c694a6e0b95 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -951,7 +951,6 @@ RECIPE_MAINTAINER:pn-xwayland = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-xwininfo = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-xxhash = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-xz = "Denys Dmytriyenko <denis@denix.org>"
-RECIPE_MAINTAINER:pn-zip = "Denys Dmytriyenko <denis@denix.org>"
 RECIPE_MAINTAINER:pn-zlib = "Denys Dmytriyenko <denis@denix.org>"
 RECIPE_MAINTAINER:pn-zstd = "Unassigned <unassigned@yoctoproject.org>"
 
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
deleted file mode 100644
index 0d3af37ded2..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 9db2f8cdbbc0dfb359d3b4e5dfe48c18652ce531 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 8 May 2024 19:02:46 -0700
-Subject: [PATCH] configure: Include dirent.h for closedir/opendir APIs
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-GCC-14 is strict about function prototypes and since the
-testcase tries to compile/link opendir/closedir functions
-without including signatures, it fails to build the test
-due to missing signatures which come from dirent.h
-
-Therefore include the needed system header and make it more
-robust.
-
-Fixes
-a.c:2:21: error: implicit declaration of function ‘closedir’ [-Wimplicit-function-declaration]
-    2 | int main() { return closedir(opendir(".")); }
-      |                     ^~~~~~~~
-a.c:2:30: error: implicit declaration of function ‘opendir’ [-Wimplicit-function-declaration]
-    2 | int main() { return closedir(opendir(".")); }
-      |                              ^~~~~~~
-
-Upstream-Status: Inactive-Upstream
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- unix/configure | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/unix/configure b/unix/configure
-index f917086..1dd98c6 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -591,6 +591,7 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null
- 
- echo Check for directory libraries
- cat > conftest.c << _EOF_
-+#include <dirent.h>
- int main() { return closedir(opendir(".")); }
- _EOF_
- 
--- 
-2.45.0
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch
deleted file mode 100644
index a4f83826257..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch
+++ /dev/null
@@ -1,134 +0,0 @@
-From 8810f2643c9372a8083272dc1fc157427646d961 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 10 Aug 2022 17:16:23 -0700
-Subject: [PATCH 1/2] configure: Specify correct function signatures and
- declarations
-
-Include needed system headers in configure tests, this is needed because
-newer compilers are getting stricter about the C99 specs and turning
--Wimplicit-function-declaration into hard error e.g. clang-15+
-
-Upstream-Status: Inactive-Upstream
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- unix/configure | 79 +++++++++++++++++++++++++++++++++++++++++---------
- 1 file changed, 66 insertions(+), 13 deletions(-)
-
-diff --git a/unix/configure b/unix/configure
-index 1d9a9bb..f2b3d02 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -513,21 +513,70 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null
- # Check for missing functions
- # add NO_'function_name' to flags if missing
- 
--for func in rmdir strchr strrchr rename mktemp mktime mkstemp
--do
--  echo Check for $func
--  echo "int main(){ $func(); return 0; }" > conftest.c
--  $CC $CFLAGS $LDFLAGS $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null
--  [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`"
--done
-+echo Check for rmdir
-+cat > conftest.c << _EOF_
-+#include <unistd.h>
-+int main(){ rmdir(NULL); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_RMDIR"
-+
-+echo Check for strchr
-+cat > conftest.c << _EOF_
-+#include <string.h>
-+int main(){ strchr(NULL,0); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_STRCHR"
- 
-+echo Check for strrchr
-+cat > conftest.c << _EOF_
-+#include <string.h>
-+int main(){ strrchr(NULL,0); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_STRRCHR"
-+
-+echo Check for rename
-+cat > conftest.c << _EOF_
-+#include <stdio.h>
-+int main(){ rename(NULL,NULL); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_RENAME"
-+
-+echo Check for mktemp
-+cat > conftest.c << _EOF_
-+#include <stdlib.h>
-+int main(){ mktemp(NULL); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKTEMP"
-+
-+echo Check for mktime
-+cat > conftest.c << _EOF_
-+#include <time.h>
-+int main(){ mktime(NULL); return 0; }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKTIME"
-+
-+echo Check for mkstemp
-+cat > conftest.c << _EOF_
-+#include <stdlib.h>
-+int main(){ return mkstemp(NULL); }
-+_EOF_
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
-+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKSTEMP"
- 
- echo Check for memset
--echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c
-+cat > conftest.c << _EOF_
-+#include <string.h>
-+int main(){ char k; memset(&k,0,0); return 0; }
-+_EOF_
- $CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM"
- 
--
- echo Check for memmove
- cat > conftest.c << _EOF_
- #include <string.h>
-@@ -548,7 +597,7 @@ $CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- echo Check for errno declaration
- cat > conftest.c << _EOF_
- #include <errno.h>
--main()
-+int main()
- {
-   errno = 0;
-   return 0;
-@@ -625,14 +674,18 @@ CFLAGS="${CFLAGS} ${OPT}"
- 
- echo Check for valloc
- cat > conftest.c << _EOF_
--main()
-+#include <stdlib.h>
-+int main()
- {
- #ifdef MMAP
--    valloc();
-+    valloc(0);
- #endif
-+    return 0;
- }
- _EOF_
--$CC ${CFLAGS} -c conftest.c > /dev/null 2>/dev/null
-+#$CC ${CFLAGS} -c conftest.c > /dev/null 2>/dev/null
-+$CC ${CFLAGS} -c conftest.c
-+echo "==========================================="
- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_VALLOC"
- 
- 
--- 
-2.37.1
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch
deleted file mode 100644
index 92d0d5db58f..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch
+++ /dev/null
@@ -1,88 +0,0 @@
-From ab5df4826c4a532da78828b72a2751c899e27ef2 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Tue, 8 Mar 2022 22:31:21 -0800
-Subject: [PATCH] configure: Use CFLAGS and LDFLAGS when doing link tests
-
-Some case link flags contain important flags which are required during
-linking, link fails otherwise without them, which can result in
-configure detection go wrong, ensure these flags are used along with CC
-when tests involve linking
-
-Upstream-Status: Inactive-Upstream
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- unix/configure | 16 ++++++++--------
- 1 file changed, 8 insertions(+), 8 deletions(-)
-
-diff --git a/unix/configure b/unix/configure
-index 1bc698b..1d9a9bb 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -517,14 +517,14 @@ for func in rmdir strchr strrchr rename mktemp mktime mkstemp
- do
-   echo Check for $func
-   echo "int main(){ $func(); return 0; }" > conftest.c
--  $CC $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null
-+  $CC $CFLAGS $LDFLAGS $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null
-   [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`"
- done
- 
- 
- echo Check for memset
- echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c
--$CC -o conftest conftest.c >/dev/null 2>/dev/null
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM"
- 
- 
-@@ -533,7 +533,7 @@ cat > conftest.c << _EOF_
- #include <string.h>
- int main() { int a; int b = 0; memmove( &a, &b, sizeof( a)); return a; }
- _EOF_
--$CC -o conftest conftest.c >/dev/null 2>/dev/null
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_MEMMOVE"
- 
- 
-@@ -542,7 +542,7 @@ cat > conftest.c << _EOF_
- #include <string.h>
- int main() { strerror( 0); return 0; }
- _EOF_
--$CC -o conftest conftest.c >/dev/null 2>/dev/null
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_STRERROR"
- 
- echo Check for errno declaration
-@@ -563,7 +563,7 @@ cat > conftest.c << _EOF_
- int main() { return closedir(opendir(".")); }
- _EOF_
- 
--$CC -o conftest conftest.c >/dev/null 2>/dev/null
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- if [ $? -ne 0 ]; then
-   OPT=""
-   for lib in ndir dir ucb bsd BSD PW x dirent
-@@ -583,9 +583,9 @@ fi
- 
- echo Check for readlink
- echo "int main(){ return readlink(); }" > conftest.c
--$CC -o conftest conftest.c >/dev/null 2>/dev/null
-+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null
- if [ $? -ne 0 ]; then
--  $CC -o conftest conftest.c -lseq >/dev/null 2>/dev/null
-+  $CC $CFLAGS $LDFLAGS -o conftest conftest.c -lseq >/dev/null 2>/dev/null
-   [ $? -eq 0 ] && LFLAGS2="${LFLAGS2} -lseq"
- fi
- 
-@@ -661,7 +661,7 @@ elif [ -f /xenix ]; then
- elif uname -X >/dev/null 2>/dev/null; then
- # SCO shared library check
-   echo "int main() { return 0;}" > conftest.c
--  $CC -o conftest conftest.c -lc_s -nointl >/dev/null 2> /dev/null
-+  $CC $CFLAGS $LDFLAGS -o conftest conftest.c -lc_s -nointl >/dev/null 2> /dev/null
-   [ $? -eq 0 ] && LFLAGS2="-lc_s -nointl"
- else
-   SYSTEM=`uname -s 2>/dev/null` || SYSTEM="unknown"
--- 
-2.35.1
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch
deleted file mode 100644
index 02253f968c5..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 7a2729ee7f5d9b9d4a0d9b83fe641a2ab03c4ee0 Mon Sep 17 00:00:00 2001
-From: Joe Slater <joe.slater@windriver.com>
-Date: Thu, 24 Feb 2022 17:36:59 -0800
-Subject: [PATCH 1/2] configure: use correct CPP
-
-configure uses CPP to test that two assembler routines
-can be built. Unfortunately, it will use /usr/bin/cpp
-if it exists, invalidating the tests.  We use the $CC
-passed to configure.
-
-Upstream-Status: Inappropriate [openembedded specific]
-
-Signed-off-by: Joe Slater <joe.slater@windriver.com>
----
- unix/configure | 15 +++++++++------
- 1 file changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/unix/configure b/unix/configure
-index 73ba803..7e21070 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -220,13 +220,16 @@ fi
- echo Check for the C preprocessor
- # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
- CPP="${CC} -E"
-+
-+# We should not change CPP for yocto builds.
-+#
- # solaris as(1) needs -P, maybe others as well ?
--[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
--[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
--[ -f /lib/cpp ] && CPP=/lib/cpp
--[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
--[ -f /xenix ] && CPP="${CC} -E"
--[ -f /lynx.os ] && CPP="${CC} -E"
-+# [ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
-+# [ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
-+# [ -f /lib/cpp ] && CPP=/lib/cpp
-+# [ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
-+# [ -f /xenix ] && CPP="${CC} -E"
-+# [ -f /lynx.os ] && CPP="${CC} -E"
- 
- echo "#include <stdio.h>" > conftest.c
- $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
--- 
-2.24.1
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch b/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch
deleted file mode 100644
index d760dfcec5a..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 23b4ed82bff20c737fe2e95d5b035e92a9522ca2 Mon Sep 17 00:00:00 2001
-From: Ming Liu <liu.ming50@gmail.com>
-Date: Thu, 15 May 2025 13:58:45 +0200
-Subject: [PATCH] fileio.c: fix a buffer overflow detected issue
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Fix a following issue:
-| *** buffer overflow detected ***: terminated
-|
-| zip error: Interrupted (aborting)
-
-Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2165653
-
-Upstream-Status: Inactive-Upstream [the fix is from Redhat but not the official project]
-
-Signed-off-by: Ming Liu <liu.ming50@gmail.com>
----
- fileio.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/fileio.c b/fileio.c
-index 1847e62..5a2959d 100644
---- a/fileio.c
-+++ b/fileio.c
-@@ -3502,7 +3502,7 @@ zwchar *local_to_wide_string(local_string)
-   if ((wc_string = (wchar_t *)malloc((wsize + 1) * sizeof(wchar_t))) == NULL) {
-     ZIPERR(ZE_MEM, "local_to_wide_string");
-   }
--  wsize = mbstowcs(wc_string, local_string, strlen(local_string) + 1);
-+  wsize = mbstowcs(wc_string, local_string, wsize + 1);
-   wc_string[wsize] = (wchar_t) 0;
- 
-   /* in case wchar_t is not zwchar */
--- 
-2.43.0
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch b/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch
deleted file mode 100644
index 106f246a7ce..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-From 9916fc6f1f93f3e092e3c6937c30dc8137c26d34 Mon Sep 17 00:00:00 2001
-From: Chen Qi <Qi.Chen@windriver.com>
-Date: Thu, 15 Jun 2023 18:31:26 +0800
-Subject: [PATCH] unix/configure: use _Static_assert to do correct detection
-
-We're doing cross compilation, running a cross-compiled problem
-on host to detemine feature is not correct. Use _Static_assert
-to do the detection correctly.
-
-Upstream-Status: Inactive-Upstream
-
-Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
----
- unix/configure | 42 ++++++++++++------------------------------
- 1 file changed, 12 insertions(+), 30 deletions(-)
-
-diff --git a/unix/configure b/unix/configure
-index f2b3d02..f917086 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -361,6 +361,10 @@ cat > conftest.c << _EOF_
- #include <sys/stat.h>
- #include <unistd.h>
- #include <stdio.h>
-+
-+_Static_assert(sizeof((struct stat){0}.st_uid) == 2, "sizeof st_uid is not 16 bit");
-+_Static_assert(sizeof((struct stat){0}.st_gid) == 2, "sizeof st_gid is not 16 bit");
-+
- int main()
- {
-   struct stat s;
-@@ -385,21 +389,7 @@ if [ $? -ne 0 ]; then
-   echo -- UID/GID test failed on compile - disabling old 16-bit UID/GID support
-   CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT"
- else
--# run it
--  ./conftest
--  r=$?
--  if [ $r -eq 1 ]; then
--    echo -- UID not 2 bytes - disabling old 16-bit UID/GID support
--    CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT"
--  elif [ $r -eq 2 ]; then
--    echo -- GID not 2 bytes - disabling old 16-bit UID/GID support
--    CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT"
--  elif [ $r -eq 3 ]; then
--    echo -- 16-bit UIDs and GIDs - keeping old 16-bit UID/GID support
--  else
--    echo -- test failed - conftest returned $r - disabling old 16-bit UID/GID support
--    CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT"
--  fi
-+  echo -- 16-bit UIDs and GIDs - keeping old 16-bit UID/GID support
- fi
- 
- 
-@@ -417,6 +407,10 @@ cat > conftest.c << _EOF_
- #include <sys/stat.h>
- #include <unistd.h>
- #include <stdio.h>
-+
-+_Static_assert(sizeof(off_t) < 8, "sizeof off_t < 8 failed");
-+_Static_assert(sizeof((struct stat){0}.st_size) < 8, "sizeof st_size < 8 failed");
-+
- int main()
- {
-   off_t offset;
-@@ -436,24 +430,12 @@ _EOF_
- # compile it
- $CC -o conftest conftest.c >/dev/null 2>/dev/null
- if [ $? -ne 0 ]; then
--  echo -- no Large File Support
-+  echo -- yes we have Large File Support!
-+  CFLAGS="${CFLAGS} -DLARGE_FILE_SUPPORT"
- else
--# run it
--  ./conftest
--  r=$?
--  if [ $r -eq 1 ]; then
--    echo -- no Large File Support - no 64-bit off_t
--  elif [ $r -eq 2 ]; then
--    echo -- no Large File Support - no 64-bit stat
--  elif [ $r -eq 3 ]; then
--    echo -- yes we have Large File Support!
--    CFLAGS="${CFLAGS} -DLARGE_FILE_SUPPORT"
--  else
--    echo -- no Large File Support - conftest returned $r
--  fi
-+  echo -- no Large File Support
- fi
- 
--
- # Check for wide char for Unicode support
- # Added 11/24/2005 EG
- 
--- 
-2.34.1
-
diff --git a/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch b/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch
deleted file mode 100644
index 6e0879616a0..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From b0492506d2c28581193906e9d260d4f0451e2c39 Mon Sep 17 00:00:00 2001
-From: Joe Slater <joe.slater@windriver.com>
-Date: Thu, 24 Feb 2022 17:46:03 -0800
-Subject: [PATCH 2/2] configure: support PIC code build
-
-Disable building match.S. The code requires
-relocation in .text.
-
-Upstream-Status: Inappropriate [openembedded specific]
-
-Signed-off-by: Joe Slater <joe.slater@windriver.com>
----
- unix/configure | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/unix/configure b/unix/configure
-index 7e21070..1bc698b 100644
---- a/unix/configure
-+++ b/unix/configure
-@@ -242,8 +242,9 @@ if eval "$CPP match.S > _match.s 2>/dev/null"; then
-   if test ! -s _match.s || grep error < _match.s > /dev/null; then
-     :
-   elif eval "$CC -c _match.s >/dev/null 2>/dev/null" && [ -f _match.o ]; then
--    CFLAGS="${CFLAGS} -DASMV"
--    OBJA="match.o"
-+    # disable match.S for PIC code
-+    # CFLAGS="${CFLAGS} -DASMV"
-+    # OBJA="match.o"
-     echo "int foo() { return 0;}" > conftest.c
-     $CC -c conftest.c >/dev/null 2>/dev/null
-     echo Check if compiler generates underlines
--- 
-2.24.1
-
diff --git a/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch b/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch
deleted file mode 100644
index 6fd04df1c6f..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-From: Santiago Vila <sanvila@debian.org>
-Subject: Remove (optional) build date to make the build reproducible
-Bug-Debian: http://bugs.debian.org/779042
-
-Upstream-Status: Inactive-Upstream [no upstream]
-
-Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
-
---- a/unix/unix.c
-+++ b/unix/unix.c
-@@ -1020,7 +1020,7 @@
- 
- 
- /* Define the compile date string */
--#ifdef __DATE__
-+#if 0
- #  define COMPILE_DATE " on " __DATE__
- #else
- #  define COMPILE_DATE ""
diff --git a/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch b/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch
deleted file mode 100644
index 81c1f13286e..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From: Florent 'Skia' Jacquet <florent.jacquet@canonical.com>
-Subject: Fix buffer overflow when using '-T -TT'
-Bug-Debian: https://bugs.debian.org/1093629
-Bug-Ubuntu: https://launchpad.net/bugs/2093024
-Forwarded: https://sourceforge.net/p/infozip/bugs/81/
-
-strlen(unzip_path) + strlen(zipname) + " " + "'" + "'" + '\0'
-The additional space required in the `cmd` buffer is 4, not 3.
-
-CVE: CVE-2018-13410
-Upstream-Status: Inactive-Upstream [lastrelease: 2008]
-Signed-off-by: Peter Marko <peter.marko@siemens.com>
-
---- a/zip.c
-+++ b/zip.c
-@@ -1437,7 +1437,7 @@
-     /* Replace first {} with archive name.  If no {} append name to string. */
-     here = strstr(unzip_path, "{}");
- 
--    if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 3)) == NULL) {
-+    if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 4)) == NULL) {
-       ziperr(ZE_MEM, "building command string for testing archive");
-     }
- 
diff --git a/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch b/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch
deleted file mode 100644
index dc33f3c2b05..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch
+++ /dev/null
@@ -1,235 +0,0 @@
-From: Paul Marquess <pmqs@outlook.com>
-Subject: Fix command injection issue
-Bug-Debian: https://bugs.debian.org/1143866
-X-Debian-version: 3.0-16
-
-CVE: CVE-2026-130335
-Upstream-Status: Inactive-Upstream [lastrelease: 2008]
-Signed-off-by: Peter Marko <peter.marko@siemens.com>
-
---- a/zip.c
-+++ b/zip.c
-@@ -122,6 +122,7 @@
- 
- local void freeup  OF((void));
- local int  finish  OF((int));
-+local char *quote_arg(char *instring);
- #if (!defined(MACOS) && !defined(WINDLL))
- local void handler OF((int));
- local void license OF((void));
-@@ -1323,6 +1324,134 @@
-   return 1;
- }
- 
-+
-+/* quote_arg()
-+ *
-+ * Add quotation and/or escapes to a shell (VMS: DCL) argument string
-+ * appropriate to the local operating system or shell  (Unix, Windows,
-+ * etc.).  This is mainly used to build the command line to pass to
-+ * UnZip (or other application when -TT used) to test an archive.
-+ * Return malloc()'d result.
-+ *
-+ *    All:     Add " at beginning and end.
-+ *    MSDOS:   % -> "^%"
-+ *             " -> \""
-+ *    Unix:    ! -> "'!'"
-+ *             $ -> \$
-+ *             \ -> \\
-+ *             ` -> \`
-+ *    Non-VMS: " -> \"
-+ *    VMS:     " -> """
-+ *
-+ * On VMS, quoted double apostrophes are also special.  Currently not
-+ * handled.  (How?  Quotation marks are needed for (upper-)case
-+ * preservation.  Double apostrophes in quotation marks are interpreted
-+ * (symbol evaluation).  SMS sees no way to handle "fr''ed".  "fr'""'ed"
-+ * becomes >fr'"'ed<, for example.)  Not a problem for file specs, but
-+ * imposes a restriction on passwords.
-+ */
-+#ifndef NO_PROTO
-+local char *quote_arg(char *instring)
-+#else
-+local char *quote_arg(instring)
-+  char *instring;
-+#endif
-+{
-+  int i;
-+  int j;
-+  char *tempstring;
-+  char *outstring;
-+  char c;
-+
-+  if (instring == NULL)
-+    return NULL;
-+
-+# ifdef MSDOS
-+#  define QA_FACTOR 4            /* Worst case (MSDOS): % -> "^%"  */
-+
-+# else /* not MSDOS */
-+#  ifdef VMS
-+#   define QA_FACTOR 3           /* Worst case (VMS): " -> """  */
-+
-+#  else /* not MSDOS or VMS */
-+#   define QA_FACTOR 5           /* Worst case (Unix): ! -> "'!'"  */
-+#  endif /* VMS [else] */
-+# endif /* MSDOS [else] */
-+
-+# define QA_INCR 2               /* Surrounding quotation marks. */
-+
-+  i = QA_FACTOR * (int)strlen(instring) + QA_INCR + 1;
-+  if ((tempstring = (char *)malloc(i)) == NULL) {
-+    ZIPERR(ZE_MEM, "quote_arg");
-+  }
-+
-+  j = 0;
-+
-+  tempstring[j++] = '\"';       /* Surrounding quotation mark (start). */
-+
-+  for (i = 0; instring[i]; i++) {
-+    c = instring[i];
-+
-+# ifdef MSDOS /* or Windows */
-+    if (c == '%')               /* Percent. */
-+    {
-+      tempstring[j++] = '"';    /* Add (closing) quotation mark. */
-+      tempstring[j++] = '^';    /* Add caret escape. */
-+      tempstring[j++] = '%';    /* Original character (%). */
-+      c = '"';                  /* Prepare (re-opening) quotation mark. */
-+    }
-+    else if (c == '"')          /* Quotation mark. */
-+    {
-+      tempstring[j++] = '\\';   /* Add backslash (escape). */
-+      tempstring[j++] = '"';    /* Add quote (acts as closing and literal). */
-+    }
-+# else /* not def MSDOS */
-+
-+#  ifdef VMS
-+    if (c == '"')               /* Quotation mark. */
-+    {
-+      tempstring[j++] = '"';    /* Add two quotation marks. */
-+      tempstring[j++] = '"';
-+    }
-+#  else /* not def VMS */
-+
-+    /* UNIX is default for others */
-+
-+    if (c == '"')               /* Quotation mark. */
-+    {
-+      tempstring[j++] = '\\';   /* Add backslash (escape). */
-+    }
-+    else if (c == '!')          /* Exclamation.  (Inefficient.) */
-+    {
-+      tempstring[j++] = '"';    /* Add (closing) quotation mark. */
-+      tempstring[j++] = '\'';   /* Add (opening) apostrophe. */
-+      tempstring[j++] = '!';    /* Original character (!). */
-+      tempstring[j++] = '\'';   /* Add (closing) apostrophe. */
-+      c = '"';                  /* Prepare (re-opening) quotation mark. */
-+    }
-+    else if ((c == '$') ||      /* Dollar sign. */
-+             (c == '`') ||      /* Grave accent (backtick). */
-+             (c == '\\'))       /* Backslash. */
-+    {
-+      tempstring[j++] = '\\';   /* Add backslash (escape). */
-+    }
-+
-+#  endif /* def VMS [else] */
-+# endif /* def MSDOS [else] */
-+
-+    tempstring[j++] = c;        /* Original (or other last) character. */
-+  }
-+
-+  tempstring[j++] = '\"';       /* Surrounding quotation mark (end). */
-+
-+  tempstring[j] = '\0';
-+  /* outstring = string_dup(tempstring, "quote_arg", NO_FLUFF); */
-+  outstring = strdup(tempstring);
-+  free(tempstring);
-+
-+  return outstring;
-+}
-+
- local void check_zipfile(zipname, zippath)
-   char *zipname;
-   char *zippath;
-@@ -1424,11 +1553,15 @@
- 
- #else /* (MSDOS && !__GO32__) || __human68k__ */
-   char *cmd;
-+  char *qzipname;
-   int result;
- 
-   /* Tell picky compilers to shut up about unused variables */
-   zippath = zippath;
- 
-+  /* Quote each arg (and add appropriate escapes). */
-+  qzipname = quote_arg(zipname);
-+
-   if (unzip_path) {
-     /* user gave us a path to some unzip (may not be UnZip) */
-     char *here;
-@@ -1437,7 +1570,7 @@
-     /* Replace first {} with archive name.  If no {} append name to string. */
-     here = strstr(unzip_path, "{}");
- 
--    if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 4)) == NULL) {
-+    if ((cmd = malloc(strlen(unzip_path) + strlen(qzipname) + 4)) == NULL) {
-       ziperr(ZE_MEM, "building command string for testing archive");
-     }
- 
-@@ -1447,32 +1580,20 @@
-       strcpy(cmd, unzip_path);
-       cmd[len] = '\0';
-       strcat(cmd, " ");
--# ifdef UNIX
--      strcat(cmd, "'");    /* accept space or $ in name */
--      strcat(cmd, zipname);
--      strcat(cmd, "'");
--# else
--      strcat(cmd, zipname);
--# endif
-+      strcat(cmd, qzipname);
-       strcat(cmd, " ");
-       strcat(cmd, here + 2);
-     } else {
-       /* No {} so append temp name to end */
-       strcpy(cmd, unzip_path);
-       strcat(cmd, " ");
--# ifdef UNIX
--      strcat(cmd, "'");    /* accept space or $ in name */
--      strcat(cmd, zipname);
--      strcat(cmd, "'");
--# else
--      strcat(cmd, zipname);
--# endif
-+      strcat(cmd, qzipname);
-     }
-     free(unzip_path);
-     unzip_path = NULL;
- 
-   } else {
--    if ((cmd = malloc(20 + strlen(zipname))) == NULL) {
-+    if ((cmd = malloc(20 + strlen(qzipname))) == NULL) {
-       ziperr(ZE_MEM, "building command string for testing archive");
-     }
- 
-@@ -1484,15 +1605,12 @@
-     if (check_unzip_version("unzip") == 0)
-       ZIPERR(ZE_TEST, zipfile);
- 
--# ifdef UNIX
--    strcat(cmd, "'");    /* accept space or $ in name */
--    strcat(cmd, zipname);
--    strcat(cmd, "'");
--# else
--    strcat(cmd, zipname);
--# endif
-+    strcat(cmd, qzipname);
-   }
- 
-+  if (qzipname)
-+    free(qzipname);
-+
-   result = system(cmd);
- # ifdef VMS
-   /* Convert success severity to 0, others to non-zero. */
diff --git a/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch b/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch
deleted file mode 100644
index f85fddbc60b..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-zip: Fixing security formatting issues
-
-Fix security formatting issues related to printing without NULL argument
-
-zip.c: In function 'help_extended':
-zip.c:1031:5: error: format not a string literal and no format arguments [-Werror=format-security]
-     printf(text[i]);
-     ^
-zip.c: In function 'version_info':
-zip.c:1228:5: error: format not a string literal and no format arguments [-Werror=format-security]
-     printf(cryptnote[i]);
-     ^
-
-[YOCTO #9552]
-[https://bugzilla.yoctoproject.org/show_bug.cgi?id=9552]
-
-Upstream-Status: Inactive-Upstream [need a new release]
-
-Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
-
-diff --git a/zip.c b/zip.c
-index 439821f..d7da768 100644
---- a/zip.c
-+++ b/zip.c
-@@ -1028,7 +1028,7 @@ local void help_extended()
- 
-   for (i = 0; i < sizeof(text)/sizeof(char *); i++)
-   {
--    printf(text[i]);
-+    fputs(text[i],stdout);
-     putchar('\n');
-   }
- #ifdef DOS
-@@ -1225,7 +1225,7 @@ local void version_info()
-             CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
-   for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
-   {
--    printf(cryptnote[i]);
-+    fputs(cryptnote[i],stdout);
-     putchar('\n');
-   }
-   ++i;  /* crypt support means there IS at least one compilation option */
diff --git a/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch b/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch
deleted file mode 100644
index 77ade40a04a..00000000000
--- a/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Close the correct file descriptor
-
-https://bugs.archlinux.org/task/47713
-
-Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
-
-Upstream-Status: Inactive-Upstream [no upstream]
-
-diff --git a/zipnote.c b/zipnote.c
-index 5e02cb6..996f012 100644
---- a/zipnote.c
-+++ b/zipnote.c
-@@ -661,7 +661,7 @@ char **argv;            /* command line tokens */
-     if ((r = zipcopy(z)) != ZE_OK)
-       ziperr(r, "was copying an entry");
-   }
--  fclose(x);
-+  fclose(in_file);
- 
-   /* Write central directory and end of central directory with new comments */
-   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */
-   
diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb
deleted file mode 100644
index fa85ed9699a..00000000000
--- a/meta/recipes-extended/zip/zip_3.0.bb
+++ /dev/null
@@ -1,55 +0,0 @@
-SUMMARY = "Compressor/archiver for creating and modifying .zip files"
-HOMEPAGE = "http://www.info-zip.org"
-DESCRIPTION = "Info-ZIP's purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc."
-SECTION = "console/utils"
-
-LICENSE = "Info-ZIP"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=04d43c5d70b496c032308106e26ae17d"
-
-S = "${UNPACKDIR}/zip30"
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz \
-           file://fix-security-format.patch \
-           file://10-remove-build-date.patch \
-           file://zipnote-crashes-with-segfault.patch \
-           file://0001-configure-use-correct-CPP.patch \
-           file://0002-configure-support-PIC-code-build.patch \
-           file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \
-           file://0001-configure-Specify-correct-function-signatures-and-de.patch \
-           file://0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch \
-           file://0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch \
-           file://0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch \
-           file://CVE-2018-13410.patch \
-           file://CVE-2026-130335.patch \
-           "
-UPSTREAM_VERSION_UNKNOWN = "1"
-
-SRC_URI[sha256sum] = "f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369"
-
-CVE_STATUS[CVE-2018-13684] = "cpe-incorrect: Not for zip but for smart contract implementation for it"
-
-# zip.inc sets CFLAGS, but what Makefile actually uses is
-# CFLAGS_NOOPT.  It will also force -O3 optimization, overriding
-# whatever we set.
-EXTRA_OEMAKE = "'CC=${CC}' 'BIND=${CC}' 'AS=${CC} -c' 'CPP=${CPP}' \
-		'CFLAGS=-I. -DUNIX ${CFLAGS}' \
-		'CFLAGS_NOOPT=-I. -DUNIX ${CFLAGS}' \
-		'INSTALL=install' 'INSTALL_D=install -d' \
-		'BINFLAGS=0755'"
-
-do_compile() {
-	oe_runmake -f unix/Makefile flags IZ_BZIP2=no_such_directory
-	sed -i 's#LFLAGS1=""#LFLAGS1="${LDFLAGS}"#' flags
-	oe_runmake -f unix/Makefile generic IZ_BZIP2=no_such_directory
-}
-
-do_install() {
-	oe_runmake -f unix/Makefile prefix=${D}${prefix} \
-		   BINDIR=${D}${bindir} MANDIR=${D}${mandir}/man1 \
-		   install
-}
-
-BBCLASSEXTEND = "native"
-
-# exclude version 2.3.2 which triggers a false positive
-UPSTREAM_CHECK_REGEX = "^zip(?P<pver>(?!232).+)\.tgz"
