Compare commits
26 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a65c0ff42f | ||
|
|
dd9e5d6ac5 | ||
|
|
f924035490 | ||
|
|
4d6caf359b | ||
|
|
d00d160100 | ||
|
|
962e5a4ef2 | ||
|
|
ac8719f8c3 | ||
|
|
7355ed5a6c | ||
|
|
9c799013cb | ||
|
|
d5842efee3 | ||
|
|
3997ae0a40 | ||
|
|
b1f5be808e | ||
|
|
b4bb8e5405 | ||
|
|
63215e6328 | ||
|
|
a19b39a658 | ||
|
|
5c6e0c310b | ||
|
|
6c0d9f6e76 | ||
|
|
fe8c2d9371 | ||
|
|
92d9d32f1b | ||
|
|
376055cf6b | ||
| e85dafb252 | |||
|
|
98a7db8f07 |
||
|
|
54fc182bd7 | ||
|
|
572ee0c176 | ||
|
|
d16c346db4 | ||
|
|
e8cb4ebf83 |
3 changed files with 126 additions and 11 deletions
28
setserial-c99.patch
Normal file
28
setserial-c99.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Avoid implicit int and implicit function declarations.
|
||||
|
||||
A mostly equivalent patch has been posted upstream:
|
||||
|
||||
<https://sourceforge.net/p/setserial/discussion/7060/thread/95d874c12c/?limit=25#1643>
|
||||
|
||||
diff --git a/setserial.c b/setserial.c
|
||||
index f184e98db07ceb59..d181327fc568ede4 100644
|
||||
--- a/setserial.c
|
||||
+++ b/setserial.c
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#include <sys/ioctl.h>
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_ASM_IOCTLS_H
|
||||
#include <asm/ioctls.h>
|
||||
@@ -714,6 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
+int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int get_flag = 0, wild_intr_flag = 0;
|
||||
17
setserial-configure-c99.patch
Normal file
17
setserial-configure-c99.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
This fixes a generic C99 compatibility issue in autoconf-generated
|
||||
code. No need to upstream this because the issue goes away if
|
||||
autoconf is re-run.
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 9d6084aa38e5d6e8..4d948816e1112d13 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -689,7 +689,7 @@ cat > conftest.$ac_ext << EOF
|
||||
#line 690 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
|
|
@ -3,19 +3,22 @@
|
|||
Summary: A utility for configuring serial ports
|
||||
Name: setserial
|
||||
Version: 2.17
|
||||
Release: 43%{?dist}
|
||||
Source: http://sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
Release: 65%{?dist}
|
||||
Source: https://sourceforge.net/projects/setserial/files/setserial/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: setserial-2.17-fhs.patch
|
||||
Patch1: setserial-2.17-rc.patch
|
||||
Patch2: setserial-2.17-readme.patch
|
||||
Patch3: setserial-2.17-spelling.patch
|
||||
Patch4: setserial-hayesesp.patch
|
||||
Patch5: setserial-aarch64.patch
|
||||
License: GPL+
|
||||
Group: Applications/System
|
||||
Patch6: setserial-configure-c99.patch
|
||||
Patch7: setserial-c99.patch
|
||||
License: GPL-1.0-or-later
|
||||
URL: http://setserial.sourceforge.net/
|
||||
ExcludeArch: s390 s390x
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: groff
|
||||
|
||||
%description
|
||||
|
|
@ -26,23 +29,25 @@ port and IRQ that a particular serial device is using, and more.
|
|||
%prep
|
||||
%setup -q
|
||||
# Use FHS directory layout.
|
||||
%patch0 -p1 -b .fhs
|
||||
%patch -P0 -p1 -b .fhs
|
||||
|
||||
# Fixed initscript.
|
||||
%patch1 -p1 -b .rc
|
||||
%patch -P1 -p1 -b .rc
|
||||
|
||||
# Corrected readme file.
|
||||
%patch2 -p1 -b .readme
|
||||
%patch -P2 -p1 -b .readme
|
||||
|
||||
# Fixed spelling in help output.
|
||||
%patch3 -p1 -b .spelling
|
||||
%patch -P3 -p1 -b .spelling
|
||||
|
||||
# Don't require hayesesp.h (bug #564947).
|
||||
%patch4 -p1 -b .hayesesp
|
||||
%patch -P4 -p1 -b .hayesesp
|
||||
rm -f config.cache
|
||||
|
||||
# Support aarch64 (bug #926522).
|
||||
%patch5 -p1 -b .aarch64
|
||||
%patch -P5 -p1 -b .aarch64
|
||||
%patch -P6 -p1
|
||||
%patch -P7 -p1
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
|
|
@ -58,12 +63,77 @@ mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
|
|||
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README rc.serial
|
||||
%{_bindir}/setserial
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-65
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-64
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-63
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-62
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-61
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed May 08 2024 Than Ngo <than@redhat.com> - 2.17-60
|
||||
- Migrate to SPDX license
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-59
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-58
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Thu Apr 13 2023 Florian Weimer <fweimer@redhat.com> - 2.17-57
|
||||
- Port to C99
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-56
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-55
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-54
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-53
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-52
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-51
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-50
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-49
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-48
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Jul 23 2018 Tim Waugh <twaugh@redhat.com> - 2.17-47
|
||||
- Build requires gcc (bug #1606335).
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-46
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Jul 05 2018 Than Ngo <than@redhat.com> - 2.17-45
|
||||
- fixed typo
|
||||
|
||||
* Thu Jul 05 2018 Than Ngo <than@redhat.com> - 2.17-44
|
||||
- fixed source url
|
||||
|
||||
* Sun Feb 25 2018 Florian Weimer <fweimer@redhat.com> - 2.17-43
|
||||
- Use LDFLAGS from redhat-rpm-config
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue