Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0B2F71A921F for ; Sun, 27 Mar 2022 12:04:08 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 2318284E80; Sun, 27 Mar 2022 12:04:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5843F84E7D for ; Sun, 27 Mar 2022 12:04:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id CT9xHh-JJnXl for ; Sun, 27 Mar 2022 12:04:05 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id B17D984C71 for ; Sun, 27 Mar 2022 12:04:05 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9E9E8FB24; Sun, 27 Mar 2022 12:04:05 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1648382645156460" MIME-Version: 1.0 Date: Sun, 27 Mar 2022 12:04:05 +0000 From: "Tobias Nygren" Subject: CVS commit: pkgsrc/benchmarks/google-benchmark To: pkgsrc-changes@NetBSD.org Reply-To: tnn@netbsd.org X-Mailer: log_accum Message-Id: <20220327120405.9E9E8FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1648382645156460 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: tnn Date: Sun Mar 27 12:04:05 UTC 2022 Modified Files: pkgsrc/benchmarks/google-benchmark: distinfo Added Files: pkgsrc/benchmarks/google-benchmark/patches: patch-test_benchmark__setup__teardown__test.cc Log Message: google-benchmark: fix build on SunOS To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 pkgsrc/benchmarks/google-benchmark/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/benchmarks/google-benchmark/patches/patch-test_benchmark__setup__teardown__test.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1648382645156460 Content-Disposition: inline Content-Length: 2835 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/benchmarks/google-benchmark/distinfo diff -u pkgsrc/benchmarks/google-benchmark/distinfo:1.16 pkgsrc/benchmarks/google-benchmark/distinfo:1.17 --- pkgsrc/benchmarks/google-benchmark/distinfo:1.16 Sun Jan 16 23:09:35 2022 +++ pkgsrc/benchmarks/google-benchmark/distinfo Sun Mar 27 12:04:05 2022 @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.16 2022/01/16 23:09:35 wiz Exp $ +$NetBSD: distinfo,v 1.17 2022/03/27 12:04:05 tnn Exp $ BLAKE2s (benchmark-1.6.1.tar.gz) = e1d824a20befda52931de3256cbf065724b076fdf4d6feb8b101e56d283f8418 SHA512 (benchmark-1.6.1.tar.gz) = 7d3e3baf5a2d92e9552ab5007c37253b3510ac269edf8922a2794ff3dfbd0bf5b4c519240d4577b1ec30ef9e8a64caa17a809054c3dc7f2b1bcd410596177d67 Size (benchmark-1.6.1.tar.gz) = 184616 bytes +SHA1 (patch-test_benchmark__setup__teardown__test.cc) = d3baa390eb590628fd42c85ce6ec42767e66c15b Added files: Index: pkgsrc/benchmarks/google-benchmark/patches/patch-test_benchmark__setup__teardown__test.cc diff -u /dev/null pkgsrc/benchmarks/google-benchmark/patches/patch-test_benchmark__setup__teardown__test.cc:1.1 --- /dev/null Sun Mar 27 12:04:05 2022 +++ pkgsrc/benchmarks/google-benchmark/patches/patch-test_benchmark__setup__teardown__test.cc Sun Mar 27 12:04:05 2022 @@ -0,0 +1,44 @@ +$NetBSD: patch-test_benchmark__setup__teardown__test.cc,v 1.1 2022/03/27 12:04:05 tnn Exp $ + +Rename namespace single due to conflict: +error: 'namespace single { }' redeclared as different kind of entity +/usr/include/floatingpoint.h:69:15: note: previous declaration 'typedef float single' + 69 | typedef float single; + +--- test/benchmark_setup_teardown_test.cc.orig 2022-01-10 19:14:27.000000000 +0000 ++++ test/benchmark_setup_teardown_test.cc +@@ -10,19 +10,19 @@ + + // Test that Setup() and Teardown() are called exactly once + // for each benchmark run (single-threaded). +-namespace single { ++namespace single_ { + static int setup_call = 0; + static int teardown_call = 0; +-} // namespace single ++} // namespace single_ + static void DoSetup1(const benchmark::State& state) { +- ++single::setup_call; ++ ++single_::setup_call; + + // Setup/Teardown should never be called with any thread_idx != 0. + assert(state.thread_index() == 0); + } + + static void DoTeardown1(const benchmark::State& state) { +- ++single::teardown_call; ++ ++single_::teardown_call; + assert(state.thread_index() == 0); + } + +@@ -134,8 +134,8 @@ int main(int argc, char** argv) { + assert(ret > 0); + + // Setup/Teardown is called once for each arg group (1,3,5,7). +- assert(single::setup_call == 4); +- assert(single::teardown_call == 4); ++ assert(single_::setup_call == 4); ++ assert(single_::teardown_call == 4); + + // 3 group of threads calling this function (3,5,10). + assert(concurrent::setup_call.load(std::memory_order_relaxed) == 3); --_----------=_1648382645156460--