1 |
commit: 71c4c3709473ca5286f90a2263aae3cadfa70497 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 12:14:41 2020 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 8 12:14:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71c4c370 |
7 |
|
8 |
media-radio/ax25-apps: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707630 |
11 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
12 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
13 |
|
14 |
media-radio/ax25-apps/ax25-apps-0.0.8_rc4.ebuild | 5 +- |
15 |
.../files/ax25-apps-0.0.8-fno-common.patch | 87 ++++++++++++++++++++++ |
16 |
2 files changed, 90 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-radio/ax25-apps/ax25-apps-0.0.8_rc4.ebuild b/media-radio/ax25-apps/ax25-apps-0.0.8_rc4.ebuild |
19 |
index 21b6d557a2c..2d61a7513cb 100644 |
20 |
--- a/media-radio/ax25-apps/ax25-apps-0.0.8_rc4.ebuild |
21 |
+++ b/media-radio/ax25-apps/ax25-apps-0.0.8_rc4.ebuild |
22 |
@@ -1,4 +1,4 @@ |
23 |
-# Copyright 1999-2015 Gentoo Foundation |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=5 |
28 |
@@ -12,7 +12,7 @@ SRC_URI="http://www.linux-ax25.org/pub/${PN}/${MY_P}.tar.gz" |
29 |
|
30 |
LICENSE="GPL-2" |
31 |
SLOT="0" |
32 |
-KEYWORDS="amd64 ppc x86" |
33 |
+KEYWORDS="~amd64 ~ppc ~x86" |
34 |
IUSE="" |
35 |
|
36 |
RDEPEND=">=dev-libs/libax25-0.0.12_rc2 |
37 |
@@ -26,6 +26,7 @@ S=${WORKDIR}/${MY_P} |
38 |
|
39 |
src_prepare() { |
40 |
epatch "$FILESDIR"/$PN-0.8.4-tinfo.patch |
41 |
+ epatch "$FILESDIR"/$PN-0.0.8-fno-common.patch |
42 |
eautoreconf |
43 |
} |
44 |
|
45 |
|
46 |
diff --git a/media-radio/ax25-apps/files/ax25-apps-0.0.8-fno-common.patch b/media-radio/ax25-apps/files/ax25-apps-0.0.8-fno-common.patch |
47 |
new file mode 100644 |
48 |
index 00000000000..1ea5c779ff3 |
49 |
--- /dev/null |
50 |
+++ b/media-radio/ax25-apps/files/ax25-apps-0.0.8-fno-common.patch |
51 |
@@ -0,0 +1,87 @@ |
52 |
+diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c |
53 |
+index 461147d..e85b44d 100644 |
54 |
+--- a/ax25ipd/ax25ipd.c |
55 |
++++ b/ax25ipd/ax25ipd.c |
56 |
+@@ -35,6 +35,25 @@ int opt_help = 0; |
57 |
+ char opt_configfile[PATH_MAX]; |
58 |
+ char opt_ttydevice[PATH_MAX]; |
59 |
+ |
60 |
++struct stats_s stats; |
61 |
++ |
62 |
++int udp_mode; |
63 |
++int ip_mode; |
64 |
++unsigned short my_udp; |
65 |
++char ttydevice[PATH_MAX]; |
66 |
++int ttyspeed; |
67 |
++signed char mycallsign[7]; |
68 |
++unsigned char mycallsign2[7]; |
69 |
++unsigned char myalias[7]; |
70 |
++unsigned char myalias2[7]; |
71 |
++char bc_text[128]; |
72 |
++int bc_interval; |
73 |
++int bc_every; |
74 |
++ |
75 |
++int digi; |
76 |
++int loglevel; |
77 |
++int dual_port; |
78 |
++ |
79 |
+ struct option options[] = { |
80 |
+ {"version", 0, NULL, 'v'}, |
81 |
+ {"loglevel", 1, NULL, 'l'}, |
82 |
+diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h |
83 |
+index b088247..367024b 100644 |
84 |
+--- a/ax25ipd/ax25ipd.h |
85 |
++++ b/ax25ipd/ax25ipd.h |
86 |
+@@ -72,24 +72,25 @@ |
87 |
+ #include <sys/types.h> |
88 |
+ #include <netax25/daemon.h> |
89 |
+ |
90 |
+-int udp_mode; /* true if we need a UDP socket */ |
91 |
+-int ip_mode; /* true if we need the raw IP socket */ |
92 |
+-unsigned short my_udp; /* the UDP port to use (network byte order) */ |
93 |
+-char ttydevice[PATH_MAX]; /* the tty device for serial comms */ |
94 |
+-int ttyspeed; /* The baud rate on the tty device */ |
95 |
+-unsigned char mycallsign[7]; /* My callsign, shifted ASCII with SSID */ |
96 |
+-unsigned char mycallsign2[7]; /* My seconds port callsign, shifted ASCII with SSID */ |
97 |
+-unsigned char myalias[7]; /* An alias to use */ |
98 |
+-unsigned char myalias2[7]; /* An alias for second port */ |
99 |
+-char bc_text[128]; /* The text for beacon messages */ |
100 |
+-int bc_interval; /* The interval, in seconds, between beacons */ |
101 |
+-int bc_every; /* true=every, false=after */ |
102 |
+-int digi; /* True if we are connected to a TNC */ |
103 |
+-int loglevel; /* Verbosity level */ |
104 |
++extern int udp_mode; /* true if we need a UDP socket */ |
105 |
++extern int ip_mode; /* true if we need the raw IP socket */ |
106 |
++extern unsigned short my_udp; /* the UDP port to use (network byte order) */ |
107 |
++extern char ttydevice[PATH_MAX]; /* the tty device for serial comms */ |
108 |
++extern int ttyspeed; /* The baud rate on the tty device */ |
109 |
++extern signed char mycallsign[7]; /* My callsign, shifted ASCII with SSID */ |
110 |
++extern unsigned char mycallsign2[7]; /* My seconds port callsign, shifted ASCII with SSID */ |
111 |
++extern unsigned char myalias[7]; /* An alias to use */ |
112 |
++extern unsigned char myalias2[7]; /* An alias for second port */ |
113 |
++extern char bc_text[128]; /* The text for beacon messages */ |
114 |
++extern int bc_interval; /* The interval, in seconds, between beacons */ |
115 |
++extern int bc_every; /* true=every, false=after */ |
116 |
++ |
117 |
++extern int digi; /* True if we are connected to a TNC */ |
118 |
++extern int loglevel; /* Verbosity level */ |
119 |
+ /* addition for dual port flag */ |
120 |
+-int dual_port; |
121 |
++extern int dual_port; |
122 |
+ |
123 |
+-struct { |
124 |
++struct stats_s { |
125 |
+ int kiss_in; /* # packets received */ |
126 |
+ int kiss_toobig; /* packet too large */ |
127 |
+ int kiss_badtype; /* control byte non-zero */ |
128 |
+@@ -107,7 +108,9 @@ struct { |
129 |
+ int ip_tooshort; /* packet too short to be a valid frame */ |
130 |
+ int ip_not_for_me; /* packet not for me (in digi mode) */ |
131 |
+ int ip_i_am_dest; /* I am destination (in digi mode) */ |
132 |
+-} stats; |
133 |
++}; |
134 |
++ |
135 |
++extern struct stats_s stats; |
136 |
+ |
137 |
+ #define MAX_FRAME 2048 |
138 |
+ |