Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/lrzsz-0.12.20.tar.gz
|
||||
lrzsz-0.12.20.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
451e6a1813dfb71a412c973acd1b88b9ee3f28c4 SOURCES/lrzsz-0.12.20.tar.gz
|
25
gating.yaml
Normal file
25
gating.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
|
||||
|
||||
#Rawhide
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
|
||||
|
||||
#gating rhel
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}
|
33
lrzsz-c99.patch
Normal file
33
lrzsz-c99.patch
Normal file
@ -0,0 +1,33 @@
|
||||
Add additional #include directives to avoid implicit function
|
||||
declarations and build failures with future compilers.
|
||||
|
||||
diff --git a/lib/long-options.c b/lib/long-options.c
|
||||
index 76b979634aa4be46..9ee8f6609cdd2c2b 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"
|
||||
|
||||
diff --git a/src/lsyslog.c b/src/lsyslog.c
|
||||
index 6baf4a2b0a372fc5..0500280259b1af0a 100644
|
||||
--- a/src/lsyslog.c
|
||||
+++ b/src/lsyslog.c
|
||||
@@ -18,11 +18,13 @@
|
||||
02111-1307, USA.
|
||||
|
||||
*/
|
||||
+#define _GNU_SOURCE /* for vasprintf */
|
||||
#include "config.h"
|
||||
#ifdef ENABLE_SYSLOG
|
||||
#include "zglobal.h"
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
+#include <stdio.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
153
lrzsz-configure-c99.patch
Normal file
153
lrzsz-configure-c99.patch
Normal file
@ -0,0 +1,153 @@
|
||||
Various fixes for the configure script for C99 compatibility.
|
||||
Most of the changes are generic in nature, due to the old version
|
||||
of autoconf used by upstream (2.12).
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index db2672686719f7e1..c82ff072e4e1de5d 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -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
|
||||
@@ -1489,8 +1489,8 @@ else
|
||||
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
||||
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
||||
int main () { int i; for (i = 0; i < 256; i++)
|
||||
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
-exit (0); }
|
||||
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2;
|
||||
+return 0; }
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
@@ -1645,7 +1645,7 @@ for ac_kw in inline __inline__ __inline; do
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
-} $ac_kw foo() {
|
||||
+} $ac_kw int foo() {
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
@@ -1917,8 +1917,8 @@ else
|
||||
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
||||
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
||||
int main () { int i; for (i = 0; i < 256; i++)
|
||||
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
-exit (0); }
|
||||
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2;
|
||||
+return 0; }
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
@@ -2488,14 +2488,14 @@ else
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
/* If setvbuf has the reversed format, exit 0. */
|
||||
-main () {
|
||||
+int main () {
|
||||
/* This call has the arguments reversed.
|
||||
A reversed system may check and see that the address of main
|
||||
is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
|
||||
if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
|
||||
- exit(1);
|
||||
+ return 1;
|
||||
putc('\r', stdout);
|
||||
- exit(0); /* Non-reversed systems segv here. */
|
||||
+ return 0; /* Non-reversed systems segv here. */
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
@@ -2694,12 +2694,15 @@ else
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
+#include <sys/stat.h>
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+# include <unistd.h>
|
||||
+#endif
|
||||
|
||||
/* This mess was copied from the GNU getpagesize.h. */
|
||||
#ifndef HAVE_GETPAGESIZE
|
||||
-# ifdef HAVE_UNISTD_H
|
||||
-# include <unistd.h>
|
||||
-# endif
|
||||
|
||||
/* Assume that all systems that can run configure have sys/param.h. */
|
||||
# ifndef HAVE_SYS_PARAM_H
|
||||
@@ -3032,9 +3035,9 @@ find_stack_direction ()
|
||||
else
|
||||
return (&dummy > addr) ? 1 : -1;
|
||||
}
|
||||
-main ()
|
||||
+int main (void)
|
||||
{
|
||||
- exit (find_stack_direction() < 0);
|
||||
+ return find_stack_direction() < 0;
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
@@ -3470,7 +3473,7 @@ else
|
||||
#include <sys/types.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <stdio.h>
|
||||
-main ()
|
||||
+int main (void)
|
||||
{
|
||||
struct timeb s, slast;
|
||||
int c = 0;
|
||||
@@ -3482,14 +3485,14 @@ main ()
|
||||
|| (s.time == slast.time && s.millitm < slast.millitm)) {
|
||||
fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",
|
||||
s.time,s.millitm, slast.time,slast.millitm);
|
||||
- exit (1);
|
||||
+ return 1;
|
||||
}
|
||||
if (s.time != slast.time)
|
||||
++c;
|
||||
slast.time = s.time;
|
||||
slast.millitm = s.millitm;
|
||||
}
|
||||
- exit (0);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
EOF
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 429677e87e99a303..0fbe252a717afb59 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -180,7 +180,7 @@ AC_CACHE_VAL(lrzsz_cv_sys_ftime_ok,
|
||||
#include <sys/types.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <stdio.h>
|
||||
-main ()
|
||||
+int main (void)
|
||||
{
|
||||
struct timeb s, slast;
|
||||
int c = 0;
|
||||
@@ -192,14 +192,14 @@ main ()
|
||||
|| (s.time == slast.time && s.millitm < slast.millitm)) {
|
||||
fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",
|
||||
s.time,s.millitm, slast.time,slast.millitm);
|
||||
- exit (1);
|
||||
+ return 1;
|
||||
}
|
||||
if (s.time != slast.time)
|
||||
++c;
|
||||
slast.time = s.time;
|
||||
slast.millitm = s.millitm;
|
||||
}
|
||||
- exit (0);
|
||||
+ return 0;
|
||||
}
|
||||
],
|
||||
lrzsz_cv_sys_ftime_ok=yes,
|
26
lrzsz-socklen.patch
Normal file
26
lrzsz-socklen.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Use socklen_t as the length of the socket address (which is a bit of
|
||||
an anachronism, considering the rest of the sources). The previous
|
||||
code des not work on 64-bit big-endian architectures.
|
||||
|
||||
diff --git a/src/tcp.c b/src/tcp.c
|
||||
index 137f94c37503abe9..69da8c9f8dff304b 100644
|
||||
--- a/src/tcp.c
|
||||
+++ b/src/tcp.c
|
||||
@@ -56,7 +56,7 @@ tcp_server (char *buf)
|
||||
struct sockaddr_in s;
|
||||
struct sockaddr_in t;
|
||||
int on=1;
|
||||
- size_t len;
|
||||
+ socklen_t len;
|
||||
|
||||
if ((sock = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
|
||||
error(1,errno,"socket");
|
||||
@@ -91,7 +91,7 @@ tcp_accept (int d)
|
||||
{
|
||||
int so;
|
||||
struct sockaddr_in s;
|
||||
- size_t namelen;
|
||||
+ socklen_t namelen;
|
||||
int num=0;
|
||||
|
||||
namelen = sizeof(s);
|
@ -1,16 +1,19 @@
|
||||
Summary: The lrz and lsz modem communications programs
|
||||
Name: lrzsz
|
||||
Version: 0.12.20
|
||||
Release: 43%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/Communications
|
||||
Release: 66%{?dist}
|
||||
License: GPL-2.0-or-later AND GPL-2.0-only
|
||||
Source: http://www.ohse.de/uwe/releases/%{name}-%{version}.tar.gz
|
||||
Patch1: lrzsz-0.12.20-glibc21.patch
|
||||
Patch2: lrzsz-0.12.20.patch
|
||||
Patch3: lrzsz-0.12.20-man.patch
|
||||
Patch4: lrzsz-0.12.20-aarch64.patch
|
||||
Patch5: lrzsz-configure-c99.patch
|
||||
Patch6: lrzsz-c99.patch
|
||||
Patch7: lrzsz-socklen.patch
|
||||
Url: http://www.ohse.de/uwe/software/lrzsz.html
|
||||
BuildRequires: gettext
|
||||
BuildRequires: gcc gettext
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
Lrzsz (consisting of lrz and lsz) is a cosmetically modified
|
||||
@ -25,6 +28,9 @@ copylefted Zmodem solution for Linux systems.
|
||||
%patch2 -p1 -b .crc
|
||||
%patch3 -p1 -b .man
|
||||
%patch4 -p1 -b .aarch64
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
|
||||
rm -f po/*.gmo
|
||||
|
||||
@ -33,10 +39,15 @@ rm -f po/*.gmo
|
||||
--enable-syslog \
|
||||
--program-transform-name=s/l//
|
||||
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%make_install prefix=%{buildroot}/usr \
|
||||
datadir=%{buildroot}/usr/share
|
||||
|
||||
for m in rb rx; do ln -s rz.1 %{buildroot}%{_mandir}/man1/$m.1; done
|
||||
for m in sb sx; do ln -s sz.1 %{buildroot}%{_mandir}/man1/$m.1; done
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%files -f %{name}.lang
|
||||
@ -44,6 +55,78 @@ make %{?_smp_mflags}
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.12.20-66
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.12.20-65
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-64
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-63
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Dec 18 2023 Florian Weimer <fweimer@redhat.com> - 0.12.20-62
|
||||
- Fix socket length incompatibility (C compatibility issue)
|
||||
|
||||
* Tue Oct 31 2023 Tomas Korbar <tkorbar@redhat.com> - 0.12.20-61
|
||||
- Add additional SPDX licenses found by scancode tool
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-60
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sun Mar 12 2023 Tomas Korbar <tkorbar@redhat.com> - 0.12.20-59
|
||||
- Change the License tag to the SPDX format
|
||||
|
||||
* Fri Jan 27 2023 Florian Weimer <fweimer@redhat.com> - 0.12.20-58
|
||||
- Fix C99 compatibility issues (#2164996)
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-57
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-56
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-55
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-54
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-53
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Aug 17 2020 Tomas Korbar <tkorbar@redhat.com> - 0.12.20-52
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-51
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-50
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-49
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-48
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-47
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Sep 12 2018 Miroslav Lichvar <mlichvar@redhat.com> 0.12.20-46
|
||||
- add man page symlinks for sb, sx, rb, rx programs (#1611501)
|
||||
|
||||
* Fri Jul 20 2018 Miroslav Lichvar <mlichvar@redhat.com> 0.12.20-45
|
||||
- add gcc to build requirements
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-44
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.20-43
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
36
plans.fmf
Normal file
36
plans.fmf
Normal file
@ -0,0 +1,36 @@
|
||||
/tier1-internal:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/tier1/internal
|
||||
|
||||
/tier1-public:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/tier1/public
|
||||
|
||||
/tier2-tier3-internal:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/tier2-tier3/internal
|
||||
|
||||
/tier2-tier3-public:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/tier2-tier3/public
|
||||
|
||||
/others-internal:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/others/internal
|
||||
|
||||
/others-public:
|
||||
plan:
|
||||
import:
|
||||
url: https://src.fedoraproject.org/tests/lrzsz.git
|
||||
name: /plans/others/public
|
||||
|
Loading…
Reference in New Issue
Block a user