Received: by mail.netbsd.org (Postfix, from userid 605) id 1FA0284D80; Fri, 28 Oct 2022 18:06:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 512A684D31 for ; Fri, 28 Oct 2022 18:06:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id R80UThjWZmn3 for ; Fri, 28 Oct 2022 18:06:09 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id BCBD484CF9 for ; Fri, 28 Oct 2022 18:06:09 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B6676FA90; Fri, 28 Oct 2022 18:06:09 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1666980369116330" MIME-Version: 1.0 Date: Fri, 28 Oct 2022 18:06:09 +0000 From: "Havard Eidnes" Subject: CVS commit: pkgsrc/databases/libzdb To: pkgsrc-changes@NetBSD.org Reply-To: he@netbsd.org X-Mailer: log_accum Message-Id: <20221028180609.B6676FA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1666980369116330 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: he Date: Fri Oct 28 18:06:09 UTC 2022 Modified Files: pkgsrc/databases/libzdb: distinfo Added Files: pkgsrc/databases/libzdb/patches: patch-test_pool.c Log Message: databases/libzdb: fix one more test's time_t print issue on NetBSD. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 pkgsrc/databases/libzdb/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/databases/libzdb/patches/patch-test_pool.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1666980369116330 Content-Disposition: inline Content-Length: 2220 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/databases/libzdb/distinfo diff -u pkgsrc/databases/libzdb/distinfo:1.8 pkgsrc/databases/libzdb/distinfo:1.9 --- pkgsrc/databases/libzdb/distinfo:1.8 Fri Oct 28 17:59:47 2022 +++ pkgsrc/databases/libzdb/distinfo Fri Oct 28 18:06:09 2022 @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.8 2022/10/28 17:59:47 he Exp $ +$NetBSD: distinfo,v 1.9 2022/10/28 18:06:09 he Exp $ BLAKE2s (libzdb-3.2.2.tar.gz) = 9df58f68d011a948e1de1a90c74665a89cd61d63ebe1b223adfc588e859d6401 SHA512 (libzdb-3.2.2.tar.gz) = 1e732f8785322e0369de16a8100c9467e96ad1ca4eee31e8bfc349f4f17d4cc237a691addc060a66e1b46bcfeb99c3aed07b1d5dbe20e70fde4ffbf35dbea2eb Size (libzdb-3.2.2.tar.gz) = 752292 bytes SHA1 (patch-src_zdbpp.h) = c1dcdc7cea4ed55408107cb3e794ba38430ee4ae +SHA1 (patch-test_pool.c) = c96b47dc723b7fb7bf5e02cd3cdec49cb66d3656 SHA1 (patch-test_unit.c) = c7095217e6bf2fa04bb033ae8600fb04d85b4b69 Added files: Index: pkgsrc/databases/libzdb/patches/patch-test_pool.c diff -u /dev/null pkgsrc/databases/libzdb/patches/patch-test_pool.c:1.1 --- /dev/null Fri Oct 28 18:06:09 2022 +++ pkgsrc/databases/libzdb/patches/patch-test_pool.c Fri Oct 28 18:06:09 2022 @@ -0,0 +1,26 @@ +$NetBSD: patch-test_pool.c,v 1.1 2022/10/28 18:06:09 he Exp $ + +Fix handling of time_t on NetBSD. + +--- test/pool.c.orig 2019-04-30 14:11:41.000000000 +0000 ++++ test/pool.c +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + + #include "URL.h" + #include "Thread.h" +@@ -684,7 +685,11 @@ static void testPool(const char *testURL + assert(timestampAsTm.tm_sec == 58); + assert(timestampAsTm.TM_GMTOFF == 0); + // Result ++#if defined(__NetBSD__) ++ printf("\tDate: %s, Time: %s, DateTime: %s\n\tTimestamp as numeric: %" PRId64 ", Timestamp as string: %s\n", ++#else + printf("\tDate: %s, Time: %s, DateTime: %s\n\tTimestamp as numeric: %ld, Timestamp as string: %s\n", ++#endif + ResultSet_getString(r, 1), + ResultSet_getString(r, 2), + ResultSet_getString(r, 3), --_----------=_1666980369116330--