diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-08-22 01:04:14 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-09-01 08:30:56 -0700 |
| commit | b63fff4544c7e2033d689c686de9ab7aeef6a253 (patch) | |
| tree | 8996e8e22824971e999b14879ec985b821fed872 | |
| parent | 38b5ba89e600455018f902edaa4ecfec6c4d68c7 (diff) | |
| download | poky-b63fff4544c7e2033d689c686de9ab7aeef6a253.tar.gz | |
unzip: Fix build with GCC-15
Add a patch to remove redundant declarations
(From OE-Core rev: b84d6ceb89277462d7069defaeb9ecfed9c30d56)
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>
| -rw-r--r-- | meta/recipes-extended/unzip/unzip/gcc15.patch | 18 | ||||
| -rw-r--r-- | meta/recipes-extended/unzip/unzip_6.0.bb | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-extended/unzip/unzip/gcc15.patch b/meta/recipes-extended/unzip/unzip/gcc15.patch new file mode 100644 index 0000000000..ab06a4713f --- /dev/null +++ b/meta/recipes-extended/unzip/unzip/gcc15.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Do not redefine gmtime(), localtime() | ||
| 2 | |||
| 3 | They are already provided by system time.h header | ||
| 4 | |||
| 5 | Upstream-Status: Inactive-Upstream [need a new release] | ||
| 6 | |||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 9 | --- a/unix/unxcfg.h | ||
| 10 | +++ b/unix/unxcfg.h | ||
| 11 | @@ -117,7 +117,6 @@ typedef struct stat z_stat; | ||
| 12 | # endif | ||
| 13 | #else | ||
| 14 | # include <time.h> | ||
| 15 | - struct tm *gmtime(), *localtime(); | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN))) | ||
diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index c13e7a008e..0a88b4c092 100644 --- a/meta/recipes-extended/unzip/unzip_6.0.bb +++ b/meta/recipes-extended/unzip/unzip_6.0.bb | |||
| @@ -32,6 +32,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/ | |||
| 32 | file://CVE-2022-0530.patch \ | 32 | file://CVE-2022-0530.patch \ |
| 33 | file://0001-configure-Add-correct-system-headers-and-prototypes-.patch \ | 33 | file://0001-configure-Add-correct-system-headers-and-prototypes-.patch \ |
| 34 | file://0001-unix-configure-fix-detection-for-cross-compilation.patch \ | 34 | file://0001-unix-configure-fix-detection-for-cross-compilation.patch \ |
| 35 | file://gcc15.patch \ | ||
| 35 | " | 36 | " |
| 36 | UPSTREAM_VERSION_UNKNOWN = "1" | 37 | UPSTREAM_VERSION_UNKNOWN = "1" |
| 37 | 38 | ||
