[packages/setserial] Rel 22

arekm arekm at pld-linux.org
Mon Mar 9 16:18:09 CET 2026


commit 40e1118d8e5c61357141e9a5957dc39eaa1514c6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 16:17:54 2026 +0100

    Rel 22

 setserial-c99.patch | 19 +++++++++++++++++++
 setserial.spec      |  5 ++++-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/setserial.spec b/setserial.spec
index 2979b20..4a16375 100644
--- a/setserial.spec
+++ b/setserial.spec
@@ -11,7 +11,7 @@ Summary(zh_CN.UTF-8):	[系统]配置串口的工具
 Summary(zh_TW.UTF-8):	[-A系$)B統]-A配置$)B串-A口$)B的-A工$)B具
 Name:		setserial
 Version:	2.17
-Release:	21
+Release:	22
 License:	GPL
 Group:		Applications/System
 Source0:	ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
@@ -20,6 +20,8 @@ Source1:	%{name}-rc.serial
 Source2:	%{name}.8.pl
 Patch1:		hayesesp.patch
 Patch2:		exit.patch
+# based on Fedora setserial-c99.patch and Gentoo setserial-2.17-headers.patch
+Patch3:		setserial-c99.patch
 BuildRequires:	autoconf
 BuildRequires:	groff
 Requires:	rc-scripts
@@ -71,6 +73,7 @@ Setserial, bir seri aygıtın bağlantı noktası, kesme numarası gibi
 %setup -q
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__autoconf}
diff --git a/setserial-c99.patch b/setserial-c99.patch
new file mode 100644
index 0000000..142bc8e
--- /dev/null
+++ b/setserial-c99.patch
@@ -0,0 +1,19 @@
+--- setserial-2.17/setserial.c.orig	2000-01-12 18:55:05.000000000 +0000
++++ setserial-2.17/setserial.c	2024-04-01 00:00:00.000000000 +0000
+@@ -16,6 +16,8 @@
+ #include <termios.h>
+ #include <string.h>
+ #include <errno.h>
++#include <sys/ioctl.h>
++#include <unistd.h>
+
+ #ifdef HAVE_ASM_IOCTLS_H
+ #include <asm/ioctls.h>
+@@ -717,6 +719,7 @@
+ 	exit(1);
+ }
+
++int
+ main(int argc, char **argv)
+ {
+ 	int	get_flag = 0, wild_intr_flag = 0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/setserial.git/commitdiff/40e1118d8e5c61357141e9a5957dc39eaa1514c6



More information about the pld-cvs-commit mailing list