mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
community/setserial: fix build with gcc 14
This commit is contained in:
parent
42c2ae621f
commit
9e1208d341
@ -2,16 +2,23 @@
|
||||
# Maintainer: Milan P. Stanić <mps@arvanta.net>
|
||||
pkgname=setserial
|
||||
pkgver=2.17
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="tool for change various attributes of a serial device"
|
||||
url="https://setserial.sourceforge.net/"
|
||||
arch="all"
|
||||
license="GPL-2.0-only"
|
||||
makedepends="groff linux-headers"
|
||||
makedepends="groff linux-headers autoconf"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://downloads.sourceforge.net/sourceforge/setserial/setserial-$pkgver.tar.gz
|
||||
ioctls.patch
|
||||
setserial.patch"
|
||||
gcc14.patch
|
||||
setserial.patch
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
# regenerate configure script to work with gcc 14
|
||||
autoconf -f
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
@ -27,6 +34,8 @@ package() {
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
|
||||
sha512sums="27b4918d303302dfdbca2f8c4fe500685068cfbf3de70b4907bac5a9cdb2e643656c1d821e714c08723abcfbaf99129866002117450bef731a0a09cd38138645 setserial-2.17.tar.gz
|
||||
17e4ec065d5f51c80f3358c749b7c6b0257b380f4b81cb9af14312202098b045a0ea833e88a663d3b090f19a09430ee7c96e7046b794166263617cb859b1b3d9 ioctls.patch
|
||||
4c5f5bddb3f66aac51c1550d85726930221e995dd695f628bec37cf2f05c1db0c7b1c59ba745c32a9d8a91374a4491479f7786a58cfd0096157b2b22c764ac7f setserial.patch"
|
||||
sha512sums="
|
||||
27b4918d303302dfdbca2f8c4fe500685068cfbf3de70b4907bac5a9cdb2e643656c1d821e714c08723abcfbaf99129866002117450bef731a0a09cd38138645 setserial-2.17.tar.gz
|
||||
8a45f4db12bbed7851e5398f04bfeba78ae67f540f54a95621b0954bc9b017e0b545ccd997b8fba4c801cc5e9d75716b0dd92696425b332d69dab14bebbf3b66 gcc14.patch
|
||||
4c5f5bddb3f66aac51c1550d85726930221e995dd695f628bec37cf2f05c1db0c7b1c59ba745c32a9d8a91374a4491479f7786a58cfd0096157b2b22c764ac7f setserial.patch
|
||||
"
|
||||
|
27
community/setserial/gcc14.patch
Normal file
27
community/setserial/gcc14.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff --git a/setserial.c b/setserial.c
|
||||
index fef6532..6a95513 100644
|
||||
--- a/setserial.c
|
||||
+++ b/setserial.c
|
||||
@@ -11,10 +11,13 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#include <unistd.h>
|
||||
+#include <sys/ioctl.h>
|
||||
|
||||
#ifdef HAVE_ASM_IOCTLS_H
|
||||
#include <asm/ioctls.h>
|
||||
@@ -714,7 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
-main(int argc, char **argv)
|
||||
+int main(int argc, char **argv)
|
||||
{
|
||||
int get_flag = 0, wild_intr_flag = 0;
|
||||
int c;
|
@ -1,14 +0,0 @@
|
||||
--- a/setserial.c 2000-01-27 16:40:52.000000000 +0100
|
||||
+++ b/setserial.c 2014-03-26 18:53:04.720749160 +0100
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
-
|
||||
-#ifdef HAVE_ASM_IOCTLS_H
|
||||
#include <asm/ioctls.h>
|
||||
-#endif
|
||||
+
|
||||
#ifdef HAVE_LINUX_HAYESESP_H
|
||||
#include <linux/hayesesp.h>
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user