Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/protobuf/, dev-libs/protobuf/files/
Date: Sun, 29 Dec 2019 19:34:08
Message-Id: 1577647893.d23f80e9e13c1085de9777945f3f5fab67143d14.floppym@gentoo
1 commit: d23f80e9e13c1085de9777945f3f5fab67143d14
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Mon Dec 23 20:56:12 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 19:31:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d23f80e9
7
8 dev-libs/protobuf: Delete old version (3.7.1).
9
10 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 dev-libs/protobuf/Manifest | 1 -
14 .../protobuf-3.7.0-disable_no-warning-test.patch | 19 --
15 .../protobuf-3.7.0-protoc_input_output_files.patch | 236 ---------------------
16 .../files/protobuf-3.7.1-system_libraries.patch | 121 -----------
17 dev-libs/protobuf/protobuf-3.7.1.ebuild | 126 -----------
18 5 files changed, 503 deletions(-)
19
20 diff --git a/dev-libs/protobuf/Manifest b/dev-libs/protobuf/Manifest
21 index 15ae0824bb2..02aa678dff0 100644
22 --- a/dev-libs/protobuf/Manifest
23 +++ b/dev-libs/protobuf/Manifest
24 @@ -1,6 +1,5 @@
25 DIST protobuf-3.10.1.tar.gz 4905995 BLAKE2B 1dde3b6260918da8430c2ce69210462f339c492b2a4e53d5d9c1bea3747aead905370507fc4bd703560f6885c0f3f8393a998b875c19744ad94827109ecbb49f SHA512 aba0c4034c0d3b1759904adb6270eee94dd5dc568f433b219e3f1f70c0033993cdfa3bf476ad3f5767c7629edb9fd029c686405abf93731dde808286b336330d
26 DIST protobuf-3.11.2.tar.gz 5133897 BLAKE2B 275ea52a072b4e0226e4b6dc476d4bc28e8f4f05bca0709eab51da91c02869e96c3b0ac9ab4cc46290f875d4eac6ac72374c5b45e27fa89ad3d58fd56a2c8b7e SHA512 8319c1e003e5fc64e91b512de016ec1cf10265b294d3b4beea60856beaeb02b4d7682343c74b2c12b0f6d4d6258451af9b9d72bcb4b495293b7637da21030c8f
27 -DIST protobuf-3.7.1.tar.gz 4795774 BLAKE2B a91155169623ee24ba49e397b151829321c01ff06bb27541e6c02701c37ac96ea9606961291ef0d4616dd6dba045bf7e893ec6288f5809d30cc026b60ae76590 SHA512 7d4cfabd4bd55926336a3baafa0bc1f1f15380b1b2af945f70a2bb3ba24c6ac6567f49c492326d6d1c43a488166bff178f9266377758a05d8541d8b242f4f80f
28 DIST protobuf-3.8.0.tar.gz 4934577 BLAKE2B 4b86ab216e8a8b2c99c3620da9417c0562498e9d4dbf4957db186f51c62b0ed73b1322635a076b2d4054e015bdf6c8c50cc7fd0cb78d24a93b29d2a5b48f66fe SHA512 ba27c64e5193cd4a144bf0c9dc0d195fbbe6e580aaca01960362f0f185074588ca40046d3bcea76e1deae7508b722f6c5be484ea957122ae8e98229c7c3a4ad2
29 DIST protobuf-3.9.1.tar.gz 4947402 BLAKE2B c1e366438ca619044d84d7a75453c35b48d5f64867b7aaec78c04966d4e62223a8909a28be850156ce3d47f0e7f42e80a231ec5d814d2820e1edfa963d89e177 SHA512 9accb56c1aadef83bf27280e15a99809a3561cbd4b39d6605dec730cc112bf4fd2e9f1ac39127b32a1b87253e712be4b4f12afe4061a8f7be76266b3f4bca314
30 DIST protobuf-3.9.2.tar.gz 4947582 BLAKE2B ff0150970286d1eb452bd2f252fa8200617ddf491dcb3b9b60cebb36268c5a3072df3d24142ca9863306df6690f53ad4d4761c7846c677c4610716ec22e0838c SHA512 510349ddc59b4e53087b5247ca8784e9f852d66d755e1b014c6214e14c003f31dd336a724e9eb87a5b85a70e22793eb3211744c85a514b24b687346563717bec
31
32 diff --git a/dev-libs/protobuf/files/protobuf-3.7.0-disable_no-warning-test.patch b/dev-libs/protobuf/files/protobuf-3.7.0-disable_no-warning-test.patch
33 deleted file mode 100644
34 index eadde9c04dc..00000000000
35 --- a/dev-libs/protobuf/files/protobuf-3.7.0-disable_no-warning-test.patch
36 +++ /dev/null
37 @@ -1,19 +0,0 @@
38 -Disable no-warning-test which is compiled with -Werror option and whose only purpose is checking if compilation results in any warnings.
39 -
40 ---- /src/Makefile.am
41 -+++ /src/Makefile.am
42 -@@ -709,7 +709,7 @@
43 - GOOGLEMOCK_SRC_DIR=$(srcdir)/../third_party/googletest/googlemock
44 - check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
45 - protobuf-lite-test test_plugin protobuf-lite-arena-test \
46 -- no-warning-test $(GZCHECKPROGRAMS)
47 -+ $(GZCHECKPROGRAMS)
48 - protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
49 - $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \
50 - $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \
51 -@@ -893,4 +893,4 @@
52 -
53 - TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \
54 - google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) \
55 -- protobuf-lite-arena-test no-warning-test
56 -+ protobuf-lite-arena-test
57
58 diff --git a/dev-libs/protobuf/files/protobuf-3.7.0-protoc_input_output_files.patch b/dev-libs/protobuf/files/protobuf-3.7.0-protoc_input_output_files.patch
59 deleted file mode 100644
60 index 54daa6de4ed..00000000000
61 --- a/dev-libs/protobuf/files/protobuf-3.7.0-protoc_input_output_files.patch
62 +++ /dev/null
63 @@ -1,236 +0,0 @@
64 -https://github.com/protocolbuffers/protobuf/pull/235
65 -
66 ---- /src/google/protobuf/compiler/command_line_interface.cc
67 -+++ /src/google/protobuf/compiler/command_line_interface.cc
68 -@@ -951,6 +951,28 @@
69 - }
70 -
71 - if (mode_ == MODE_ENCODE || mode_ == MODE_DECODE) {
72 -+ bool success = false;
73 -+ int in_fd = STDIN_FILENO;
74 -+ int out_fd = STDOUT_FILENO;
75 -+
76 -+ if (!protobuf_in_path_.empty()) {
77 -+ in_fd = open(protobuf_in_path_.c_str(), O_RDONLY);
78 -+ if (in_fd == -1) {
79 -+ std::cerr << protobuf_in_path_ << ": error: failed to open file." << std::endl;
80 -+ return 1;
81 -+ }
82 -+ }
83 -+ if (!protobuf_out_path_.empty()) {
84 -+ out_fd = open(protobuf_out_path_.c_str(),
85 -+ O_WRONLY | O_CREAT | O_TRUNC,
86 -+ 0644);
87 -+ if (out_fd == -1) {
88 -+ std::cerr << protobuf_out_path_ << ": error: failed to open file." << std::endl;
89 -+ close(in_fd);
90 -+ return 1;
91 -+ }
92 -+ }
93 -+
94 - if (codec_type_.empty()) {
95 - // HACK: Define an EmptyMessage type to use for decoding.
96 - DescriptorPool pool;
97 -@@ -959,13 +981,20 @@
98 - file.add_message_type()->set_name("EmptyMessage");
99 - GOOGLE_CHECK(pool.BuildFile(file) != NULL);
100 - codec_type_ = "EmptyMessage";
101 -- if (!EncodeOrDecode(&pool)) {
102 -- return 1;
103 -- }
104 -+ success = EncodeOrDecode(&pool, in_fd, out_fd);
105 - } else {
106 -- if (!EncodeOrDecode(descriptor_pool.get())) {
107 -- return 1;
108 -- }
109 -+ success = EncodeOrDecode(descriptor_pool.get(), in_fd, out_fd);
110 -+ }
111 -+
112 -+ if (in_fd != STDIN_FILENO) {
113 -+ close(in_fd);
114 -+ }
115 -+ if (out_fd != STDOUT_FILENO) {
116 -+ close(out_fd);
117 -+ }
118 -+
119 -+ if (!success) {
120 -+ return 1;
121 - }
122 - }
123 -
124 -@@ -1003,6 +1032,11 @@
125 - for (int i = 0; i < proto_path_.size(); i++) {
126 - source_tree->MapPath(proto_path_[i].first, proto_path_[i].second);
127 - }
128 -+ if (mode_ == MODE_COMPILE &&
129 -+ (!protobuf_in_path_.empty() || !protobuf_out_path_.empty())) {
130 -+ std::cerr << "--protobuf_in and --protobuf_out are only valid with "
131 -+ << "decode operations. Ignoring.";
132 -+ }
133 -
134 - // Map input files to virtual paths if possible.
135 - if (!MakeInputsBeProtoPathRelative(source_tree, fallback_database)) {
136 -@@ -1622,6 +1656,12 @@
137 -
138 - codec_type_ = value;
139 -
140 -+ } else if (name == "--protobuf_in") {
141 -+ protobuf_in_path_ = value;
142 -+
143 -+ } else if (name == "--protobuf_out") {
144 -+ protobuf_out_path_ = value;
145 -+
146 - } else if (name == "--error_format") {
147 - if (value == "gcc") {
148 - error_format_ = ERROR_FORMAT_GCC;
149 -@@ -1749,18 +1789,31 @@
150 - " --version Show version info and exit.\n"
151 - " -h, --help Show this text and exit.\n"
152 - " --encode=MESSAGE_TYPE Read a text-format message of the given type\n"
153 --" from standard input and write it in binary\n"
154 --" to standard output. The message type must\n"
155 --" be defined in PROTO_FILES or their imports.\n"
156 --" --decode=MESSAGE_TYPE Read a binary message of the given type from\n"
157 --" standard input and write it in text format\n"
158 --" to standard output. The message type must\n"
159 -+" and write it in binary. The message type must\n"
160 - " be defined in PROTO_FILES or their imports.\n"
161 --" --decode_raw Read an arbitrary protocol message from\n"
162 --" standard input and write the raw tag/value\n"
163 --" pairs in text format to standard output. No\n"
164 -+" The input/output protobuf files are specified\n"
165 -+" using the --protobuf_in and --protobuf_out\n"
166 -+" command line flags.\n"
167 -+" --decode=MESSAGE_TYPE Read a binary message of the given type and\n"
168 -+" write it in text format. The message type\n"
169 -+" must be defined in PROTO_FILES or their imports.\n"
170 -+" The input/output protobuf files are specified\n"
171 -+" using the --protobuf_in and --protobuf_out\n"
172 -+" command line flags.\n"
173 -+" --decode_raw Read an arbitrary protocol message and write\n"
174 -+" the raw tag/value pairs in text format. No\n"
175 - " PROTO_FILES should be given when using this\n"
176 --" flag.\n"
177 -+" flag. The input/output protobuf files are\n"
178 -+" specified using the --protobuf_in and\n"
179 -+" --protobuf_out command line flags.\n"
180 -+" --protobuf_in=FILE Absolute path to the protobuf file from which\n"
181 -+" input of encoding/decoding operation will be\n"
182 -+" read. If omitted, input will be read from\n"
183 -+" standard input.\n"
184 -+" --protobuf_out=FILE Absolute path to the protobuf file to which\n"
185 -+" output of encoding/decoding operation will be\n"
186 -+" written. If omitted, output will be written to\n"
187 -+" standard output.\n"
188 - " --descriptor_set_in=FILES Specifies a delimited list of FILES\n"
189 - " each containing a FileDescriptorSet (a\n"
190 - " protocol buffer defined in descriptor.proto).\n"
191 -@@ -2039,7 +2092,9 @@
192 - return true;
193 - }
194 -
195 --bool CommandLineInterface::EncodeOrDecode(const DescriptorPool* pool) {
196 -+bool CommandLineInterface::EncodeOrDecode(const DescriptorPool* pool,
197 -+ int in_fd,
198 -+ int out_fd) {
199 - // Look up the type.
200 - const Descriptor* type = pool->FindMessageTypeByName(codec_type_);
201 - if (type == NULL) {
202 -@@ -2051,15 +2106,15 @@
203 - std::unique_ptr<Message> message(dynamic_factory.GetPrototype(type)->New());
204 -
205 - if (mode_ == MODE_ENCODE) {
206 -- SetFdToTextMode(STDIN_FILENO);
207 -- SetFdToBinaryMode(STDOUT_FILENO);
208 -+ SetFdToTextMode(in_fd);
209 -+ SetFdToBinaryMode(out_fd);
210 - } else {
211 -- SetFdToBinaryMode(STDIN_FILENO);
212 -- SetFdToTextMode(STDOUT_FILENO);
213 -+ SetFdToBinaryMode(in_fd);
214 -+ SetFdToTextMode(out_fd);
215 - }
216 -
217 -- io::FileInputStream in(STDIN_FILENO);
218 -- io::FileOutputStream out(STDOUT_FILENO);
219 -+ io::FileInputStream in(in_fd);
220 -+ io::FileOutputStream out(out_fd);
221 -
222 - if (mode_ == MODE_ENCODE) {
223 - // Input is text.
224 ---- /src/google/protobuf/compiler/command_line_interface.h
225 -+++ /src/google/protobuf/compiler/command_line_interface.h
226 -@@ -285,7 +285,9 @@
227 - GeneratorContext* generator_context, std::string* error);
228 -
229 - // Implements --encode and --decode.
230 -- bool EncodeOrDecode(const DescriptorPool* pool);
231 -+ bool EncodeOrDecode(const DescriptorPool* pool,
232 -+ int in_fd,
233 -+ int out_fd);
234 -
235 - // Implements the --descriptor_set_out option.
236 - bool WriteDescriptorSet(
237 -@@ -418,6 +420,13 @@
238 - // parsed FileDescriptorSets to be used for loading protos. Otherwise, empty.
239 - std::vector<std::string> descriptor_set_in_names_;
240 -
241 -+ // When using --encode / --decode / --decode_raw absolute path to the output
242 -+ // file. (Empty string indicates write to STDOUT).
243 -+ std::string protobuf_out_path_;
244 -+ // When using --encode / --decode / --decode_raw, absolute path to the input
245 -+ // file. (Empty string indicates read from STDIN).
246 -+ std::string protobuf_in_path_;
247 -+
248 - // If --descriptor_set_out was given, this is the filename to which the
249 - // FileDescriptorSet should be written. Otherwise, empty.
250 - std::string descriptor_set_out_name_;
251 ---- /src/google/protobuf/compiler/command_line_interface_unittest.cc
252 -+++ /src/google/protobuf/compiler/command_line_interface_unittest.cc
253 -@@ -95,7 +95,7 @@
254 - virtual void SetUp();
255 - virtual void TearDown();
256 -
257 -- // Runs the CommandLineInterface with the given command line. The
258 -+ // Run the CommandLineInterface with the given command line. The
259 - // command is automatically split on spaces, and the string "$tmpdir"
260 - // is replaced with TestTempDir().
261 - void Run(const string& command);
262 -@@ -2367,6 +2367,17 @@
263 - EXPECT_EQ(StripCR(expected_text), StripCR(captured_stderr_));
264 - }
265 -
266 -+ void ExpectBinaryFilesMatch(const string &expected_file,
267 -+ const string &actual_file) {
268 -+ string expected_output, actual_output;
269 -+ ASSERT_TRUE(File::ReadFileToString(expected_file, &expected_output));
270 -+ ASSERT_TRUE(File::ReadFileToString(actual_file, &actual_output));
271 -+
272 -+ // Don't use EXPECT_EQ because we don't want to print raw binary data to
273 -+ // stdout on failure.
274 -+ EXPECT_TRUE(expected_output == actual_output);
275 -+ }
276 -+
277 - private:
278 - void WriteUnittestProtoDescriptorSet() {
279 - unittest_proto_descriptor_set_filename_ =
280 -@@ -2463,6 +2474,19 @@
281 - "net/proto2/internal/no_such_file.proto: No such file or directory\n");
282 - }
283 -
284 -+TEST_P(EncodeDecodeTest, RedirectInputOutput) {
285 -+ string out_file = TestTempDir() + "/golden_message_out.pbf";
286 -+ EXPECT_TRUE(
287 -+ Run(TestUtil::MaybeTranslatePath("net/proto2/internal/unittest.proto") +
288 -+ " --encode=protobuf_unittest.TestAllTypes" +
289 -+ " --protobuf_in=" + TestUtil::GetTestDataPath(
290 -+ "net/proto2/internal/"
291 -+ "testdata/text_format_unittest_data_oneof_implemented.txt") +
292 -+ " --protobuf_out=" + out_file));
293 -+ ExpectBinaryFilesMatch(out_file, TestUtil::GetTestDataPath(
294 -+ "net/proto2/internal/testdata/golden_message_oneof_implemented"));
295 -+}
296 -+
297 - INSTANTIATE_TEST_CASE_P(FileDescriptorSetSource,
298 - EncodeDecodeTest,
299 - testing::Values(PROTO_PATH, DESCRIPTOR_SET_IN));
300
301 diff --git a/dev-libs/protobuf/files/protobuf-3.7.1-system_libraries.patch b/dev-libs/protobuf/files/protobuf-3.7.1-system_libraries.patch
302 deleted file mode 100644
303 index 3ae92e2b87a..00000000000
304 --- a/dev-libs/protobuf/files/protobuf-3.7.1-system_libraries.patch
305 +++ /dev/null
306 @@ -1,121 +0,0 @@
307 ---- /Makefile.am
308 -+++ /Makefile.am
309 -@@ -11,28 +11,10 @@
310 - # Always include third_party directories in distributions.
311 - DIST_SUBDIRS = src conformance benchmarks third_party/googletest
312 -
313 --# Build gmock before we build protobuf tests. We don't add gmock to SUBDIRS
314 --# because then "make check" would also build and run all of gmock's own tests,
315 --# which takes a lot of time and is generally not useful to us. Also, we don't
316 --# want "make install" to recurse into gmock since we don't want to overwrite
317 --# the installed version of gmock if there is one.
318 - check-local:
319 -- @echo "Making lib/libgmock.a lib/libgmock_main.a in gmock"
320 -- @cd third_party/googletest/googletest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
321 -- @cd third_party/googletest/googlemock && $(MAKE) $(AM_MAKEFLAGS) lib/libgmock.la lib/libgmock_main.la
322 -
323 --# We would like to clean gmock when "make clean" is invoked. But we have to
324 --# be careful because clean-local is also invoked during "make distclean", but
325 --# "make distclean" already recurses into gmock because it's listed among the
326 --# DIST_SUBDIRS. distclean will delete gmock/Makefile, so if we then try to
327 --# cd to the directory again and "make clean" it will fail. So, check that the
328 --# Makefile exists before recursing.
329 - clean-local:
330 -- @if test -e third_party/googletest/Makefile; then \
331 -- echo "Making clean in googletest"; \
332 -- cd third_party/googletest && $(MAKE) $(AM_MAKEFLAGS) clean; \
333 -- fi; \
334 -- if test -e conformance/Makefile; then \
335 -+ @if test -e conformance/Makefile; then \
336 - echo "Making clean in conformance"; \
337 - cd conformance && $(MAKE) $(AM_MAKEFLAGS) clean; \
338 - fi; \
339 ---- /configure.ac
340 -+++ /configure.ac
341 -@@ -218,12 +218,5 @@
342 - esac
343 - AM_CONDITIONAL([OBJC_CONFORMANCE_TEST], [test $OBJC_CONFORMANCE_TEST = 1])
344 -
345 --# HACK: Make gmock's configure script pick up our copy of CFLAGS and CXXFLAGS,
346 --# since the flags added by ACX_CHECK_SUNCC must be used when compiling gmock
347 --# too.
348 --export CFLAGS
349 --export CXXFLAGS
350 --AC_CONFIG_SUBDIRS([third_party/googletest])
351 --
352 - AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc])
353 - AC_OUTPUT
354 ---- /src/Makefile.am
355 -+++ /src/Makefile.am
356 -@@ -703,19 +703,11 @@
357 - google/protobuf/testing/file.cc \
358 - google/protobuf/testing/file.h
359 -
360 --GOOGLETEST_BUILD_DIR=../third_party/googletest/googletest
361 --GOOGLEMOCK_BUILD_DIR=../third_party/googletest/googlemock
362 --GOOGLETEST_SRC_DIR=$(srcdir)/../third_party/googletest/googletest
363 --GOOGLEMOCK_SRC_DIR=$(srcdir)/../third_party/googletest/googlemock
364 - check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
365 - protobuf-lite-test test_plugin protobuf-lite-arena-test \
366 - $(GZCHECKPROGRAMS)
367 - protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
368 -- $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \
369 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \
370 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la
371 --protobuf_test_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include \
372 -- -I$(GOOGLEMOCK_SRC_DIR)/include
373 -+ -lgtest -lgmock -lgmock_main
374 - # Disable optimization for tests unless the user explicitly asked for it,
375 - # since test_util.cc takes forever to compile with optimization (with GCC).
376 - # See configure.ac for more info.
377 -@@ -804,12 +796,8 @@
378 - # Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
379 - protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
380 - libprotoc.la \
381 -- $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \
382 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \
383 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la
384 --protobuf_lazy_descriptor_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \
385 -- -I$(GOOGLETEST_SRC_DIR)/include \
386 -- -DPROTOBUF_TEST_NO_DESCRIPTORS
387 -+ -lgtest -lgmock -lgmock_main
388 -+protobuf_lazy_descriptor_test_CPPFLAGS = -DPROTOBUF_TEST_NO_DESCRIPTORS
389 - protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
390 - protobuf_lazy_descriptor_test_SOURCES = \
391 - google/protobuf/compiler/cpp/cpp_unittest.cc \
392 -@@ -830,11 +818,7 @@
393 - # full runtime and we want to make sure this test builds without full
394 - # runtime.
395 - protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
396 -- $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \
397 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \
398 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la
399 --protobuf_lite_test_CPPFLAGS= -I$(GOOGLEMOCK_SRC_DIR)/include \
400 -- -I$(GOOGLETEST_SRC_DIR)/include
401 -+ -lgtest -lgmock -lgmock_main
402 - protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
403 - protobuf_lite_test_SOURCES = \
404 - google/protobuf/lite_unittest.cc \
405 -@@ -846,11 +830,7 @@
406 - # gtest when building the test internally our memory sanitizer doesn't detect
407 - # memory leaks (don't know why).
408 - protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
409 -- $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \
410 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \
411 -- $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la
412 --protobuf_lite_arena_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \
413 -- -I$(GOOGLETEST_SRC_DIR)/include
414 -+ -lgtest -lgmock -lgmock_main
415 - protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
416 - protobuf_lite_arena_test_SOURCES = \
417 - google/protobuf/lite_arena_unittest.cc \
418 -@@ -860,8 +840,7 @@
419 -
420 - # Test plugin binary.
421 - test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
422 -- $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la
423 --test_plugin_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include
424 -+ -lgtest
425 - test_plugin_SOURCES = \
426 - google/protobuf/compiler/mock_code_generator.cc \
427 - google/protobuf/testing/file.cc \
428
429 diff --git a/dev-libs/protobuf/protobuf-3.7.1.ebuild b/dev-libs/protobuf/protobuf-3.7.1.ebuild
430 deleted file mode 100644
431 index d7c2d8b60c6..00000000000
432 --- a/dev-libs/protobuf/protobuf-3.7.1.ebuild
433 +++ /dev/null
434 @@ -1,126 +0,0 @@
435 -# Copyright 2008-2019 Gentoo Authors
436 -# Distributed under the terms of the GNU General Public License v2
437 -
438 -# True Authors: Arfrever Frehtes Taifersar Arahesis and others
439 -
440 -EAPI="7"
441 -
442 -inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs
443 -
444 -if [[ "${PV}" == "9999" ]]; then
445 - inherit git-r3
446 -
447 - EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf"
448 - EGIT_SUBMODULES=()
449 -fi
450 -
451 -DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
452 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
453 -if [[ "${PV}" == "9999" ]]; then
454 - SRC_URI=""
455 -else
456 - SRC_URI="https://github.com/protocolbuffers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
457 -fi
458 -
459 -LICENSE="BSD"
460 -SLOT="0/18"
461 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
462 -IUSE="emacs examples static-libs test zlib"
463 -RESTRICT="!test? ( test )"
464 -
465 -BDEPEND="emacs? ( >=app-editors/emacs-23.1:* )"
466 -DEPEND="test? ( >=dev-cpp/gtest-1.8.0[${MULTILIB_USEDEP}] )
467 - zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
468 -RDEPEND="emacs? ( >=app-editors/emacs-23.1:* )
469 - zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
470 -
471 -PATCHES=(
472 - "${FILESDIR}/${PN}-3.7.0-disable_no-warning-test.patch"
473 - "${FILESDIR}/${PN}-3.7.1-system_libraries.patch"
474 - "${FILESDIR}/${PN}-3.7.0-protoc_input_output_files.patch"
475 -)
476 -
477 -DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md)
478 -
479 -src_prepare() {
480 - default
481 - eautoreconf
482 -}
483 -
484 -src_configure() {
485 - append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
486 -
487 - if tc-ld-is-gold; then
488 - # https://sourceware.org/bugzilla/show_bug.cgi?id=24527
489 - tc-ld-disable-gold
490 - fi
491 -
492 - multilib-minimal_src_configure
493 -}
494 -
495 -multilib_src_configure() {
496 - local options=(
497 - $(use_enable static-libs static)
498 - $(use_with zlib)
499 - )
500 -
501 - if tc-is-cross-compiler; then
502 - # Build system uses protoc when building, so protoc copy runnable on host is needed.
503 - mkdir -p "${WORKDIR}/build" || die
504 - pushd "${WORKDIR}/build" > /dev/null || die
505 - ECONF_SOURCE="${S}" econf_build "${options[@]}"
506 - options+=(--with-protoc="$(pwd)/src/protoc")
507 - popd > /dev/null || die
508 - fi
509 -
510 - ECONF_SOURCE="${S}" econf "${options[@]}"
511 -}
512 -
513 -src_compile() {
514 - multilib-minimal_src_compile
515 -
516 - if use emacs; then
517 - elisp-compile editors/protobuf-mode.el
518 - fi
519 -}
520 -
521 -multilib_src_compile() {
522 - if tc-is-cross-compiler; then
523 - emake -C "${WORKDIR}/build/src" protoc
524 - fi
525 -
526 - default
527 -}
528 -
529 -multilib_src_test() {
530 - emake check
531 -}
532 -
533 -multilib_src_install_all() {
534 - find "${D}" -name "*.la" -delete || die
535 -
536 - insinto /usr/share/vim/vimfiles/syntax
537 - doins editors/proto.vim
538 - insinto /usr/share/vim/vimfiles/ftdetect
539 - doins "${FILESDIR}/proto.vim"
540 -
541 - if use emacs; then
542 - elisp-install ${PN} editors/protobuf-mode.el*
543 - elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
544 - fi
545 -
546 - if use examples; then
547 - DOCS+=(examples)
548 - docompress -x /usr/share/doc/${PF}/examples
549 - fi
550 -
551 - einstalldocs
552 -}
553 -
554 -pkg_postinst() {
555 - use emacs && elisp-site-regen
556 -}
557 -
558 -pkg_postrm() {
559 - use emacs && elisp-site-regen
560 -}