Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsoundtouch/files/, media-libs/libsoundtouch/
Date: Sun, 28 Apr 2019 22:41:42
Message-Id: 1556491048.3f26b6033bd89128e578cba62137b82c31cbf62d.pacho@gentoo
1 commit: 3f26b6033bd89128e578cba62137b82c31cbf62d
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 22:37:28 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 22:37:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f26b603
7
8 media-libs/libsoundtouch: Drop old
9
10 Package-Manager: Portage-2.3.64, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 media-libs/libsoundtouch/Manifest | 2 -
14 .../files/libsoundtouch-2.0.0-CVE-2017-92xx.patch | 36 --------------
15 .../libsoundtouch/libsoundtouch-2.0.0-r1.ebuild | 56 ----------------------
16 .../libsoundtouch/libsoundtouch-2.1.1.ebuild | 55 ---------------------
17 4 files changed, 149 deletions(-)
18
19 diff --git a/media-libs/libsoundtouch/Manifest b/media-libs/libsoundtouch/Manifest
20 index 0789f3c11c1..55a0c1bbc2c 100644
21 --- a/media-libs/libsoundtouch/Manifest
22 +++ b/media-libs/libsoundtouch/Manifest
23 @@ -1,3 +1 @@
24 -DIST soundtouch-2.0.0.tar.gz 455148 BLAKE2B e38358b0b773edc03a1b227222418d1e79a97f7a1c7abd22f2cb96bb2a7e3427802214775c908329eeec87710b4d199fba819ad7b99f3d58071749cf372991a1 SHA512 c916bdd2cb3d7547f264b1caf09b739b48a161c8c6288c3893fc97379546ed6b41dafaf603b583fbf64ae91270fdeb90811e5b0df0e9c051dc9f6ddca4d319f9
25 -DIST soundtouch-2.1.1.tar.bz2 526206 BLAKE2B bc5d2edef5ae7d297cd017968fb1206d14306c117a847ba34090dcd284a174edcc8f4694be4a98fee7a7d100e7a912e81c2e14a998a22ab2c50eb0d27ca823f7 SHA512 9272141e5c1a4def7356add524d861f2c78eb9574ebca2bab3a57190821fb1eb5c85624aa7b31d90ada38a5165bafd8445f6fdd51e2b3a262ca9a2f2db35a9aa
26 DIST soundtouch-2.1.2.tar.bz2 526281 BLAKE2B f15f004fd6abdf4cd6fdb842c650480c670a517c6d94365633a7cc4beb95447d7a8bee965d4b258da6c31630e370e3c1c1fc73abfe8568ace465ce41a87397cf SHA512 d45cb0f94e3df32e9c76722a148f201277b2ddc3e390394c1f4ae1263f13557c6b664e90301b5f62d7561d743ab4903a44a34ab7248880b343d581cebd5f0cd9
27
28 diff --git a/media-libs/libsoundtouch/files/libsoundtouch-2.0.0-CVE-2017-92xx.patch b/media-libs/libsoundtouch/files/libsoundtouch-2.0.0-CVE-2017-92xx.patch
29 deleted file mode 100644
30 index 0e475a3e44e..00000000000
31 --- a/media-libs/libsoundtouch/files/libsoundtouch-2.0.0-CVE-2017-92xx.patch
32 +++ /dev/null
33 @@ -1,36 +0,0 @@
34 -Description: Fix CVE-2017-9258, CVE-2017-9259, CVE-2017-9260
35 - Based on an upstream commit, original commit message was: "Added sanity
36 - checks against illegal input audio stream parameters e.g. wildly excessive
37 - samplerate".
38 - .
39 - There is no reference to CVEs or bugs, the commit was made after disclosure
40 - of the CVEs and all three proofs of concept (crafted wav files) fail after
41 - this commit.
42 - .
43 - The commit was made after version 2.0.0, so that version is also vulnerable.
44 - .
45 - Unrelated changes were stripped away by patch author, upstream commit author
46 - is Olli Parviainen <oparviai@×××.fi>.
47 -Author: Gabor Karsay <gabor.karsay@×××.at>
48 -Origin: upstream, https://sourceforge.net/p/soundtouch/code/256/
49 -Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870854
50 -Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870856
51 -Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870857
52 ----
53 -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
54 ---- a/source/SoundTouch/TDStretch.cpp
55 -+++ b/source/SoundTouch/TDStretch.cpp
56 -@@ -128,7 +128,12 @@
57 - int aSeekWindowMS, int aOverlapMS)
58 - {
59 - // accept only positive parameter values - if zero or negative, use old values instead
60 -- if (aSampleRate > 0) this->sampleRate = aSampleRate;
61 -+ if (aSampleRate > 0)
62 -+ {
63 -+ if (aSampleRate > 192000) ST_THROW_RT_ERROR("Error: Excessive samplerate");
64 -+ this->sampleRate = aSampleRate;
65 -+ }
66 -+
67 - if (aOverlapMS > 0) this->overlapMs = aOverlapMS;
68 -
69 - if (aSequenceMS > 0)
70
71 diff --git a/media-libs/libsoundtouch/libsoundtouch-2.0.0-r1.ebuild b/media-libs/libsoundtouch/libsoundtouch-2.0.0-r1.ebuild
72 deleted file mode 100644
73 index e57c4115a6f..00000000000
74 --- a/media-libs/libsoundtouch/libsoundtouch-2.0.0-r1.ebuild
75 +++ /dev/null
76 @@ -1,56 +0,0 @@
77 -# Copyright 1999-2018 Gentoo Foundation
78 -# Distributed under the terms of the GNU General Public License v2
79 -
80 -EAPI=6
81 -
82 -MY_PN="${PN/lib}"
83 -inherit autotools flag-o-matic multilib-minimal
84 -
85 -DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates"
86 -HOMEPAGE="https://www.surina.net/soundtouch/"
87 -SRC_URI="https://www.surina.net/soundtouch/${P/lib}.tar.gz"
88 -
89 -LICENSE="LGPL-2.1"
90 -# subslot = libSoundTouch.so soname
91 -SLOT="0/1"
92 -KEYWORDS="amd64 ~arm hppa ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
93 -IUSE="cpu_flags_x86_sse openmp static-libs"
94 -
95 -DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
96 -
97 -S="${WORKDIR}/${MY_PN}"
98 -
99 -PATCHES=( "${FILESDIR}/${P}-CVE-2017-92xx.patch" )
100 -
101 -src_prepare() {
102 - default
103 - if use openmp ; then
104 - tc-has-openmp || die "Please switch to an openmp compatible compiler"
105 - fi
106 - sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die
107 - sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' configure.ac || die
108 - eautoreconf
109 -}
110 -
111 -multilib_src_configure() {
112 - local myeconfargs=(
113 - --enable-shared
114 - --disable-integer-samples
115 - $(use_enable cpu_flags_x86_sse x86-optimizations)
116 - $(use_enable openmp)
117 - $(use_enable static-libs static)
118 - )
119 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
120 -}
121 -
122 -multilib_src_compile() {
123 - emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
124 -}
125 -
126 -multilib_src_install() {
127 - emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install
128 -}
129 -
130 -multilib_src_install_all() {
131 - find "${D}" -name '*.la' -delete || die
132 -}
133
134 diff --git a/media-libs/libsoundtouch/libsoundtouch-2.1.1.ebuild b/media-libs/libsoundtouch/libsoundtouch-2.1.1.ebuild
135 deleted file mode 100644
136 index d9b61b4636a..00000000000
137 --- a/media-libs/libsoundtouch/libsoundtouch-2.1.1.ebuild
138 +++ /dev/null
139 @@ -1,55 +0,0 @@
140 -# Copyright 1999-2019 Gentoo Authors
141 -# Distributed under the terms of the GNU General Public License v2
142 -
143 -EAPI=7
144 -
145 -inherit autotools flag-o-matic multilib-minimal
146 -
147 -MY_PN=${PN/lib}
148 -MY_P=${MY_PN}-${PV}
149 -DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates"
150 -HOMEPAGE="https://www.surina.net/soundtouch/ https://gitlab.com/soundtouch/soundtouch"
151 -SRC_URI="https://gitlab.com/${MY_PN}/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2"
152 -
153 -LICENSE="LGPL-2.1"
154 -# subslot = libSoundTouch.so soname
155 -SLOT="0/1"
156 -KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
157 -IUSE="cpu_flags_x86_sse openmp static-libs"
158 -
159 -DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
160 -
161 -S="${WORKDIR}/${MY_P}"
162 -
163 -src_prepare() {
164 - default
165 - if use openmp ; then
166 - tc-has-openmp || die "Please switch to an openmp compatible compiler"
167 - fi
168 - sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die
169 - sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' configure.ac || die
170 - eautoreconf
171 -}
172 -
173 -multilib_src_configure() {
174 - local myeconfargs=(
175 - --enable-shared
176 - --disable-integer-samples
177 - $(use_enable cpu_flags_x86_sse x86-optimizations)
178 - $(use_enable openmp)
179 - $(use_enable static-libs static)
180 - )
181 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
182 -}
183 -
184 -multilib_src_compile() {
185 - emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
186 -}
187 -
188 -multilib_src_install() {
189 - emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install
190 -}
191 -
192 -multilib_src_install_all() {
193 - find "${D}" -name '*.la' -delete || die
194 -}