Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unrar/files/, app-arch/unrar/
Date: Mon, 25 Sep 2017 17:41:04
Message-Id: 1506361152.00f2e7b2f5cdd40bf9701c90a6e91bf48d97fa8a.whissi@gentoo
1 commit: 00f2e7b2f5cdd40bf9701c90a6e91bf48d97fa8a
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 25 17:39:12 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 25 17:39:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f2e7b2
7
8 app-arch/unrar: Security cleanup
9
10 Bug: https://bugs.gentoo.org/628182
11 Package-Manager: Portage-2.3.10, Repoman-2.3.3
12
13 app-arch/unrar/Manifest | 4 --
14 app-arch/unrar/files/unrar-5.0.2-build.patch | 45 ---------------
15 .../unrar/files/unrar-5.2.2-no-auto-clean.patch | 17 ------
16 app-arch/unrar/unrar-5.4.5.ebuild | 62 ---------------------
17 app-arch/unrar/unrar-5.5.5-r1.ebuild | 65 ----------------------
18 app-arch/unrar/unrar-5.5.6.ebuild | 65 ----------------------
19 app-arch/unrar/unrar-5.5.7.ebuild | 65 ----------------------
20 7 files changed, 323 deletions(-)
21
22 diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest
23 index 2d53e4f0cac..f015d91f09b 100644
24 --- a/app-arch/unrar/Manifest
25 +++ b/app-arch/unrar/Manifest
26 @@ -1,5 +1 @@
27 -DIST unrar-5.5.5.tar.gz 220377 SHA256 a4553839cb2f025d0d9c5633816a83a723e3938209f17620c8c15da06ed061ef SHA512 b0979641737e3ef18f6708cc19e335c312ac5c6e2a13206d5fed9a5564ac99042c45a842da95163e53c6415131a39a91e901aeb186016da2e3781164679a07ff WHIRLPOOL e22399e866fabeb6f0c1617ca6b8852cf1bd406c0e95e5480692fe33bed9a130dd678f93dde6401015928437b99949865a80b21774788fdb1c7a12e3175560f4
28 -DIST unrar-5.5.6.tar.gz 221099 SHA256 68a9d8f40c709b883bb15b21a9811907e56a07411d90aeaa992622ed9cf128c0 SHA512 591575ba573e7f1b658041595b8439c7f1f60d354bc2b0a6aa9d3be6340d4892b2752e8ce94a928cf0270a0e1c491ce3ee59b3c36167174c53cfd657b9c85837 WHIRLPOOL 5c43856c418fffccc1fe1202441b628a1491dc94873643044c9791947ebfeb21e281231c6ccacaa80df512d6f62cb9d0d1f555d53c1b7e2cae280e65ad8558d0
29 -DIST unrar-5.5.7.tar.gz 222293 SHA256 8aef0a0d91bf9c9ac48fab8a26049ac7ac49907e75a2dcbd511a4ba375322d8f SHA512 7dfad639df1f64db662a24b79fe77c7085096ad1d63de8f3e6ed01082334ac83e7bdf0572d2137e5fc11e261491da55b579b6fc50933a4cb3569c7fe972be5db WHIRLPOOL 94208650cc3e63fa5b121f3c2fe2d1c985a1d94589e4b57c13e2112b81c1ad959c4e5d149d4193b61cef98805ae1fecd88e80093ac0affd1b7769fc1e0121f99
30 DIST unrar-5.5.8.tar.gz 222285 SHA256 9b66e4353a9944bc140eb2a919ff99482dd548f858f5e296d809e8f7cdb2fcf4 SHA512 9eac83707fa47a03925e5f3e8adf47889064d748304b732d12a2d379ab525b441f1aa33216377d4ef445f45c4e8ad73d2cd0b560601ceac344c60571b77fd6aa WHIRLPOOL 3e96f6073c93b28089b53f2b39016a98d0ffe243c7cb6262bf6bc0bac95daba005279f0c0d8a7fd717443891e932a4c0d31c19a02b9a5438ddc570f3812e2687
31 -DIST unrarsrc-5.4.5.tar.gz 226320 SHA256 e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c SHA512 ba2abf11638b5ee026cb9e0c3576c94376a01ab3c5411b9bd0e8116d64879c81e76df16f98d850f0f0f5387dda046f38be64ddfb4fe57431cc4d97066d6e3c2f WHIRLPOOL c8e035ec183f41d8faf8345b49d2a4d20e21f9c6e27f14d7794389942df4954cd66ab4a5be2fdff6d369b514ae99d5d015f35a36143d686563b2a8efdfc77dce
32
33 diff --git a/app-arch/unrar/files/unrar-5.0.2-build.patch b/app-arch/unrar/files/unrar-5.0.2-build.patch
34 deleted file mode 100644
35 index 61de7ee0689..00000000000
36 --- a/app-arch/unrar/files/unrar-5.0.2-build.patch
37 +++ /dev/null
38 @@ -1,45 +0,0 @@
39 -do not let these targets depend on clean, otherwise it could run in
40 -parallel with the object compile which runs into races
41 -https://bugs.gentoo.org/461806
42 -
43 -While we're in here, fix up a few other things:
44 - - append -pthread to LDFLAGS instead of replacing them
45 - - do not bother with `rm` in the output since linking will clober it
46 - - use CXXFLAGS when linking
47 - - append LIBFLAGS to the individual targets instead of the final link
48 -
49 ---- a/makefile
50 -+++ b/makefile
51 -@@ -7,7 +7,7 @@
52 - LIBFLAGS=-fPIC
53 - DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
54 - STRIP=strip
55 --LDFLAGS=-pthread
56 -+LDFLAGS+=-pthread
57 - DESTDIR=/usr
58 -
59 - # Linux using LCC
60 -@@ -119,8 +119,7 @@
61 - @rm -f *.o *.bak *~
62 -
63 - unrar: clean $(OBJECTS) $(UNRAR_OBJ)
64 -- @rm -f unrar
65 -- $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
66 -+ $(LINK) -o unrar $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
67 - $(STRIP) unrar
68 -
69 - sfx: WHAT=SFX_MODULE
70 -@@ -130,10 +129,9 @@
71 - $(STRIP) default.sfx
72 -
73 - lib: WHAT=RARDLL
74 --lib: CXXFLAGS+=$(LIBFLAGS)
75 --lib: clean $(OBJECTS) $(LIB_OBJ)
76 -- @rm -f libunrar.so
77 -- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
78 -+$(OBJECTS) $(LIB_OBJ): CXXFLAGS+=$(LIBFLAGS)
79 -+lib: $(OBJECTS) $(LIB_OBJ)
80 -+ $(LINK) -shared -o libunrar.so $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
81 -
82 - install-unrar:
83 - install -D unrar $(DESTDIR)/bin/unrar
84
85 diff --git a/app-arch/unrar/files/unrar-5.2.2-no-auto-clean.patch b/app-arch/unrar/files/unrar-5.2.2-no-auto-clean.patch
86 deleted file mode 100644
87 index ff78363cd5c..00000000000
88 --- a/app-arch/unrar/files/unrar-5.2.2-no-auto-clean.patch
89 +++ /dev/null
90 @@ -1,17 +0,0 @@
91 -if clean runs in parallel with $(OBJECTS), it is possible to build some
92 -objects first, then the clean target fires and deletes some, and then we
93 -try to link and fail.
94 -
95 -https://bugs.gentoo.org/528218
96 -
97 ---- a/makefile
98 -+++ b/makefile
99 -@@ -118,7 +118,7 @@
100 - clean:
101 - @rm -f *.o *.bak *~
102 -
103 --unrar: clean $(OBJECTS) $(UNRAR_OBJ)
104 -+unrar: $(OBJECTS) $(UNRAR_OBJ)
105 - $(LINK) -o unrar $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
106 - $(STRIP) unrar
107 -
108
109 diff --git a/app-arch/unrar/unrar-5.4.5.ebuild b/app-arch/unrar/unrar-5.4.5.ebuild
110 deleted file mode 100644
111 index fe4cf6daf3f..00000000000
112 --- a/app-arch/unrar/unrar-5.4.5.ebuild
113 +++ /dev/null
114 @@ -1,62 +0,0 @@
115 -# Copyright 1999-2017 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -EAPI="5"
119 -
120 -inherit eutils flag-o-matic multilib toolchain-funcs
121 -
122 -MY_PN=${PN}src
123 -
124 -DESCRIPTION="Uncompress rar files"
125 -HOMEPAGE="http://www.rarlab.com/rar_add.htm"
126 -SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz"
127 -
128 -LICENSE="unRAR"
129 -SLOT="0"
130 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
131 -IUSE=""
132 -
133 -RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
134 -
135 -S=${WORKDIR}/unrar
136 -
137 -src_prepare() {
138 - epatch "${FILESDIR}"/${PN}-5.0.2-build.patch
139 - epatch "${FILESDIR}"/${PN}-5.2.2-no-auto-clean.patch #528218
140 - local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
141 - if [[ ${CHOST} == *-darwin* ]] ; then
142 - sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
143 - else
144 - sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
145 - fi
146 - sed -i "${sed_args[@]}" makefile || die
147 -}
148 -
149 -src_configure() {
150 - mkdir -p build-{lib,bin}
151 - printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
152 - cp build-{lib,bin}/Makefile || die
153 -}
154 -
155 -src_compile() {
156 - unrar_make() {
157 - emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
158 - }
159 -
160 - unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
161 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
162 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
163 -
164 - unrar_make -C build-bin
165 -}
166 -
167 -src_install() {
168 - dobin build-bin/unrar
169 - dodoc readme.txt
170 -
171 - dolib.so build-lib/libunrar*
172 -
173 - insinto /usr/include/libunrar${PV%.*.*}
174 - doins *.hpp
175 - dosym libunrar${PV%.*.*} /usr/include/libunrar
176 -}
177
178 diff --git a/app-arch/unrar/unrar-5.5.5-r1.ebuild b/app-arch/unrar/unrar-5.5.5-r1.ebuild
179 deleted file mode 100644
180 index ad8683dcb7f..00000000000
181 --- a/app-arch/unrar/unrar-5.5.5-r1.ebuild
182 +++ /dev/null
183 @@ -1,65 +0,0 @@
184 -# Copyright 1999-2017 Gentoo Foundation
185 -# Distributed under the terms of the GNU General Public License v2
186 -
187 -EAPI="5"
188 -
189 -inherit eutils flag-o-matic multilib toolchain-funcs
190 -
191 -MY_PN=${PN}src
192 -
193 -DESCRIPTION="Uncompress rar files"
194 -HOMEPAGE="http://www.rarlab.com/rar_add.htm"
195 -SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
196 -
197 -LICENSE="unRAR"
198 -# subslot = soname version
199 -SLOT="0/5"
200 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
201 -IUSE=""
202 -
203 -RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
204 -
205 -S=${WORKDIR}/unrar
206 -
207 -src_prepare() {
208 - epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
209 - epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
210 - epatch_user
211 -
212 - local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
213 - if [[ ${CHOST} == *-darwin* ]] ; then
214 - sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
215 - else
216 - sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
217 - fi
218 - sed -i "${sed_args[@]}" makefile || die
219 -}
220 -
221 -src_configure() {
222 - mkdir -p build-{lib,bin}
223 - printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
224 - cp build-{lib,bin}/Makefile || die
225 -}
226 -
227 -src_compile() {
228 - unrar_make() {
229 - emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
230 - }
231 -
232 - unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
233 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
234 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
235 -
236 - unrar_make -C build-bin
237 -}
238 -
239 -src_install() {
240 - dobin build-bin/unrar
241 - dodoc readme.txt
242 -
243 - dolib.so build-lib/libunrar*
244 -
245 - insinto /usr/include/libunrar${PV%.*.*}
246 - doins *.hpp
247 - dosym libunrar${PV%.*.*} /usr/include/libunrar
248 -}
249
250 diff --git a/app-arch/unrar/unrar-5.5.6.ebuild b/app-arch/unrar/unrar-5.5.6.ebuild
251 deleted file mode 100644
252 index b12f73794fd..00000000000
253 --- a/app-arch/unrar/unrar-5.5.6.ebuild
254 +++ /dev/null
255 @@ -1,65 +0,0 @@
256 -# Copyright 1999-2017 Gentoo Foundation
257 -# Distributed under the terms of the GNU General Public License v2
258 -
259 -EAPI="5"
260 -
261 -inherit eutils flag-o-matic multilib toolchain-funcs
262 -
263 -MY_PN=${PN}src
264 -
265 -DESCRIPTION="Uncompress rar files"
266 -HOMEPAGE="http://www.rarlab.com/rar_add.htm"
267 -SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
268 -
269 -LICENSE="unRAR"
270 -# subslot = soname version
271 -SLOT="0/5"
272 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
273 -IUSE=""
274 -
275 -RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
276 -
277 -S=${WORKDIR}/unrar
278 -
279 -src_prepare() {
280 - epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
281 - epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
282 - epatch_user
283 -
284 - local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
285 - if [[ ${CHOST} == *-darwin* ]] ; then
286 - sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
287 - else
288 - sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
289 - fi
290 - sed -i "${sed_args[@]}" makefile || die
291 -}
292 -
293 -src_configure() {
294 - mkdir -p build-{lib,bin}
295 - printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
296 - cp build-{lib,bin}/Makefile || die
297 -}
298 -
299 -src_compile() {
300 - unrar_make() {
301 - emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
302 - }
303 -
304 - unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
305 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
306 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
307 -
308 - unrar_make -C build-bin
309 -}
310 -
311 -src_install() {
312 - dobin build-bin/unrar
313 - dodoc readme.txt
314 -
315 - dolib.so build-lib/libunrar*
316 -
317 - insinto /usr/include/libunrar${PV%.*.*}
318 - doins *.hpp
319 - dosym libunrar${PV%.*.*} /usr/include/libunrar
320 -}
321
322 diff --git a/app-arch/unrar/unrar-5.5.7.ebuild b/app-arch/unrar/unrar-5.5.7.ebuild
323 deleted file mode 100644
324 index 59433ff60c6..00000000000
325 --- a/app-arch/unrar/unrar-5.5.7.ebuild
326 +++ /dev/null
327 @@ -1,65 +0,0 @@
328 -# Copyright 1999-2017 Gentoo Foundation
329 -# Distributed under the terms of the GNU General Public License v2
330 -
331 -EAPI="5"
332 -
333 -inherit eutils flag-o-matic multilib toolchain-funcs
334 -
335 -MY_PN=${PN}src
336 -
337 -DESCRIPTION="Uncompress rar files"
338 -HOMEPAGE="http://www.rarlab.com/rar_add.htm"
339 -SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
340 -
341 -LICENSE="unRAR"
342 -# subslot = soname version
343 -SLOT="0/5"
344 -KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
345 -IUSE=""
346 -
347 -RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
348 -
349 -S=${WORKDIR}/unrar
350 -
351 -src_prepare() {
352 - epatch "${FILESDIR}"/${PN}-5.5.5-build.patch
353 - epatch "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
354 - epatch_user
355 -
356 - local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
357 - if [[ ${CHOST} == *-darwin* ]] ; then
358 - sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
359 - else
360 - sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
361 - fi
362 - sed -i "${sed_args[@]}" makefile || die
363 -}
364 -
365 -src_configure() {
366 - mkdir -p build-{lib,bin}
367 - printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
368 - cp build-{lib,bin}/Makefile || die
369 -}
370 -
371 -src_compile() {
372 - unrar_make() {
373 - emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
374 - }
375 -
376 - unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
377 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
378 - ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
379 -
380 - unrar_make -C build-bin
381 -}
382 -
383 -src_install() {
384 - dobin build-bin/unrar
385 - dodoc readme.txt
386 -
387 - dolib.so build-lib/libunrar*
388 -
389 - insinto /usr/include/libunrar${PV%.*.*}
390 - doins *.hpp
391 - dosym libunrar${PV%.*.*} /usr/include/libunrar
392 -}