* [gentoo-commits] repo/gentoo:master commit in: sys-apps/isapnptools/, sys-apps/isapnptools/files/
@ 2024-05-08 16:04 Arthur Zamarin
0 siblings, 0 replies; only message in thread
From: Arthur Zamarin @ 2024-05-08 16:04 UTC (permalink / raw
To: gentoo-commits
commit: dcfe7c9123998cc686cd653af0dc1362d08a7db2
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Apr 27 08:07:40 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed May 8 16:03:30 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcfe7c91
sys-apps/isapnptools: Fix iterator type for C99, update EAPI 7 -> 8
Also explicitly void function whose input we intentionally ignore
Closes: https://bugs.gentoo.org/919391
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36451
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
...apnptools-1.27-incompatible-pointer-types.patch | 20 ++++++++++++++
sys-apps/isapnptools/isapnptools-1.27-r1.ebuild | 31 ++++++++++++++++++++++
2 files changed, 51 insertions(+)
diff --git a/sys-apps/isapnptools/files/isapnptools-1.27-incompatible-pointer-types.patch b/sys-apps/isapnptools/files/isapnptools-1.27-incompatible-pointer-types.patch
new file mode 100644
index 000000000000..6b7048d5053f
--- /dev/null
+++ b/sys-apps/isapnptools/files/isapnptools-1.27-incompatible-pointer-types.patch
@@ -0,0 +1,20 @@
+--- a/src/resource.c 2024-04-27 08:02:26.232607532 -0000
++++ b/src/resource.c 2024-04-27 08:04:14.600217480 -0000
+@@ -285,7 +285,7 @@
+ void allocate_pci_resources( void )
+ {
+ char *line = 0;
+- int lineMax = 0;
++ size_t lineMax = 0;
+
+ FILE *fp = fopen( "/proc/bus/pci/devices", "rt" );
+ if( !fp )
+@@ -354,7 +354,7 @@
+ int io_end;
+ /* Avoid allocating DMA channels used by other devices in /proc. */
+ if ((input = fopen("/proc/interrupts", "r")) != NULL) {
+- fscanf(input, "%*[^\n]\n"); /* skip first line */
++ (void)fscanf(input, "%*[^\n]\n"); /* skip first line */
+ while (fscanf (input, "%d%*[^\n]\n", &interrupt_num) == 1) {
+ #if 0
+ snprintf(progress_report_buf,
diff --git a/sys-apps/isapnptools/isapnptools-1.27-r1.ebuild b/sys-apps/isapnptools/isapnptools-1.27-r1.ebuild
new file mode 100644
index 000000000000..056011e4bd02
--- /dev/null
+++ b/sys-apps/isapnptools/isapnptools-1.27-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Tools for configuring ISA PnP devices"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/hardware/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-include.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-incompatible-pointer-types.patch
+)
+
+src_install() {
+ default
+
+ dodir /sbin
+ mv "${ED}"/{usr/sbin/isapnp,sbin/} || die
+
+ docinto txt
+ dodoc doc/{README*,*.txt} test/*.txt
+ dodoc etc/isapnp.*
+
+ newinitd "${FILESDIR}"/isapnp.rc isapnp
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-08 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 16:04 [gentoo-commits] repo/gentoo:master commit in: sys-apps/isapnptools/, sys-apps/isapnptools/files/ Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox