Initial Commit
- initial default booting image
This commit is contained in:
34
package/lrzsz/0001-configure-fix-main-prototype.patch
Normal file
34
package/lrzsz/0001-configure-fix-main-prototype.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
From 4c264d704357220b91a070862e0490c641b3f560 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 15 Sep 2024 15:12:07 +0200
|
||||
Subject: [PATCH] configure: fix main() prototype
|
||||
|
||||
The pre-generated configure script has a check that doesn't work with
|
||||
GCC >= 14.x due to a partial main() prototype. Doing AUTORECONF = YES
|
||||
doesn't work as the configure.in is very old, so let's fix the
|
||||
configure script directly.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Upstream: N/A, patching generated file
|
||||
[wsa: rebased to 0.12.21rc]
|
||||
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
||||
---
|
||||
configure | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index cc586d5..16a259a 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1053,7 +1053,7 @@ cat > conftest.$ac_ext << EOF
|
||||
#line 1054 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
--
|
||||
2.50.1
|
||||
|
||||
26
package/lrzsz/0002-include-stdio.h-to-remove-warning.patch
Normal file
26
package/lrzsz/0002-include-stdio.h-to-remove-warning.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From bbbaccd80c69a705f27e9236808d42088cf1f1cb 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.50.1
|
||||
|
||||
124
package/lrzsz/0003-FTBFS-fix-missing-includes.patch
Normal file
124
package/lrzsz/0003-FTBFS-fix-missing-includes.patch
Normal file
@@ -0,0 +1,124 @@
|
||||
From b526a62d5992d838ee34fb992defdeb8ee0ed594 Mon Sep 17 00:00:00 2001
|
||||
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
||||
Date: Fri, 29 Nov 2024 14:14:25 +0100
|
||||
Subject: [PATCH] FTBFS fix missing includes
|
||||
|
||||
Taken from: https://sources.debian.org/data/main/l/lrzsz/0.12.21rc-0.1/debian/patches/include.diff
|
||||
|
||||
Description: Fixes FTBFS (missing includes)
|
||||
Author: Martin A. Godisch <godisch@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/1066514
|
||||
Forwarded: no
|
||||
|
||||
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
||||
Upstream: https://sources.debian.org/data/main/l/lrzsz/0.12.21rc-0.1/debian/patches/include.diff
|
||||
---
|
||||
lib/error.c | 1 +
|
||||
src/canit.c | 1 +
|
||||
src/lrz.c | 1 +
|
||||
src/lsyslog.c | 1 +
|
||||
src/lsz.c | 1 +
|
||||
src/tcp.c | 1 +
|
||||
src/zperr.c | 1 +
|
||||
src/zreadline.c | 1 +
|
||||
8 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/lib/error.c b/lib/error.c
|
||||
index 8b96b91..3861578 100644
|
||||
--- a/lib/error.c
|
||||
+++ b/lib/error.c
|
||||
@@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
|
||||
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC || defined(__cplusplus)
|
||||
# if __STDC__ || defined(__cplusplus)
|
||||
diff --git a/src/canit.c b/src/canit.c
|
||||
index f947a25..ae91807 100644
|
||||
--- a/src/canit.c
|
||||
+++ b/src/canit.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#define SS_NORMAL 0
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <ctype.h>
|
||||
diff --git a/src/lrz.c b/src/lrz.c
|
||||
index 2f6a5ad..63e1326 100644
|
||||
--- a/src/lrz.c
|
||||
+++ b/src/lrz.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#define SS_NORMAL 0
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
diff --git a/src/lsyslog.c b/src/lsyslog.c
|
||||
index d21ab35..24d8cd1 100644
|
||||
--- a/src/lsyslog.c
|
||||
+++ b/src/lsyslog.c
|
||||
@@ -18,6 +18,7 @@
|
||||
02111-1307, USA.
|
||||
|
||||
*/
|
||||
+#define _GNU_SOURCE
|
||||
#include "config.h"
|
||||
#ifdef ENABLE_SYSLOG
|
||||
#include "zglobal.h"
|
||||
diff --git a/src/lsz.c b/src/lsz.c
|
||||
index b9d2545..1598150 100644
|
||||
--- a/src/lsz.c
|
||||
+++ b/src/lsz.c
|
||||
@@ -28,6 +28,7 @@
|
||||
#define SS_NORMAL 0
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <ctype.h>
|
||||
diff --git a/src/tcp.c b/src/tcp.c
|
||||
index 7e1ba3f..cdf9187 100644
|
||||
--- a/src/tcp.c
|
||||
+++ b/src/tcp.c
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "zglobal.h"
|
||||
#include <stdlib.h>
|
||||
diff --git a/src/zperr.c b/src/zperr.c
|
||||
index 31963de..0b9dc29 100644
|
||||
--- a/src/zperr.c
|
||||
+++ b/src/zperr.c
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "zglobal.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __STDC__
|
||||
diff --git a/src/zreadline.c b/src/zreadline.c
|
||||
index dd9736b..7bc3736 100644
|
||||
--- a/src/zreadline.c
|
||||
+++ b/src/zreadline.c
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
--
|
||||
2.50.1
|
||||
|
||||
93
package/lrzsz/0004-Fix-build-with-GCC-15.patch
Normal file
93
package/lrzsz/0004-Fix-build-with-GCC-15.patch
Normal file
@@ -0,0 +1,93 @@
|
||||
From 01a8cdf3f8e64b80ff219c250c899605c50312f5 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 22 Mar 2025 23:06:54 -0700
|
||||
Subject: [PATCH] Fix build with GCC 15
|
||||
|
||||
This is collection of changes needed to get compiling with gcc-15
|
||||
which switched to use C23 as default std.
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream: https://github.com/UweOhse/lrzsz/pull/8
|
||||
Signed-off-by: Frank Chung <uuidxx@163.com>
|
||||
---
|
||||
lib/error.c | 2 +-
|
||||
lib/getopt.h | 2 +-
|
||||
lib/long-options.c | 3 ++-
|
||||
lib/long-options.h | 2 +-
|
||||
lib/xstrtol.c | 2 --
|
||||
5 files changed, 5 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/lib/error.c b/lib/error.c
|
||||
index 3861578..2a2f1ff 100644
|
||||
--- a/lib/error.c
|
||||
+++ b/lib/error.c
|
||||
@@ -74,7 +74,7 @@ extern char *program_name;
|
||||
|
||||
# if HAVE_STRERROR
|
||||
# ifndef strerror /* On some systems, strerror is a macro */
|
||||
-char *strerror ();
|
||||
+char *strerror (int);
|
||||
# endif
|
||||
# else
|
||||
static char *
|
||||
diff --git a/lib/getopt.h b/lib/getopt.h
|
||||
index 4ac33b7..46971cb 100644
|
||||
--- a/lib/getopt.h
|
||||
+++ b/lib/getopt.h
|
||||
@@ -101,7 +101,7 @@ struct option
|
||||
errors, only prototype getopt for the GNU C library. */
|
||||
extern int getopt (int argc, char *const *argv, const char *shortopts);
|
||||
#else /* not __GNU_LIBRARY__ */
|
||||
-extern int getopt ();
|
||||
+extern int getopt (int, char * const [], const char *);
|
||||
#endif /* __GNU_LIBRARY__ */
|
||||
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
|
||||
const struct option *longopts, int *longind);
|
||||
diff --git a/lib/long-options.c b/lib/long-options.c
|
||||
index fe069fd..4db5cea 100644
|
||||
--- a/lib/long-options.c
|
||||
+++ b/lib/long-options.c
|
||||
@@ -22,6 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include "long-options.h"
|
||||
|
||||
@@ -43,7 +44,7 @@ parse_long_options (argc, argv,version, usage)
|
||||
int argc;
|
||||
char **argv;
|
||||
void (*version)();
|
||||
- void (*usage)();
|
||||
+ void (*usage)(int);
|
||||
#endif
|
||||
{
|
||||
int c;
|
||||
diff --git a/lib/long-options.h b/lib/long-options.h
|
||||
index 14459cd..3fb8fa6 100644
|
||||
--- a/lib/long-options.h
|
||||
+++ b/lib/long-options.h
|
||||
@@ -6,5 +6,5 @@
|
||||
#endif
|
||||
|
||||
void parse_long_options __P ((int _argc, char **_argv,
|
||||
- void (*_version) (void),
|
||||
+ void (*_version) (),
|
||||
void (*_usage) (int)));
|
||||
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
|
||||
index d7b4b56..7d0737d 100644
|
||||
--- a/lib/xstrtol.c
|
||||
+++ b/lib/xstrtol.c
|
||||
@@ -65,8 +65,6 @@ extern int errno;
|
||||
} \
|
||||
while (0)
|
||||
|
||||
-__unsigned long int __strtol ();
|
||||
-
|
||||
/* FIXME: comment. */
|
||||
|
||||
strtol_error
|
||||
--
|
||||
2.50.1
|
||||
|
||||
38
package/lrzsz/0005-remove-old-prototypes.patch
Normal file
38
package/lrzsz/0005-remove-old-prototypes.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From 8d91782ae404c59f42029b3af394fbccb2d43856 Mon Sep 17 00:00:00 2001
|
||||
From: Uwe Ohse <uwe@ohse.de>
|
||||
Date: Mon, 2 Mar 2020 21:24:45 +0000
|
||||
Subject: [PATCH] remove old prototypes
|
||||
|
||||
Upstream: 34f9527076276aace5fc2e31388e09aaaf1773eb
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/lrz.c | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/lrz.c b/src/lrz.c
|
||||
index 63e1326..a31e82d 100644
|
||||
--- a/src/lrz.c
|
||||
+++ b/src/lrz.c
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
+#include <time.h>
|
||||
|
||||
#ifdef HAVE_UTIME_H
|
||||
#include <utime.h>
|
||||
@@ -42,11 +43,6 @@
|
||||
#include "xstrtoul.h"
|
||||
#include "error.h"
|
||||
|
||||
-#ifndef STRICT_PROTOTYPES
|
||||
-extern time_t time();
|
||||
-extern char *strerror();
|
||||
-extern char *strstr();
|
||||
-#endif
|
||||
|
||||
#ifndef HAVE_ERRNO_DECLARATION
|
||||
extern int errno;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
31
package/lrzsz/0006-remove-old-prototypes.patch
Normal file
31
package/lrzsz/0006-remove-old-prototypes.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From 755da0781a2b20674f183cbf8cddf28ac56f7bad Mon Sep 17 00:00:00 2001
|
||||
From: Uwe Ohse <uwe@ohse.de>
|
||||
Date: Mon, 2 Mar 2020 21:26:21 +0000
|
||||
Subject: [PATCH] remove old prototypes
|
||||
|
||||
Upstream: 7cdaef47634d2d8944a4192bb87c6e57dd24c41f
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/lsz.c | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/src/lsz.c b/src/lsz.c
|
||||
index 1598150..b8041b2 100644
|
||||
--- a/src/lsz.c
|
||||
+++ b/src/lsz.c
|
||||
@@ -51,12 +51,6 @@ void *mm_addr=NULL;
|
||||
#include "xstrtoul.h"
|
||||
#include "error.h"
|
||||
|
||||
-#ifndef STRICT_PROTOTYPES
|
||||
-extern time_t time();
|
||||
-extern char *strerror();
|
||||
-extern char *strstr();
|
||||
-#endif
|
||||
-
|
||||
#ifndef HAVE_ERRNO_DECLARATION
|
||||
extern int errno;
|
||||
#endif
|
||||
--
|
||||
2.50.1
|
||||
|
||||
55
package/lrzsz/0007-configure-fix-for-gcc-14.x.patch
Normal file
55
package/lrzsz/0007-configure-fix-for-gcc-14.x.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
From 791b757537d48a9e6beec4a1551d277b79b95f37 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Mon, 2 Mar 2026 20:09:25 +0100
|
||||
Subject: [PATCH] configure: fix for gcc >= 14.x
|
||||
|
||||
The pre-generated configure script has a check that doesn't work with
|
||||
GCC >= 14.x:
|
||||
|
||||
configure:1932: checking for ANSI C header files
|
||||
configure:1945: /home/bernd/buildroot/output/per-package/lrzsz/host/bin/i586-buildroot-linux-gnu-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_S
|
||||
OURCE -D_FILE_OFFSET_BITS=64 conftest.c >/dev/null 2>conftest.out
|
||||
configure:2012: /home/bernd/buildroot/output/per-package/lrzsz/host/bin/i586-buildroot-linux-gnu-gcc -o conftest -D_LARGEFILE_SOURCE -D_L
|
||||
ARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -D_FORTIFY_SOURCE=1 -std=gnu17 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BIT
|
||||
S=64 conftest.c 1>&5
|
||||
configure: In function 'main':
|
||||
configure:2007:67: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
|
||||
2007 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
| ^~~~
|
||||
configure:2003:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
|
||||
2002 | #include <ctype.h>
|
||||
+++ |+#include <stdlib.h>
|
||||
|
||||
Doing AUTORECONF = YES doesn't work as the configure.in is very old, so
|
||||
let's fix the configure script directly.
|
||||
|
||||
Upstream: N/A, patching generated file
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
configure | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 16a259a..8601361 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1572,6 +1572,7 @@ else
|
||||
#line 1573 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
||||
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
||||
@@ -2000,6 +2001,7 @@ else
|
||||
#line 2001 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
||||
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
||||
--
|
||||
2.47.3
|
||||
|
||||
16
package/lrzsz/Config.in
Normal file
16
package/lrzsz/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LRZSZ
|
||||
bool "lrzsz"
|
||||
# It could technically build in a static-only environment, but
|
||||
# it unconditionally redefines the error() and error_at_line()
|
||||
# functions, which clashes with the definition from
|
||||
# uClibc. Since the autotools packaging dates back from 1998,
|
||||
# lots of work is needed to fix it, and do some proper tests
|
||||
# on the availability of such functions.
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Portable and fast implementation of the X/Y/Zmodem protocols.
|
||||
|
||||
http://www.ohse.de/uwe/software/lrzsz.html
|
||||
|
||||
comment "lrzsz needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
3
package/lrzsz/lrzsz.hash
Normal file
3
package/lrzsz/lrzsz.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 4d845f239ddcd86735b5dbf01f3869b072ffb6f6c8aa24c346dc4a3c95453c55 lrzsz-0.12.21rc.tar.gz
|
||||
sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING
|
||||
29
package/lrzsz/lrzsz.mk
Normal file
29
package/lrzsz/lrzsz.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# lrzsz
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LRZSZ_VERSION = 0.12.21rc
|
||||
LRZSZ_SITE = http://www.ohse.de/uwe/testing
|
||||
LRZSZ_CONF_OPTS = --disable-timesync
|
||||
LRZSZ_LICENSE = GPL-2.0+
|
||||
LRZSZ_LICENSE_FILES = COPYING
|
||||
LRZSZ_CPE_ID_VALID = YES
|
||||
LRZSZ_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
LRZSZ_CONF_ENV = \
|
||||
ac_cv_type_signal=void \
|
||||
LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
define LRZSZ_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
|
||||
$(INSTALL) -m 0755 -D $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/lrz
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/lsz
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/rb
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/sb
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/rx
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/sx
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user