Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/isapnptools/files/, sys-apps/isapnptools/
Date: Thu, 29 Oct 2020 22:09:46
Message-Id: 1604009350.0f8c69f49c680f95fec772042e668c4d0a127028.soap@gentoo
1 commit: 0f8c69f49c680f95fec772042e668c4d0a127028
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 22:09:10 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 22:09:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f8c69f4
7
8 sys-apps/isapnptools: Fix -fno-common
9
10 Closes: https://bugs.gentoo.org/706998
11 Package-Manager: Portage-3.0.8, Repoman-3.0.2
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../files/isapnptools-1.27-fno-common.patch | 22 ++++++++++++++++++++++
15 sys-apps/isapnptools/isapnptools-1.27.ebuild | 10 ++++++----
16 2 files changed, 28 insertions(+), 4 deletions(-)
17
18 diff --git a/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch b/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch
19 new file mode 100644
20 index 00000000000..54da41cdd60
21 --- /dev/null
22 +++ b/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch
23 @@ -0,0 +1,22 @@
24 +--- a/src/isapnp_main.c
25 ++++ b/src/isapnp_main.c
26 +@@ -1153,7 +1153,7 @@
27 + return 0;
28 + }
29 +
30 +-unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
31 ++extern unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
32 + static char *boardid[NUM_CARDS+1];
33 + static unsigned long serno[NUM_CARDS+1];
34 +
35 +--- a/src/isapnp_main.l
36 ++++ b/src/isapnp_main.l
37 +@@ -363,7 +363,7 @@
38 + return 0;
39 + }
40 +
41 +-unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
42 ++extern unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
43 + static char *boardid[NUM_CARDS+1];
44 + static unsigned long serno[NUM_CARDS+1];
45 +
46
47 diff --git a/sys-apps/isapnptools/isapnptools-1.27.ebuild b/sys-apps/isapnptools/isapnptools-1.27.ebuild
48 index c9509240533..294f895aff7 100644
49 --- a/sys-apps/isapnptools/isapnptools-1.27.ebuild
50 +++ b/sys-apps/isapnptools/isapnptools-1.27.ebuild
51 @@ -1,7 +1,7 @@
52 -# Copyright 1999-2017 Gentoo Foundation
53 +# Copyright 1999-2020 Gentoo Authors
54 # Distributed under the terms of the GNU General Public License v2
55
56 -EAPI=6
57 +EAPI=7
58
59 DESCRIPTION="Tools for configuring ISA PnP devices"
60 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
61 @@ -10,9 +10,11 @@ SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/hardware/${P}.tgz"
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="-* amd64 x86"
65 -IUSE=""
66
67 -PATCHES=( "${FILESDIR}"/${P}-include.patch )
68 +PATCHES=(
69 + "${FILESDIR}"/${P}-include.patch
70 + "${FILESDIR}"/${P}-fno-common.patch
71 +)
72
73 src_install() {
74 default