Просмотр исходного кода

lrzsz: drop package, gcc 15.x issues

Waldemar Brodkorb 3 месяцев назад
Родитель
Сommit
843df4c791

+ 0 - 37
package/lrzsz/Makefile

@@ -1,37 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		lrzsz
-PKG_VERSION:=		0.12.20
-PKG_RELEASE:=		1
-PKG_HASH:=		c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
-PKG_DESCR:=		x-Modem, y-modem, z-modem protocol handlers
-PKG_SECTION:=		sys/serial
-PKG_URL:=		http://www.ohse.de/uwe/software/lrzsz.html
-PKG_SITES:=		http://www.ohse.de/uwe/releases/
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,LRZSZ,lrzsz,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-INSTALL_STYLE:=		manual
-
-CONFIGURE_ARGS+=	--without-libiconv-prefix \
-			--without-libintl-prefix
-
-do-install:
-	${INSTALL_DIR} ${IDIR_LRZSZ}/usr/bin
-	${CP} ${WRKBUILD}/src/lrz ${IDIR_LRZSZ}/usr/bin/
-	${CP} ${WRKBUILD}/src/lsz ${IDIR_LRZSZ}/usr/bin/
-	(cd ${IDIR_LRZSZ}/usr/bin; \
-		ln -fs lrz lrx; \
-		ln -fs lrz lrb; \
-		ln -fs lsz lsx; \
-		ln -fs lsz lsb; \
-	);
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 11 - 0
package/lrzsz/patches/patch-configure

@@ -0,0 +1,11 @@
+--- lrzsz-0.12.20.orig/configure	1998-12-30 08:50:18.000000000 +0100
++++ lrzsz-0.12.20/configure	2026-05-12 20:47:30.677966799 +0200
+@@ -1008,7 +1008,7 @@ cross_compiling=$ac_cv_prog_cc_cross
+ cat > conftest.$ac_ext <<EOF
+ #line 1010 "configure"
+ #include "confdefs.h"
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   ac_cv_prog_cc_works=yes

+ 19 - 0
package/lrzsz/patches/patch-lib_error_c

@@ -0,0 +1,19 @@
+--- lrzsz-0.12.20.orig/lib/error.c	1998-04-26 15:20:52.000000000 +0200
++++ lrzsz-0.12.20/lib/error.c	2026-05-12 20:50:39.653570973 +0200
+@@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suit
+ #endif
+ 
+ #include <stdio.h>
++#include <string.h>
+ 
+ #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
+ # if __STDC__
+@@ -73,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 *

+ 11 - 0
package/lrzsz/patches/patch-lib_getopt_h

@@ -0,0 +1,11 @@
+--- lrzsz-0.12.20.orig/lib/getopt.h	1998-04-26 15:20:52.000000000 +0200
++++ lrzsz-0.12.20/lib/getopt.h	2026-05-12 20:50:39.653570973 +0200
+@@ -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);

+ 28 - 0
package/lrzsz/patches/patch-lib_long-options_c

@@ -0,0 +1,28 @@
+--- lrzsz-0.12.20.orig/lib/long-options.c	1998-04-26 15:22:35.000000000 +0200
++++ lrzsz-0.12.20/lib/long-options.c	2026-05-12 20:55:18.084988037 +0200
+@@ -22,6 +22,7 @@
+ #endif
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <getopt.h>
+ #include "long-options.h"
+ 
+@@ -39,7 +40,7 @@ parse_long_options (argc, argv,version,
+      int argc;
+      char **argv;
+      void (*version)();
+-     void (*usage)();
++     void (*usage)(int);
+ {
+   int c;
+   int saved_opterr;
+@@ -60,7 +61,7 @@ parse_long_options (argc, argv,version,
+ 	  (*usage) (0);
+ 
+ 	case 'v':
+-	  (*version) (0);
++	  (*version);
+ 	  /* printf ("%s (%s) %s\n", command_name, package, version_string); */
+ 	  exit (0);
+ 

+ 21 - 0
package/lrzsz/patches/patch-lib_long-options_c.orig

@@ -0,0 +1,21 @@
+--- lrzsz-0.12.20.orig/lib/long-options.c	1998-04-26 15:22:35.000000000 +0200
++++ lrzsz-0.12.20/lib/long-options.c	2026-05-12 20:54:04.477142123 +0200
+@@ -22,6 +22,7 @@
+ #endif
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <getopt.h>
+ #include "long-options.h"
+ 
+@@ -38,8 +39,8 @@ void
+ parse_long_options (argc, argv,version, usage)
+      int argc;
+      char **argv;
+-     void (*version)();
+-     void (*usage)();
++     void (*version)(int);
++     void (*usage)(int);
+ {
+   int c;
+   int saved_opterr;

+ 9 - 0
package/lrzsz/patches/patch-lib_long-options_h

@@ -0,0 +1,9 @@
+--- lrzsz-0.12.20.orig/lib/long-options.h	1998-04-26 15:22:35.000000000 +0200
++++ lrzsz-0.12.20/lib/long-options.h	2026-05-12 20:50:39.653570973 +0200
+@@ -6,5 +6,5 @@
+ #endif
+ 
+ void parse_long_options __P ((int _argc, char **_argv, 
+-							  void (*_version) (void), 
++							  void (*_version) (), 
+ 							  void (*_usage) (int)));

+ 11 - 0
package/lrzsz/patches/patch-lib_xstrtol_c

@@ -0,0 +1,11 @@
+--- lrzsz-0.12.20.orig/lib/xstrtol.c	1998-04-26 15:20:52.000000000 +0200
++++ lrzsz-0.12.20/lib/xstrtol.c	2026-05-12 20:50:39.653570973 +0200
+@@ -65,8 +65,6 @@ extern int errno;
+ 	}								\
+       while (0)
+ 
+-__unsigned long int __strtol ();
+-
+ /* FIXME: comment.  */
+ 
+ strtol_error

+ 10 - 0
package/lrzsz/patches/patch-src_canit_c

@@ -0,0 +1,10 @@
+--- lrzsz-0.12.20.orig/src/canit.c	1998-12-28 09:06:13.000000000 +0100
++++ lrzsz-0.12.20/src/canit.c	2026-05-12 20:50:34.361582055 +0200
+@@ -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>

+ 27 - 0
package/lrzsz/patches/patch-src_lrz_c

@@ -0,0 +1,27 @@
+--- lrzsz-0.12.20.orig/src/lrz.c	1998-12-30 08:49:24.000000000 +0100
++++ lrzsz-0.12.20/src/lrz.c	2026-05-12 20:52:05.805390576 +0200
+@@ -27,10 +27,12 @@
+ #define SS_NORMAL 0
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <signal.h>
+ #include <ctype.h>
+ #include <errno.h>
+ #include <getopt.h>
++#include <time.h>
+ 
+ #ifdef HAVE_UTIME_H
+ #include <utime.h>
+@@ -41,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;

+ 17 - 0
package/lrzsz/patches/patch-src_lsyslog_c

@@ -0,0 +1,17 @@
+--- lrzsz-0.12.20.orig/src/lsyslog.c	1998-12-29 18:27:46.000000000 +0100
++++ lrzsz-0.12.20/src/lsyslog.c	2026-05-12 20:50:34.361582055 +0200
+@@ -18,12 +18,14 @@
+   02111-1307, USA.
+ 
+ */
++#define _GNU_SOURCE
+ #include "config.h"
+ #ifdef ENABLE_SYSLOG
+ #include "zglobal.h"
+ #include <pwd.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #endif
+ 
+ #if __STDC__

+ 23 - 0
package/lrzsz/patches/patch-src_lsz_c

@@ -0,0 +1,23 @@
+--- lrzsz-0.12.20.orig/src/lsz.c	1998-12-29 23:07:59.000000000 +0100
++++ lrzsz-0.12.20/src/lsz.c	2026-05-12 20:52:09.921381958 +0200
+@@ -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>
+@@ -50,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

+ 10 - 0
package/lrzsz/patches/patch-src_tcp_c

@@ -0,0 +1,10 @@
+--- lrzsz-0.12.20.orig/src/tcp.c	1998-12-28 11:41:38.000000000 +0100
++++ lrzsz-0.12.20/src/tcp.c	2026-05-12 20:50:34.361582055 +0200
+@@ -33,6 +33,7 @@
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <signal.h>
++#include <string.h>
+ 
+ #include "zglobal.h"
+ #include <stdlib.h>

+ 10 - 0
package/lrzsz/patches/patch-src_zperr_c

@@ -0,0 +1,10 @@
+--- lrzsz-0.12.20.orig/src/zperr.c	1998-12-27 17:25:27.000000000 +0100
++++ lrzsz-0.12.20/src/zperr.c	2026-05-12 20:50:34.361582055 +0200
+@@ -22,6 +22,7 @@
+ #include "zglobal.h"
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <errno.h>
+ 
+ #ifdef __STDC__

+ 10 - 0
package/lrzsz/patches/patch-src_zreadline_c

@@ -0,0 +1,10 @@
+--- lrzsz-0.12.20.orig/src/zreadline.c	1998-12-24 00:57:32.000000000 +0100
++++ lrzsz-0.12.20/src/zreadline.c	2026-05-12 20:50:34.361582055 +0200
+@@ -27,6 +27,7 @@
+ 
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <signal.h>
+ #include <ctype.h>
+ #include <errno.h>