diff options
Diffstat (limited to 'sys-apps/isapnptools')
-rw-r--r-- | sys-apps/isapnptools/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/isapnptools/files/isapnptools-1.27-incompatible-pointer-types.patch | 20 | ||||
-rw-r--r-- | sys-apps/isapnptools/isapnptools-1.27-r1.ebuild | 31 |
3 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/isapnptools/Manifest b/sys-apps/isapnptools/Manifest index 2375d17eaa68..9ea0ef2ec620 100644 --- a/sys-apps/isapnptools/Manifest +++ b/sys-apps/isapnptools/Manifest @@ -1,6 +1,8 @@ AUX isapnp.rc 545 BLAKE2B 45a2d468943fce175e1c2ff2a6666b31844493cf9dd00df8fc0b2c28d83f3e8cbe59984ae6c66853bce8b6ea1e84534e8db7ba28abef9a166b0add174bd67266 SHA512 9844f1d7a959e96750a8adb906f9c85d7ab693421d7ac51af08380ed6690c017d3f9a74694f2c5d7c7a3da8266f18f1f574095435aa6e9ec2ab9f7604ea470a7 AUX isapnptools-1.27-fno-common.patch 578 BLAKE2B aaa06b450b6698d3b0caa10dd2c50a150bff069ee231f46b0e74a1129cf64329ec828d9f7b33205bc409da119d37062f9cc8e96f115e46c6d1eb7feed61a2094 SHA512 202f955c3e4701b7af49ba99b117d1ac8f5dca2bf710fa5d7dc9b73d2988e22a8283900d87b85a500d6b20a4736cf78d5e751e0a9447574dd8d142d8e5f0feec AUX isapnptools-1.27-include.patch 241 BLAKE2B 838759903a4bf42b48da7dbd900f9fa360e3916068cfcc67d7803111d1c50358ec9bb1c9a20916064ecb05e347e026be5e97a8400bd6021a30bbc00e55d0b085 SHA512 8533282a59f4860fd16e9f76a2d7e55db0629ce754e94a17c9339e08b777253e936a4fe242db5d38f99283e474969c03726560b0f27243c898fd4881ad1920b7 +AUX isapnptools-1.27-incompatible-pointer-types.patch 708 BLAKE2B c116e15ddb60c49564fa25402627f4f020a76f6ed38383b9e2ae5b4700e1bd13d5de91af1adec2217d53764950391f7d46fa2d318ca1856175a0c2a5324a63f6 SHA512 2b240f750ea11fcd76558c6edf114c5a16a081db8bf203954add87bb1c3773b388b3d9daa0b6c831e5012911ec388f4ca1969b6d9ce8269d03f00f0ae058f9ee DIST isapnptools-1.27.tgz 499639 BLAKE2B 9da8968abeaf1fe2f39e3003cad32aecb546016d72489a9b4c84b8427acee7a54c2580d6536e2c39aa06a44cf363705af06968b71100c51663e928ffdbfa7353 SHA512 ccd1c8f7b66ba7f26d50fcfa64d0397dd1a09866c7c74226acbcb4e08be77717aaa4dde7eabcad5bac4e5f92774c40bca48dbf97069c62cc71355b768eca4d34 +EBUILD isapnptools-1.27-r1.ebuild 672 BLAKE2B 16b13f743cd4d16ae79e41b4a19e04767e506f28317ee33f291a8102744a758a78b87cdeb6c05381ced5e35dea673b2fb270ca51d47032ddf4b682888b8e1a0d SHA512 ca105ac5003530a58c468592dae62de82bd31cd38065d28e0bce9118f145c3def9ad75249c4e13c8d37a3920e057b9960016fcee267596906b776bca3f19b6c2 EBUILD isapnptools-1.27.ebuild 617 BLAKE2B 94f1138e597d4aa1f8a0a90274b0bdff452f161219656b4e76e7f3faffacf63dc842710999e5cb63addd2e5b5f98294118a14556eff4d525cbb2e4c4ebce0488 SHA512 c6c9de1ef886b48a8994c38a1075299e35c4a75bad7e00063e2f7214db5967c3cb974b3c26ba48cf159f3ecd4ff7fc8a67a8d8406c22188342939cdb6cf8b380 MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c 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 +} |