1 |
commit: ebc4ea42dfa99e5efe6d30110a40e0bc52970f51 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 20 23:46:54 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 20 23:46:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebc4ea42 |
7 |
|
8 |
net-dialup/minicom: tweak for gcc-10, bug #705836 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/705836 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
.../minicom/files/minicom-2.7.1-gcc-10.patch | 31 ++++++++++++++++++++++ |
15 |
net-dialup/minicom/minicom-2.7.1.ebuild | 1 + |
16 |
2 files changed, 32 insertions(+) |
17 |
|
18 |
diff --git a/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch b/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..43e057ce1fe |
21 |
--- /dev/null |
22 |
+++ b/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch |
23 |
@@ -0,0 +1,31 @@ |
24 |
+https://bugs.gentoo.org/705836 |
25 |
+--- a/src/minicom.h |
26 |
++++ b/src/minicom.h |
27 |
+@@ -109,13 +109,13 @@ EXTERN char *dial_tty; /* tty to use. */ |
28 |
+ |
29 |
+ EXTERN char *dial_name; /* System we're conneced to */ |
30 |
+ EXTERN char *dial_number; /* Number we've dialed. */ |
31 |
+-EXTERN char *dial_user; /* Our username there */ |
32 |
+-EXTERN char *dial_pass; /* Our password */ |
33 |
++extern char *dial_user; /* Our username there */ |
34 |
++extern char *dial_pass; /* Our password */ |
35 |
+ |
36 |
+ #ifdef USE_SOCKET |
37 |
+-EXTERN int portfd_is_socket; /* File descriptor is a unix socket */ |
38 |
+-EXTERN int portfd_is_connected; /* 1 if the socket is connected */ |
39 |
+-EXTERN struct sockaddr_un portfd_sock_addr; /* the unix socket address */ |
40 |
++extern int portfd_is_socket; /* File descriptor is a unix socket */ |
41 |
++extern int portfd_is_connected; /* 1 if the socket is connected */ |
42 |
++extern struct sockaddr_un portfd_sock_addr; /* the unix socket address */ |
43 |
+ #define portfd_connected ((portfd_is_socket && !portfd_is_connected) \ |
44 |
+ ? -1 : portfd) |
45 |
+ #else |
46 |
+@@ -141,7 +141,7 @@ EXTERN int sbcolor; /* Status Bar Background Color */ |
47 |
+ EXTERN int st_attr; /* Status Bar attributes. */ |
48 |
+ |
49 |
+ /* jl 04.09.97 conversion tables */ |
50 |
+-EXTERN unsigned char vt_outmap[256], vt_inmap[256]; |
51 |
++extern unsigned char vt_outmap[256], vt_inmap[256]; |
52 |
+ |
53 |
+ /* MARK updated 02/17/95 - history buffer */ |
54 |
+ EXTERN int num_hist_lines; /* History buffer size */ |
55 |
|
56 |
diff --git a/net-dialup/minicom/minicom-2.7.1.ebuild b/net-dialup/minicom/minicom-2.7.1.ebuild |
57 |
index 784ed24db87..818170257cb 100644 |
58 |
--- a/net-dialup/minicom/minicom-2.7.1.ebuild |
59 |
+++ b/net-dialup/minicom/minicom-2.7.1.ebuild |
60 |
@@ -25,6 +25,7 @@ S="${WORKDIR}/${PN}-2.7" # 2.7.1 specific |
61 |
PATCHES=( |
62 |
"${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch |
63 |
"${FILESDIR}"/${PN}-2.7-lockdir.patch |
64 |
+ "${FILESDIR}"/${PN}-2.7.1-gcc-10.patch |
65 |
) |
66 |
|
67 |
src_prepare() { |