buildroot/package/lrzsz/0003-include-stdio.h-to-remove-warning.patch
Thomas Petazzoni b6784a1f1f package/lrzsz: fix build with GCC >= 14.x
The lrzsz package currently fails to build with GCC >= 14.x. In [1],
Fabrice had proposed to update the package to what's available on a
Github repository from the upstream maintainer at [2], but in this
very repository (not updated since 4 years), the maintainer writes:

  NOTE:

  Do not use the repository until further notice.
  It contains work in progress and at least one change i am unhappy with.

  Use either http://ohse.de/uwe/testing/lrzsz-0.12.21rc.tar.gz (over
  20 years in rc state, so it's good enough), or 0.12.20 from
  https://ohse.de/uwe/software/lrzsz.html (do not expect me to update
  that old site ever again).

So, let's stick to the 0.12.20 version we have, and add a few patches.

Patch 0001 is patching the configure script, which we obviously don't
normally like. However, the configure.in script is very old and no
longer autoreconfs properly with modern autoconf. Since the patch is
trivial, and upstream seems almost dead, we take the route of patching
the configure script.

[1] https://patchwork.ozlabs.org/project/buildroot/patch/20240726092042.1273023-1-fontaine.fabrice@gmail.com/
[2] https://github.com/UweOhse/lrzsz

Fixes:

  http://autobuild.buildroot.net/results/3eb94eac3e0e1a04d41c618ed9ea2e4e398ea48a/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2024-10-25 19:53:52 +02:00

27 lines
648 B
Diff

From e164c9cd3207321e162f054357fcd37b06cb0b8a Mon Sep 17 00:00:00 2001
From: Uwe Ohse <uwe@ohse.de>
Date: Mon, 2 Mar 2020 22:38:16 +0000
Subject: [PATCH] include stdio.h to remove warning
Upstream: https://github.com/UweOhse/lrzsz/commit/937a2ff696fb600672eb0e8fab87f75d5e4fbc25
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
src/lsyslog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lsyslog.c b/src/lsyslog.c
index 6baf4a2..d21ab35 100644
--- a/src/lsyslog.c
+++ b/src/lsyslog.c
@@ -24,6 +24,7 @@
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
#endif
#if __STDC__
--
2.46.0