1 |
commit: b660e18863d717f74dd968bc4895221055b1e42f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 07:25:46 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 07:26:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b660e188 |
7 |
|
8 |
dev-libs/crypto++: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-libs/crypto++/Manifest | 2 - |
14 |
dev-libs/crypto++/crypto++-5.6.5-r1.ebuild | 60 ---------------------- |
15 |
dev-libs/crypto++/crypto++-7.0.0-r3.ebuild | 48 ----------------- |
16 |
dev-libs/crypto++/crypto++-8.2.0.ebuild | 52 ------------------- |
17 |
.../crypto++/files/crypto++-5.6.4-nonative.patch | 28 ---------- |
18 |
.../files/crypto++-5.6.5-CVE-2017-9434.patch | 45 ---------------- |
19 |
6 files changed, 235 deletions(-) |
20 |
|
21 |
diff --git a/dev-libs/crypto++/Manifest b/dev-libs/crypto++/Manifest |
22 |
index 579f5052492..3b3e1db5c63 100644 |
23 |
--- a/dev-libs/crypto++/Manifest |
24 |
+++ b/dev-libs/crypto++/Manifest |
25 |
@@ -1,4 +1,2 @@ |
26 |
-DIST cryptopp565.zip 4220843 BLAKE2B 0c42da3564cdd175c2f2c5c4272caf826f21e47d2271c7f54acab86f5f79dcdad8d6cb946bc88f55fde6189bb2d24ad8fb03dda6b3b8c6f105434b55b8b217d0 SHA512 f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 |
27 |
-DIST cryptopp700.zip 7296665 BLAKE2B 1b1a60e240a9d94b4edfea16beef0ec48ec26c61f7f9a3d89d29bd2e77b13a83ce942f81467bb90d3086253560a3c4acd6b89178dcb416ed4328340ad5222dfd SHA512 8fd8d680e5ceaf10b3c32cb1504bda4b32abc9fcaa2c6e61e3b5e67aca805c792579884bc6a749c29a99105304c421d03d7fe7909fc58f750b3155c7c5cec8ec |
28 |
DIST cryptopp820.zip 8859815 BLAKE2B 67aa850b887ae7aa869c9485bb18784492f6eec6cb12bf7c7cf84c776731eabf3c31965b47a60287e4e5a79dd3e9f0928dcfb185a0010a76f7cb96d2c3e8c6ae SHA512 753513a4ec8dd0fff2f551853ce6bd265d82219c28b033565b565b5e567fbee17adb419f4cde58a97e62b7d6533f4099aa4996cd0ba4775c6a2e7ae63a879da5 |
29 |
DIST cryptopp830.zip 9120687 BLAKE2B 777ae6a0716793dbbf40594e5f910783852df15e1d6444ddb9505e9f00e6ead0c17fcf6eb5d0b4d58881595fefa79d285bd2db1f1789716ffb59624c50823c3d SHA512 ad5219a66c5924d330d3646d0ff996dd235006f6812074bc4eb9e8c662a4f000ba20449d377f24b133d19ce682f7b2a3b2eb4c08857ce0f5bb39743d1d425147 |
30 |
|
31 |
diff --git a/dev-libs/crypto++/crypto++-5.6.5-r1.ebuild b/dev-libs/crypto++/crypto++-5.6.5-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 0d60a1066e5..00000000000 |
34 |
--- a/dev-libs/crypto++/crypto++-5.6.5-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,60 +0,0 @@ |
37 |
-# Copyright 1999-2020 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
- |
42 |
-inherit flag-o-matic toolchain-funcs |
43 |
- |
44 |
-DESCRIPTION="C++ class library of cryptographic schemes" |
45 |
-HOMEPAGE="https://cryptopp.com" |
46 |
-SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" |
47 |
- |
48 |
-LICENSE="Boost-1.0" |
49 |
-SLOT="0/5.6" # subslot is so version |
50 |
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ppc ppc64 sparc x86 ~x64-macos" |
51 |
-IUSE="static-libs" |
52 |
- |
53 |
-BDEPEND="app-arch/unzip" |
54 |
- |
55 |
-S="${WORKDIR}" |
56 |
- |
57 |
-PATCHES=( |
58 |
- "${FILESDIR}/${PN}-5.6.4-nonative.patch" |
59 |
- "${FILESDIR}/${P}-CVE-2017-9434.patch" |
60 |
-) |
61 |
- |
62 |
-pkg_setup() { |
63 |
- export CXX="$(tc-getCXX)" |
64 |
- export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
65 |
- export PREFIX="${EPREFIX}/usr" |
66 |
-} |
67 |
- |
68 |
-src_compile() { |
69 |
- # higher optimizations cause problems |
70 |
- replace-flags -O3 -O2 |
71 |
- # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
72 |
- [[ ${CHOST} == *-darwin* ]] && append-cxxflags -DCRYPTOPP_DISABLE_ASM |
73 |
- |
74 |
- emake -f GNUmakefile all shared |
75 |
-} |
76 |
- |
77 |
-src_install() { |
78 |
- default |
79 |
- |
80 |
- # remove leftovers as build system sucks |
81 |
- rm -fr "${ED}"/usr/bin "${ED}"/usr/share/cryptopp |
82 |
- use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a |
83 |
- |
84 |
- # compatibility |
85 |
- dosym cryptopp "${EPREFIX}"/usr/include/crypto++ |
86 |
- for f in "${ED}"/usr/$(get_libdir)/*; do |
87 |
- ln -s "$(basename "${f}")" "$(echo "${f}" | sed 's/cryptopp/crypto++/')" || die |
88 |
- done |
89 |
-} |
90 |
- |
91 |
-pkg_preinst() { |
92 |
- # we switched directory to symlink |
93 |
- # make sure portage digests that |
94 |
- rm -fr "${EROOT}/usr/include/crypto++" |
95 |
- rm -fr "${EROOT}/usr/include/cryptopp" |
96 |
-} |
97 |
|
98 |
diff --git a/dev-libs/crypto++/crypto++-7.0.0-r3.ebuild b/dev-libs/crypto++/crypto++-7.0.0-r3.ebuild |
99 |
deleted file mode 100644 |
100 |
index f1d8bcbf44c..00000000000 |
101 |
--- a/dev-libs/crypto++/crypto++-7.0.0-r3.ebuild |
102 |
+++ /dev/null |
103 |
@@ -1,48 +0,0 @@ |
104 |
-# Copyright 1999-2020 Gentoo Authors |
105 |
-# Distributed under the terms of the GNU General Public License v2 |
106 |
- |
107 |
-EAPI=7 |
108 |
- |
109 |
-inherit toolchain-funcs |
110 |
- |
111 |
-DESCRIPTION="C++ class library of cryptographic schemes" |
112 |
-HOMEPAGE="https://cryptopp.com" |
113 |
-SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" |
114 |
- |
115 |
-LICENSE="Boost-1.0" |
116 |
-SLOT="0/7" # subslot is so version |
117 |
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ppc ppc64 sparc x86 ~x64-macos" |
118 |
-IUSE="+asm static-libs" |
119 |
- |
120 |
-BDEPEND="app-arch/unzip" |
121 |
- |
122 |
-S="${WORKDIR}" |
123 |
- |
124 |
-config_uncomment() { |
125 |
- sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die |
126 |
-} |
127 |
- |
128 |
-pkg_setup() { |
129 |
- export CXX="$(tc-getCXX)" |
130 |
- export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
131 |
- export PREFIX="${EPREFIX}/usr" |
132 |
-} |
133 |
- |
134 |
-src_prepare() { |
135 |
- default |
136 |
- |
137 |
- use asm || config_uncomment CRYPTOPP_DISABLE_ASM |
138 |
- |
139 |
- # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
140 |
- [[ ${CHOST} == *-darwin* ]] && config_uncomment CRYPTOPP_DISABLE_ASM |
141 |
-} |
142 |
- |
143 |
-src_compile() { |
144 |
- emake -f GNUmakefile all shared libcryptopp.pc |
145 |
-} |
146 |
- |
147 |
-src_install() { |
148 |
- default |
149 |
- |
150 |
- use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a |
151 |
-} |
152 |
|
153 |
diff --git a/dev-libs/crypto++/crypto++-8.2.0.ebuild b/dev-libs/crypto++/crypto++-8.2.0.ebuild |
154 |
deleted file mode 100644 |
155 |
index ec4e2485598..00000000000 |
156 |
--- a/dev-libs/crypto++/crypto++-8.2.0.ebuild |
157 |
+++ /dev/null |
158 |
@@ -1,52 +0,0 @@ |
159 |
-# Copyright 1999-2020 Gentoo Authors |
160 |
-# Distributed under the terms of the GNU General Public License v2 |
161 |
- |
162 |
-EAPI=7 |
163 |
- |
164 |
-inherit toolchain-funcs |
165 |
- |
166 |
-DESCRIPTION="C++ class library of cryptographic schemes" |
167 |
-HOMEPAGE="https://cryptopp.com" |
168 |
-SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" |
169 |
- |
170 |
-LICENSE="Boost-1.0" |
171 |
-SLOT="0/8" # subslot is so version |
172 |
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ppc ppc64 sparc x86 ~x64-macos" |
173 |
-IUSE="+asm static-libs" |
174 |
- |
175 |
-BDEPEND="app-arch/unzip" |
176 |
- |
177 |
-S="${WORKDIR}" |
178 |
- |
179 |
-PATCHES=( |
180 |
- "${FILESDIR}/${P}-build.patch" |
181 |
-) |
182 |
- |
183 |
-config_uncomment() { |
184 |
- sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die |
185 |
-} |
186 |
- |
187 |
-pkg_setup() { |
188 |
- export CXX="$(tc-getCXX)" |
189 |
- export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
190 |
- export PREFIX="${EPREFIX}/usr" |
191 |
-} |
192 |
- |
193 |
-src_prepare() { |
194 |
- default |
195 |
- |
196 |
- use asm || config_uncomment CRYPTOPP_DISABLE_ASM |
197 |
- |
198 |
- # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
199 |
- [[ ${CHOST} == *-darwin* ]] && config_uncomment CRYPTOPP_DISABLE_ASM |
200 |
-} |
201 |
- |
202 |
-src_compile() { |
203 |
- emake -f GNUmakefile all shared libcryptopp.pc |
204 |
-} |
205 |
- |
206 |
-src_install() { |
207 |
- default |
208 |
- |
209 |
- use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a |
210 |
-} |
211 |
|
212 |
diff --git a/dev-libs/crypto++/files/crypto++-5.6.4-nonative.patch b/dev-libs/crypto++/files/crypto++-5.6.4-nonative.patch |
213 |
deleted file mode 100644 |
214 |
index 77d74ee729e..00000000000 |
215 |
--- a/dev-libs/crypto++/files/crypto++-5.6.4-nonative.patch |
216 |
+++ /dev/null |
217 |
@@ -1,28 +0,0 @@ |
218 |
-Index: work/GNUmakefile |
219 |
-=================================================================== |
220 |
---- work.orig/GNUmakefile |
221 |
-+++ work/GNUmakefile |
222 |
-@@ -125,23 +125,6 @@ ifeq ($(IS_X86)$(IS_X32)$(IS_CYGWIN)$(IS |
223 |
- endif |
224 |
- endif |
225 |
- |
226 |
--# Guard use of -march=native |
227 |
--ifeq ($(GCC42_OR_LATER)$(IS_NETBSD),10) |
228 |
-- CXXFLAGS += -march=native |
229 |
--else ifneq ($(CLANG_COMPILER)$(INTEL_COMPILER),00) |
230 |
-- CXXFLAGS += -march=native |
231 |
--else |
232 |
-- # GCC 3.3 and "unknown option -march=" |
233 |
-- # Ubuntu GCC 4.1 compiler crash with -march=native |
234 |
-- # NetBSD GCC 4.8 compiler and "bad value (native) for -march= switch" |
235 |
-- # Sun compiler is handled below |
236 |
-- ifeq ($(SUN_COMPILER)$(IS_X64),01) |
237 |
-- CXXFLAGS += -m64 |
238 |
-- else ifeq ($(SUN_COMPILER)$(IS_X86),01) |
239 |
-- CXXFLAGS += -m32 |
240 |
-- endif # X86/X32/X64 |
241 |
--endif |
242 |
-- |
243 |
- # Aligned access required for -O3 and above due to vectorization |
244 |
- UNALIGNED_ACCESS := $(shell $(EGREP) -c "^[[:space:]]*//[[:space:]]*\#[[:space:]]*define[[:space:]]*CRYPTOPP_NO_UNALIGNED_DATA_ACCESS" config.h) |
245 |
- ifneq ($(UNALIGNED_ACCESS),0) |
246 |
|
247 |
diff --git a/dev-libs/crypto++/files/crypto++-5.6.5-CVE-2017-9434.patch b/dev-libs/crypto++/files/crypto++-5.6.5-CVE-2017-9434.patch |
248 |
deleted file mode 100644 |
249 |
index 428f48901a3..00000000000 |
250 |
--- a/dev-libs/crypto++/files/crypto++-5.6.5-CVE-2017-9434.patch |
251 |
+++ /dev/null |
252 |
@@ -1,45 +0,0 @@ |
253 |
-From 07dbcc3d9644b18e05c1776db2a57fe04d780965 Mon Sep 17 00:00:00 2001 |
254 |
-From: Jeffrey Walton <noloader@×××××.com> |
255 |
-Date: Wed, 10 May 2017 18:17:12 -0400 |
256 |
-Subject: [PATCH] Add Inflator::BadDistanceErr exception (Issue 414) The |
257 |
- improved validation and excpetion clears the Address Sanitizer and Undefined |
258 |
- Behavior Sanitizer findings |
259 |
- |
260 |
---- |
261 |
- zinflate.cpp | 8 +++++++- |
262 |
- zinflate.h | 4 ++++ |
263 |
- 3 files changed, 14 insertions(+), 4 deletions(-) |
264 |
- |
265 |
-diff --git a/zinflate.cpp b/zinflate.cpp |
266 |
-index 664efe6..fbd7505 100644 |
267 |
---- a/zinflate.cpp |
268 |
-+++ b/zinflate.cpp |
269 |
-@@ -550,12 +550,16 @@ bool Inflator::DecodeBody() |
270 |
- break; |
271 |
- } |
272 |
- case DISTANCE_BITS: |
273 |
-+ if (m_distance >= COUNTOF(distanceExtraBits)) |
274 |
-+ throw BadDistanceErr(); |
275 |
- bits = distanceExtraBits[m_distance]; |
276 |
- if (!m_reader.FillBuffer(bits)) |
277 |
- { |
278 |
- m_nextDecode = DISTANCE_BITS; |
279 |
- break; |
280 |
- } |
281 |
-+ if (m_distance >= COUNTOF(distanceStarts)) |
282 |
-+ throw BadDistanceErr(); |
283 |
- m_distance = m_reader.GetBits(bits) + distanceStarts[m_distance]; |
284 |
- OutputPast(m_literal, m_distance); |
285 |
- } |
286 |
-diff --git a/zinflate.h b/zinflate.h |
287 |
-index e2fd237..c47d2f6 100644 |
288 |
---- a/zinflate.h |
289 |
-+++ b/zinflate.h |
290 |
-@@ -96,6 +96,7 @@ public: |
291 |
- }; |
292 |
- class UnexpectedEndErr : public Err {public: UnexpectedEndErr() : Err(INVALID_DATA_FORMAT, "Inflator: unexpected end of compressed block") {}}; |
293 |
- class BadBlockErr : public Err {public: BadBlockErr() : Err(INVALID_DATA_FORMAT, "Inflator: error in compressed block") {}}; |
294 |
-+ class BadDistanceErr : public Err {public: BadDistanceErr() : Err(INVALID_DATA_FORMAT, "Inflator: error in bit distance") {}}; |
295 |
- |
296 |
- //! \brief RFC 1951 Decompressor |
297 |
- //! \param attachment the filter's attached transformation |