1 |
commit: 3d368209706cb3c0731262a873d61390f1044267 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 16:53:48 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 16:53:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d368209 |
7 |
|
8 |
media-sound/takcd: Fix building under -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707042 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../takcd/files/takcd-0.10-fno-common.patch | 44 ++++++++++++++++++++++ |
15 |
media-sound/takcd/takcd-0.10-r1.ebuild | 8 ++-- |
16 |
2 files changed, 49 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/media-sound/takcd/files/takcd-0.10-fno-common.patch b/media-sound/takcd/files/takcd-0.10-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..ec97e62eea3 |
21 |
--- /dev/null |
22 |
+++ b/media-sound/takcd/files/takcd-0.10-fno-common.patch |
23 |
@@ -0,0 +1,44 @@ |
24 |
+--- a/bsd_discid.c |
25 |
++++ b/bsd_discid.c |
26 |
+@@ -29,7 +29,7 @@ |
27 |
+ #include "config.h" |
28 |
+ |
29 |
+ const char *cdrom_device=DEV_CDROM; |
30 |
+-int cdrom_fd; |
31 |
++extern int cdrom_fd; |
32 |
+ |
33 |
+ int Discid_Init(void) { |
34 |
+ /* if ((cdrom_device = getenv("CD_DEVICE")) == NULL) { |
35 |
+--- a/darwin_discid.c |
36 |
++++ b/darwin_discid.c |
37 |
+@@ -29,7 +29,7 @@ |
38 |
+ #include "config.h" |
39 |
+ |
40 |
+ const char *cdrom_device=DEV_CDROM; |
41 |
+-int cdrom_fd; |
42 |
++extern int cdrom_fd; |
43 |
+ |
44 |
+ int Discid_Init(void) { |
45 |
+ /* if ((cdrom_device = getenv("CD_DEVICE")) == NULL) { |
46 |
+--- a/linux_discid.c |
47 |
++++ b/linux_discid.c |
48 |
+@@ -31,7 +31,7 @@ |
49 |
+ |
50 |
+ char *cdrom_device = NULL; |
51 |
+ |
52 |
+-int cdrom_fd; |
53 |
++extern int cdrom_fd; |
54 |
+ |
55 |
+ int Discid_Init(void) { |
56 |
+ /* if ((cdrom_device = getenv("CD_DEVICE")) == NULL) { |
57 |
+--- a/sun_discid.c |
58 |
++++ b/sun_discid.c |
59 |
+@@ -30,7 +30,7 @@ |
60 |
+ #include "config.h" |
61 |
+ |
62 |
+ const char *cdrom_device=DEV_CDROM; |
63 |
+-int cdrom_fd; |
64 |
++extern int cdrom_fd; |
65 |
+ |
66 |
+ int Discid_Init(void) { |
67 |
+ /* if ((cdrom_device = getenv("CD_DEVICE")) == NULL) { |
68 |
|
69 |
diff --git a/media-sound/takcd/takcd-0.10-r1.ebuild b/media-sound/takcd/takcd-0.10-r1.ebuild |
70 |
index 154fab65024..9bbbf114385 100644 |
71 |
--- a/media-sound/takcd/takcd-0.10-r1.ebuild |
72 |
+++ b/media-sound/takcd/takcd-0.10-r1.ebuild |
73 |
@@ -1,7 +1,7 @@ |
74 |
# Copyright 1999-2020 Gentoo Authors |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
|
77 |
-EAPI=6 |
78 |
+EAPI=7 |
79 |
|
80 |
inherit autotools |
81 |
|
82 |
@@ -12,9 +12,11 @@ SRC_URI="http://bard.sytes.net/takcd/${P}.tar.gz" |
83 |
LICENSE="GPL-2" |
84 |
SLOT="0" |
85 |
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc sparc x86" |
86 |
-IUSE="" |
87 |
|
88 |
-PATCHES=( "${FILESDIR}"/${P}-overflow.patch ) |
89 |
+PATCHES=( |
90 |
+ "${FILESDIR}"/${P}-overflow.patch |
91 |
+ "${FILESDIR}"/${P}-fno-common.patch |
92 |
+) |
93 |
|
94 |
src_prepare() { |
95 |
default |