diff --git a/community/setserial/APKBUILD b/community/setserial/APKBUILD index 7bf181b435a..bb564a9fa90 100644 --- a/community/setserial/APKBUILD +++ b/community/setserial/APKBUILD @@ -2,16 +2,23 @@ # Maintainer: Milan P. Stanić 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 +" diff --git a/community/setserial/gcc14.patch b/community/setserial/gcc14.patch new file mode 100644 index 00000000000..cb73792a3ba --- /dev/null +++ b/community/setserial/gcc14.patch @@ -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 ++#include + #include + #include + #include + #include ++#include ++#include + + #ifdef HAVE_ASM_IOCTLS_H + #include +@@ -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; diff --git a/community/setserial/ioctls.patch b/community/setserial/ioctls.patch deleted file mode 100644 index 36d16afd141..00000000000 --- a/community/setserial/ioctls.patch +++ /dev/null @@ -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 - #include - #include -- --#ifdef HAVE_ASM_IOCTLS_H - #include --#endif -+ - #ifdef HAVE_LINUX_HAYESESP_H - #include - #endif