]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
zip: Fix build with gcc-14
authorKhem Raj <raj.khem@gmail.com>
Thu, 9 May 2024 02:38:48 +0000 (19:38 -0700)
committerSteve Sakoman <steve@sakoman.com>
Sat, 15 Jun 2024 12:34:59 +0000 (05:34 -0700)
commit82d58f8bf63d6af80b5a4ad03d5121f1541ae15d
treeed2404c135137bf19e267f0bf07e4be58d25525e
parent06b5a2db1d079c86652534b6fc7e504f77604af4
zip: Fix build with gcc-14

zip's configure fails to link this piece of test code:

  int main() { return closedir(opendir(".")); }

with GCC-14 because it now treats implicit declaration of function
as error, unline older GCC version where it was just a warning
and this test would build fine.

Remove 0002-unix.c-Do-not-redefine-DIR-as-FILE.patch which
is now unnecessary.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3422411eb750c7e960b81676637cfb321dbadefb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch [new file with mode: 0644]
meta/recipes-extended/zip/zip-3.0/0002-unix.c-Do-not-redefine-DIR-as-FILE.patch [deleted file]
meta/recipes-extended/zip/zip_3.0.bb