1 |
commit: c6e340c732c5ef61880193a55a9037c8cbe8331f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 16:53:54 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 16:53:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6e340c7 |
7 |
|
8 |
media-sound/pwavecat: Fix building under -fno-common |
9 |
|
10 |
* Fix sandbox issue introduced by commit ba033ea82276709866cfa58a301f524ad9955f72 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/656634 |
13 |
Closes: https://bugs.gentoo.org/707194 |
14 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
.../pwavecat/files/pwavecat-0.4.5-Makefile.patch | 27 +++++++++ |
18 |
.../pwavecat/files/pwavecat-0.4.5-fno-common.patch | 65 ++++++++++++++++++++++ |
19 |
.../pwavecat/files/pwavecat-0.4.5-overflow.patch | 2 - |
20 |
.../pwavecat/files/pwavecat-0.4.5-version.patch | 11 ++++ |
21 |
media-sound/pwavecat/files/pwavecat-0.4.5.diff | 27 --------- |
22 |
media-sound/pwavecat/pwavecat-0.4.5.ebuild | 21 +++---- |
23 |
6 files changed, 114 insertions(+), 39 deletions(-) |
24 |
|
25 |
diff --git a/media-sound/pwavecat/files/pwavecat-0.4.5-Makefile.patch b/media-sound/pwavecat/files/pwavecat-0.4.5-Makefile.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..c46bbc6ef10 |
28 |
--- /dev/null |
29 |
+++ b/media-sound/pwavecat/files/pwavecat-0.4.5-Makefile.patch |
30 |
@@ -0,0 +1,27 @@ |
31 |
+--- a/Makefile |
32 |
++++ b/Makefile |
33 |
+@@ -2,7 +2,7 @@ |
34 |
+ #CC=/usr/local/bin/gcc |
35 |
+ |
36 |
+ |
37 |
+-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
38 |
++CFLAGS += -Wall |
39 |
+ |
40 |
+ LIBRARY = |
41 |
+ |
42 |
+@@ -14,14 +14,8 @@ |
43 |
+ pwavecat.o \ |
44 |
+ parts.o |
45 |
+ |
46 |
+-all: |
47 |
+- gcc $(CFLAGS) -c $(SRC1) |
48 |
+- |
49 |
+- gcc -o pwavecat $(OBJECT1) $(LIBRARY) |
50 |
+- |
51 |
+ # DEPENDENCIES |
52 |
+-pwavecat.o : pwavecat.c pwavecat.h pwavecat_proto.h parts.h wave_header.h |
53 |
+-parts.o : parts.c parts.h pwavecat.h pwavecat_proto.h wave_header.h |
54 |
++pwavecat: parts.o |
55 |
+ |
56 |
+ install: |
57 |
+ cp pwavecat /usr/local/bin/ |
58 |
|
59 |
diff --git a/media-sound/pwavecat/files/pwavecat-0.4.5-fno-common.patch b/media-sound/pwavecat/files/pwavecat-0.4.5-fno-common.patch |
60 |
new file mode 100644 |
61 |
index 00000000000..7fb567e0425 |
62 |
--- /dev/null |
63 |
+++ b/media-sound/pwavecat/files/pwavecat-0.4.5-fno-common.patch |
64 |
@@ -0,0 +1,65 @@ |
65 |
+--- a/parts.c |
66 |
++++ b/parts.c |
67 |
+@@ -19,6 +19,7 @@ |
68 |
+ |
69 |
+ #include "pwavecat.h" |
70 |
+ |
71 |
++struct part *parttab[2]; |
72 |
+ |
73 |
+ struct part *lookup_part(char *name) |
74 |
+ { |
75 |
+--- a/parts.h |
76 |
++++ b/parts.h |
77 |
+@@ -12,7 +12,7 @@ |
78 |
+ struct part *nxtentr; |
79 |
+ struct part *prventr; |
80 |
+ }; |
81 |
+-struct part *parttab[2]; |
82 |
++extern struct part *parttab[2]; |
83 |
+ /* first element points to first entry, second element to last entry */ |
84 |
+ |
85 |
+ #endif /* _PARTS_H_ */ |
86 |
+--- a/pwavecat.c |
87 |
++++ b/pwavecat.c |
88 |
+@@ -38,6 +38,9 @@ |
89 |
+ // DWORD data_length; /* length of data */ |
90 |
+ // } wave_header; |
91 |
+ |
92 |
++int debug_flag; |
93 |
++int verbose_flag; |
94 |
++ |
95 |
+ int modus; |
96 |
+ int sample_fq; |
97 |
+ int byte_p_sec; |
98 |
+--- a/pwavecat.h |
99 |
++++ b/pwavecat.h |
100 |
+@@ -12,20 +12,20 @@ |
101 |
+ #include "wave_header.h" |
102 |
+ #include "parts.h" |
103 |
+ |
104 |
+-int debug_flag; |
105 |
+-int verbose_flag; |
106 |
++extern int debug_flag; |
107 |
++extern int verbose_flag; |
108 |
+ |
109 |
+-int sample_fq; |
110 |
+-int byte_p_sec; |
111 |
+-int byte_p_spl; |
112 |
+-int bit_p_spl; |
113 |
+-int modus; |
114 |
+-int have_format_flag; // set if first wave header is read, now file format is set. |
115 |
++extern int sample_fq; |
116 |
++extern int byte_p_sec; |
117 |
++extern int byte_p_spl; |
118 |
++extern int bit_p_spl; |
119 |
++extern int modus; |
120 |
++extern int have_format_flag; // set if first wave header is read, now file format is set. |
121 |
+ |
122 |
+ #define MAX_FILES 100 |
123 |
+ #define BUFFER_SIZE 65536 |
124 |
+ |
125 |
+-char *input_filename[MAX_FILES]; |
126 |
++extern char *input_filename[MAX_FILES]; |
127 |
+ |
128 |
+ #define VERSION "0.4.5" |
129 |
+ |
130 |
|
131 |
diff --git a/media-sound/pwavecat/files/pwavecat-0.4.5-overflow.patch b/media-sound/pwavecat/files/pwavecat-0.4.5-overflow.patch |
132 |
index f3d54221bc7..12db68a57cf 100644 |
133 |
--- a/media-sound/pwavecat/files/pwavecat-0.4.5-overflow.patch |
134 |
+++ b/media-sound/pwavecat/files/pwavecat-0.4.5-overflow.patch |
135 |
@@ -1,5 +1,3 @@ |
136 |
-diff --git a/parts.c b/parts.c |
137 |
-index 670d0d5..a59ad98 100644 |
138 |
--- a/parts.c |
139 |
+++ b/parts.c |
140 |
@@ -338,10 +338,10 @@ if(! file_header) |
141 |
|
142 |
diff --git a/media-sound/pwavecat/files/pwavecat-0.4.5-version.patch b/media-sound/pwavecat/files/pwavecat-0.4.5-version.patch |
143 |
new file mode 100644 |
144 |
index 00000000000..07e263b13be |
145 |
--- /dev/null |
146 |
+++ b/media-sound/pwavecat/files/pwavecat-0.4.5-version.patch |
147 |
@@ -0,0 +1,11 @@ |
148 |
+--- a/pwavecat.h |
149 |
++++ b/pwavecat.h |
150 |
+@@ -27,7 +27,7 @@ |
151 |
+ |
152 |
+ char *input_filename[MAX_FILES]; |
153 |
+ |
154 |
+-#define VERSION "0.4.4" |
155 |
++#define VERSION "0.4.5" |
156 |
+ |
157 |
+ #endif /* _PWAVECAT_H_ */ |
158 |
+ |
159 |
|
160 |
diff --git a/media-sound/pwavecat/files/pwavecat-0.4.5.diff b/media-sound/pwavecat/files/pwavecat-0.4.5.diff |
161 |
deleted file mode 100644 |
162 |
index abe00c69dae..00000000000 |
163 |
--- a/media-sound/pwavecat/files/pwavecat-0.4.5.diff |
164 |
+++ /dev/null |
165 |
@@ -1,27 +0,0 @@ |
166 |
-diff -Naur pwavecat-0.4.5.orig/Makefile pwavecat-0.4.5/Makefile |
167 |
---- pwavecat-0.4.5.orig/Makefile 2005-10-06 15:52:56.000000000 +0200 |
168 |
-+++ pwavecat-0.4.5/Makefile 2007-10-06 16:27:25.000000000 +0200 |
169 |
-@@ -15,9 +15,9 @@ |
170 |
- parts.o |
171 |
- |
172 |
- all: |
173 |
-- gcc $(CFLAGS) -c $(SRC1) |
174 |
-+ $(CC) $(CFLAGS) -c $(SRC1) |
175 |
- |
176 |
-- gcc -o pwavecat $(OBJECT1) $(LIBRARY) |
177 |
-+ $(CC) $(LDFLAGS) -o pwavecat $(OBJECT1) $(LIBRARY) |
178 |
- |
179 |
- # DEPENDENCIES |
180 |
- pwavecat.o : pwavecat.c pwavecat.h pwavecat_proto.h parts.h wave_header.h |
181 |
-diff -Naur pwavecat-0.4.5.orig/pwavecat.h pwavecat-0.4.5/pwavecat.h |
182 |
---- pwavecat-0.4.5.orig/pwavecat.h 2005-10-06 15:52:56.000000000 +0200 |
183 |
-+++ pwavecat-0.4.5/pwavecat.h 2007-10-06 16:27:50.000000000 +0200 |
184 |
-@@ -27,7 +27,7 @@ |
185 |
- |
186 |
- char *input_filename[MAX_FILES]; |
187 |
- |
188 |
--#define VERSION "0.4.4" |
189 |
-+#define VERSION "0.4.5" |
190 |
- |
191 |
- #endif /* _PWAVECAT_H_ */ |
192 |
- |
193 |
|
194 |
diff --git a/media-sound/pwavecat/pwavecat-0.4.5.ebuild b/media-sound/pwavecat/pwavecat-0.4.5.ebuild |
195 |
index 21a4580caba..f49e51ba3f3 100644 |
196 |
--- a/media-sound/pwavecat/pwavecat-0.4.5.ebuild |
197 |
+++ b/media-sound/pwavecat/pwavecat-0.4.5.ebuild |
198 |
@@ -1,9 +1,9 @@ |
199 |
-# Copyright 1999-2018 Gentoo Foundation |
200 |
+# Copyright 1999-2020 Gentoo Authors |
201 |
# Distributed under the terms of the GNU General Public License v2 |
202 |
|
203 |
-EAPI=6 |
204 |
+EAPI=7 |
205 |
|
206 |
-inherit toolchain-funcs flag-o-matic |
207 |
+inherit flag-o-matic toolchain-funcs |
208 |
|
209 |
DESCRIPTION="concatenates any number of audio files to stdout" |
210 |
HOMEPAGE="http://panteltje.com/panteltje/dvd/" |
211 |
@@ -12,19 +12,20 @@ SRC_URI="http://panteltje.com/panteltje/dvd/${P}.tgz" |
212 |
LICENSE="GPL-2" |
213 |
SLOT="0" |
214 |
KEYWORDS="~amd64 ~x86" |
215 |
-IUSE="" |
216 |
|
217 |
PATCHES=( |
218 |
- "${FILESDIR}/${P}.diff" |
219 |
- "${FILESDIR}/${P}-overflow.patch" |
220 |
+ "${FILESDIR}"/${P}-Makefile.patch |
221 |
+ "${FILESDIR}"/${P}-version.patch |
222 |
+ "${FILESDIR}"/${P}-overflow.patch |
223 |
+ "${FILESDIR}"/${P}-fno-common.patch |
224 |
) |
225 |
|
226 |
-src_compile() { |
227 |
- append-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE |
228 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
229 |
+src_configure() { |
230 |
+ append-lfs-flags |
231 |
+ tc-export CC |
232 |
} |
233 |
|
234 |
src_install() { |
235 |
dobin pwavecat |
236 |
- default |
237 |
+ einstalldocs |
238 |
} |