Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/crypto++/files/
Date: Mon, 05 Jun 2017 17:29:54
Message-Id: 1496676230.82615901815cc34bc532298ec7029bfb3568af2e.alonbl@gentoo
1 commit: 82615901815cc34bc532298ec7029bfb3568af2e
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 15:23:50 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 15:23:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82615901
7
8 dev-libs/crypto++: remove unused patches
9
10 dev-libs/crypto++/files/crypto++-5.6.2-c++11.patch | 22 ---
11 .../files/crypto++-5.6.2-cve-2015-2141.patch | 32 ----
12 .../crypto++/files/crypto++-5.6.2-r1-make.patch | 176 ---------------------
13 3 files changed, 230 deletions(-)
14
15 diff --git a/dev-libs/crypto++/files/crypto++-5.6.2-c++11.patch b/dev-libs/crypto++/files/crypto++-5.6.2-c++11.patch
16 deleted file mode 100644
17 index 407503606a3..00000000000
18 --- a/dev-libs/crypto++/files/crypto++-5.6.2-c++11.patch
19 +++ /dev/null
20 @@ -1,22 +0,0 @@
21 -From 44015c26ba215f955b1e653f9c8f3c894a532707 Mon Sep 17 00:00:00 2001
22 -From: Jeffrey Walton <noloader@×××××.com>
23 -Date: Tue, 9 Jun 2015 09:49:02 -0400
24 -Subject: [PATCH] Cleared ill-formed conversion in C++11
25 -
26 ----
27 - wake.cpp | 2 +-
28 - 1 file changed, 1 insertion(+), 1 deletion(-)
29 -
30 -diff --git a/wake.cpp b/wake.cpp
31 -index c34165b..e0f194e 100644
32 ---- a/wake.cpp
33 -+++ b/wake.cpp
34 -@@ -23,7 +23,7 @@ void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3)
35 - signed int x, z, p;
36 - // x and z were declared as "long" in Wheeler's paper, which is a signed type. I don't know if that was intentional, but it's too late to change it now. -- Wei 7/4/2010
37 - CRYPTOPP_COMPILE_ASSERT(sizeof(x) == 4);
38 -- static int tt[10]= {
39 -+ static unsigned int tt[10]= {
40 - 0x726a8f3b, // table
41 - 0xe69a3b5c,
42 - 0xd3c71fe5,
43
44 diff --git a/dev-libs/crypto++/files/crypto++-5.6.2-cve-2015-2141.patch b/dev-libs/crypto++/files/crypto++-5.6.2-cve-2015-2141.patch
45 deleted file mode 100644
46 index 32c5164609e..00000000000
47 --- a/dev-libs/crypto++/files/crypto++-5.6.2-cve-2015-2141.patch
48 +++ /dev/null
49 @@ -1,32 +0,0 @@
50 -From 9425e16437439e68c7d96abef922167d68fafaff Mon Sep 17 00:00:00 2001
51 -From: Jeffrey Walton <noloader@×××××.com>
52 -Date: Sat, 27 Jun 2015 17:56:01 -0400
53 -Subject: [PATCH] Fix for CVE-2015-2141. Thanks to Evgeny Sidorov for
54 - reporting. Squaring to satisfy Jacobi requirements suggested by JPM.
55 -
56 ----
57 - rw.cpp | 8 +++++++-
58 - 1 file changed, 7 insertions(+), 1 deletion(-)
59 -
60 -diff --git a/rw.cpp b/rw.cpp
61 -index cdd9f2d..0b9318b 100644
62 ---- a/rw.cpp
63 -+++ b/rw.cpp
64 -@@ -126,10 +126,16 @@ Integer InvertibleRWFunction::CalculateInverse(RandomNumberGenerator &rng, const
65 - DoQuickSanityCheck();
66 - ModularArithmetic modn(m_n);
67 - Integer r, rInv;
68 -- do { // do this in a loop for people using small numbers for testing
69 -+
70 -+ // do this in a loop for people using small numbers for testing
71 -+ do {
72 - r.Randomize(rng, Integer::One(), m_n - Integer::One());
73 -+ // Fix for CVE-2015-2141. Thanks to Evgeny Sidorov for reporting.
74 -+ // Squaring to satisfy Jacobi requirements suggested by JPM.
75 -+ r = modn.Square(r);
76 - rInv = modn.MultiplicativeInverse(r);
77 - } while (rInv.IsZero());
78 -+
79 - Integer re = modn.Square(r);
80 - re = modn.Multiply(re, x); // blind
81 -
82
83 diff --git a/dev-libs/crypto++/files/crypto++-5.6.2-r1-make.patch b/dev-libs/crypto++/files/crypto++-5.6.2-r1-make.patch
84 deleted file mode 100644
85 index fa1672328c1..00000000000
86 --- a/dev-libs/crypto++/files/crypto++-5.6.2-r1-make.patch
87 +++ /dev/null
88 @@ -1,176 +0,0 @@
89 ---- cryptopp562/GNUmakefile
90 -+++ cryptopp562/GNUmakefile
91 -@@ -1,3 +1,5 @@
92 -+LIBTOOL = libtool
93 -+LIBDIR = lib
94 - CXXFLAGS = -DNDEBUG -g -O2
95 - # -O3 fails to link on Cygwin GCC version 4.5.3
96 - # -fPIC is supported. Please report any breakage of -fPIC as a bug.
97 -@@ -7,8 +9,9 @@
98 - # LDFLAGS += -Wl,--gc-sections
99 - ARFLAGS = -cr # ar needs the dash on OpenBSD
100 - RANLIB = ranlib
101 --CP = cp
102 -+LN_S = ln -s
103 - MKDIR = mkdir
104 -+INSTALL = install
105 - EGREP = egrep
106 - UNAME = $(shell uname)
107 - ISX86 = $(shell uname -m | $(EGREP) -c "i.86|x86|i86|amd64")
108 -@@ -79,8 +82,11 @@
109 - LDLIBS += -lws2_32
110 - endif
111 -
112 -+THREAD_LIBS =
113 -+
114 - ifeq ($(IS_LINUX),1)
115 - LDFLAGS += -pthread
116 -+THREAD_LIBS += -lpthread
117 - ifneq ($(shell uname -i | $(EGREP) -c "(_64|d64)"),0)
118 - M32OR64 = -m64
119 - endif
120 -@@ -126,54 +132,52 @@
121 - SRCS = $(shell echo *.cpp)
122 - endif
123 -
124 --OBJS = $(SRCS:.cpp=.o)
125 --# test.o needs to be after bench.o for cygwin 1.1.4 (possible ld bug?)
126 --TESTOBJS = bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o
127 -+OBJS = $(SRCS:.cpp=.lo)
128 -+# test.lo needs to be after bench.lo for cygwin 1.1.4 (possible ld bug?)
129 -+TESTOBJS = bench.lo bench2.lo test.lo validat1.lo validat2.lo validat3.lo adhoc.lo datatest.lo regtest.lo fipsalgt.lo dlltest.lo
130 - LIBOBJS = $(filter-out $(TESTOBJS),$(OBJS))
131 -
132 - DLLSRCS = algebra.cpp algparam.cpp asn.cpp basecode.cpp cbcmac.cpp channels.cpp cryptlib.cpp des.cpp dessp.cpp dh.cpp dll.cpp dsa.cpp ec2n.cpp eccrypto.cpp ecp.cpp eprecomp.cpp files.cpp filters.cpp fips140.cpp fipstest.cpp gf2n.cpp gfpcrypt.cpp hex.cpp hmac.cpp integer.cpp iterhash.cpp misc.cpp modes.cpp modexppc.cpp mqueue.cpp nbtheory.cpp oaep.cpp osrng.cpp pch.cpp pkcspad.cpp pubkey.cpp queue.cpp randpool.cpp rdtables.cpp rijndael.cpp rng.cpp rsa.cpp sha.cpp simple.cpp skipjack.cpp strciphr.cpp trdlocal.cpp
133 --DLLOBJS = $(DLLSRCS:.cpp=.export.o)
134 --LIBIMPORTOBJS = $(LIBOBJS:.o=.import.o)
135 --TESTIMPORTOBJS = $(TESTOBJS:.o=.import.o)
136 --DLLTESTOBJS = dlltest.dllonly.o
137 --
138 --all: cryptest.exe
139 --static: libcryptopp.a
140 --dynamic: libcryptopp.so
141 -+DLLOBJS = $(DLLSRCS:.cpp=.export.lo)
142 -+LIBIMPORTOBJS = $(LIBOBJS:.lo=.import.lo)
143 -+TESTIMPORTOBJS = $(TESTOBJS:.lo=.import.lo)
144 -+DLLTESTOBJS = dlltest.dllonly.lo
145 -+
146 -+all: libcrypto++.la
147 -
148 --test: cryptest.exe
149 -- ./cryptest.exe v
150 -+test: cryptest
151 -+ ./cryptest v
152 -
153 - clean:
154 -- -$(RM) cryptest.exe libcryptopp.a libcryptopp.so $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTI MPORTOBJS) $(DLLTESTOBJS)
155 -+ $(RM) -f .libs cryptest libcrypto++.* libcryptopp.* $(LIBOBJS) $(TESTOBJS) cryptopp.dll cryptest.import dlltest $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS)
156 -+
157 -
158 - install:
159 -- $(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
160 -- -$(CP) *.h $(PREFIX)/include/cryptopp
161 -- -$(CP) *.a $(PREFIX)/lib
162 -- -$(CP) *.so $(PREFIX)/lib
163 -- -$(CP) *.exe $(PREFIX)/bin
164 -+ $(MKDIR) -p $(DESTDIR)$(PREFIX)/include/crypto++ $(DESTDIR)$(PREFIX)/$(LIBDIR)
165 -+ $(INSTALL) -m 644 *.h $(DESTDIR)$(PREFIX)/include/crypto++
166 -+ $(LN_S) crypto++ $(DESTDIR)$(PREFIX)/include/cryptopp
167 -+ $(LIBTOOL) --mode=install $(INSTALL) libcrypto++.la $(DESTDIR)$(PREFIX)/$(LIBDIR)
168 -+ set -e; \
169 -+ for f in $(DESTDIR)$(PREFIX)/$(LIBDIR)/libcrypto++*; do \
170 -+ $(LN_S) $${f##*/} `echo $$f | sed "s:libcrypto++:libcryptopp:"`; \
171 -+ done
172 -
173 - remove:
174 -- -$(RM) -rf $(PREFIX)/include/cryptopp
175 -- -$(RM) $(PREFIX)/lib/libcryptopp.a
176 -- -$(RM) $(PREFIX)/lib/libcryptopp.so
177 -- -$(RM) $(PREFIX)/bin/cryptest.exe
178 --
179 --libcryptopp.a: $(LIBOBJS)
180 -- $(AR) $(ARFLAGS) $@ $(LIBOBJS)
181 -- $(RANLIB) $@
182 -+ $(RM) -rf $(DESTDIR)$(PREFIX)/include/crypto++
183 -+ $(RM) $(DESTDIR)$(PREFIX)/$(LIBDIR)/libcryptopp.*
184 -+ $(RM) $(DESTDIR)$(PREFIX)/$(LIBDIR)/libcrypto++.*
185 -+ $(RM) $(DESTDIR)$(PREFIX)/bin/cryptest
186 -
187 --libcryptopp.so: $(LIBOBJS)
188 -- $(CXX) -shared -o $@ $(LIBOBJS)
189 -+libcrypto++.la: $(LIBOBJS)
190 -+ $(LIBTOOL) --tag=CXX --mode=link $(CXX) $(LDFLAGS) -rpath $(PREFIX)/$(LIBDIR) -o $@ $(LIBOBJS) $(THREAD_LIBS)
191 -
192 --cryptest.exe: libcryptopp.a $(TESTOBJS)
193 -- $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) ./libcryptopp.a $(LDFLAGS) $(LDLIBS)
194 -+cryptest: libcrypto++.la $(TESTOBJS)
195 -+ $(LIBTOOL) --tag=CXX --mode=link $(CXX) $(LDFLAGS) -o $@ $(TESTOBJS) -L. -lcrypto++ $(LDLIBS) $(THREAD_LIBS)
196 -
197 - nolib: $(OBJS) # makes it faster to test changes
198 -- $(CXX) -o ct $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(LDLIBS)
199 -+ $(LIBTOOL) --tag=CXX --mode=link $(CXX) -o ct $(LDFLAGS) $(OBJS) $(LDLIBS) $(THREAD_LIBS)
200 -
201 --dll: cryptest.import.exe dlltest.exe
202 -+dll: cryptest.import dlltest
203 -
204 - cryptopp.dll: $(DLLOBJS)
205 - $(CXX) -shared -o $@ $(CXXFLAGS) $(DLLOBJS) $(LDFLAGS) $(LDLIBS) -Wl,--out-implib=libcryptopp.dll.a
206 -@@ -182,10 +186,10 @@
207 - $(AR) $(ARFLAGS) $@ $(LIBIMPORTOBJS)
208 - $(RANLIB) $@
209 -
210 --cryptest.import.exe: cryptopp.dll libcryptopp.import.a $(TESTIMPORTOBJS)
211 -+cryptest.import: cryptopp.dll libcryptopp.import.a $(TESTIMPORTOBJS)
212 - $(CXX) -o $@ $(CXXFLAGS) $(TESTIMPORTOBJS) -L. -lcryptopp.dll -lcryptopp.import $(LDFLAGS) $(LDLIBS)
213 -
214 --dlltest.exe: cryptopp.dll $(DLLTESTOBJS)
215 -+dlltest: cryptopp.dll $(DLLTESTOBJS)
216 - $(CXX) -o $@ $(CXXFLAGS) $(DLLTESTOBJS) -L. -lcryptopp.dll $(LDFLAGS) $(LDLIBS)
217 -
218 - adhoc.cpp: adhoc.cpp.proto
219 -@@ -195,14 +199,14 @@
220 - touch adhoc.cpp
221 - endif
222 -
223 --%.dllonly.o : %.cpp
224 -+%.dllonly.lo : %.cpp
225 - $(CXX) $(CXXFLAGS) -DCRYPTOPP_DLL_ONLY -c $< -o $@
226 -
227 --%.import.o : %.cpp
228 -+%.import.lo : %.cpp
229 - $(CXX) $(CXXFLAGS) -DCRYPTOPP_IMPORTS -c $< -o $@
230 -
231 --%.export.o : %.cpp
232 -+%.export.lo : %.cpp
233 - $(CXX) $(CXXFLAGS) -DCRYPTOPP_EXPORTS -c $< -o $@
234 -
235 --%.o : %.cpp
236 -- $(CXX) $(CXXFLAGS) -c $<
237 -+%.lo : %.cpp
238 -+ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(CXXFLAGS) -c $<
239 -From 0088b78b23ede2abb0e8ab08345ac334d8c1ad64 Mon Sep 17 00:00:00 2001
240 -From: Alon Bar-Lev <alon.barlev@×××××.com>
241 -Date: Thu, 7 Apr 2016 23:30:48 +0300
242 -Subject: [PATCH] build: remove native CXXFLAGS override
243 -
244 ----
245 - GNUmakefile | 3 ---
246 - 1 file changed, 3 deletions(-)
247 -
248 -diff --git a/GNUmakefile b/GNUmakefile
249 -index b1ab537..a0c6c13 100644
250 ---- a/GNUmakefile
251 -+++ b/GNUmakefile
252 -@@ -38,9 +38,7 @@ GAS219_OR_LATER = $(shell $(CXX) -xc -c /dev/null -Wa,-v -o/dev/null 2>&1 | $(EG
253 - ifneq ($(GCC42_OR_LATER),0)
254 - ifeq ($(UNAME),Darwin)
255 - CXXFLAGS += -arch x86_64 -arch i386
256 --else
257 --CXXFLAGS += -march=native
258 - endif
259 - endif
260 -
261 - ifneq ($(INTEL_COMPILER),0)
262 ---
263 -2.7.3
264 -