pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/nlohmann-json



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Feb  1 17:34:55 UTC 2023

Modified Files:
        pkgsrc/textproc/nlohmann-json: distinfo
Added Files:
        pkgsrc/textproc/nlohmann-json/patches:
            patch-tests_thirdparty_doctest_doctest.h

Log Message:
nlohmann-json: Avoid ambiguous function call.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/nlohmann-json/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/nlohmann-json/patches/patch-tests_thirdparty_doctest_doctest.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/nlohmann-json/distinfo
diff -u pkgsrc/textproc/nlohmann-json/distinfo:1.1 pkgsrc/textproc/nlohmann-json/distinfo:1.2
--- pkgsrc/textproc/nlohmann-json/distinfo:1.1  Wed Dec 28 20:18:21 2022
+++ pkgsrc/textproc/nlohmann-json/distinfo      Wed Feb  1 17:34:55 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2022/12/28 20:18:21 nikita Exp $
+$NetBSD: distinfo,v 1.2 2023/02/01 17:34:55 jperkin Exp $
 
 BLAKE2s (nlohmann-json-3.11.2.tar.gz) = c5caa9520466579cdee11e0831375f974b1be581ce764a41fc15979cd779aaba
 SHA512 (nlohmann-json-3.11.2.tar.gz) = 70097c9bcd7a91254acbd41b8b68a6aaa371fc2dd7011f472917f69f1e2d2986155a0339dad791699d542e4a3be44dc49ae72ff73d0ee0ea4b34183296ce19a0
 Size (nlohmann-json-3.11.2.tar.gz) = 8097673 bytes
+SHA1 (patch-tests_thirdparty_doctest_doctest.h) = c0d7e0d754e61c7670db8a392ad53fd46f95ff3c

Added files:

Index: pkgsrc/textproc/nlohmann-json/patches/patch-tests_thirdparty_doctest_doctest.h
diff -u /dev/null pkgsrc/textproc/nlohmann-json/patches/patch-tests_thirdparty_doctest_doctest.h:1.1
--- /dev/null   Wed Feb  1 17:34:55 2023
+++ pkgsrc/textproc/nlohmann-json/patches/patch-tests_thirdparty_doctest_doctest.h      Wed Feb  1 17:34:55 2023
@@ -0,0 +1,19 @@
+$NetBSD: patch-tests_thirdparty_doctest_doctest.h,v 1.1 2023/02/01 17:34:55 jperkin Exp $
+
+Avoid ambiguous function call.
+
+--- tests/thirdparty/doctest/doctest.h.orig    2022-08-12 13:06:06.000000000 +0000
++++ tests/thirdparty/doctest/doctest.h
+@@ -5803,9 +5803,9 @@ namespace {
+             separator_to_stream();
+             s << std::dec;
+ 
+-            auto totwidth = int(std::ceil(log10((std::max(p.numTestCasesPassingFilters, static_cast<unsigned>(p.numAsserts))) + 1)));
+-            auto passwidth = int(std::ceil(log10((std::max(p.numTestCasesPassingFilters - p.numTestCasesFailed, static_cast<unsigned>(p.numAsserts - p.numAssertsFailed))) + 1)));
+-            auto failwidth = int(std::ceil(log10((std::max(p.numTestCasesFailed, static_cast<unsigned>(p.numAssertsFailed))) + 1)));
++            auto totwidth = int(std::ceil(std::log10((std::max(p.numTestCasesPassingFilters, static_cast<unsigned>(p.numAsserts))) + 1)));
++            auto passwidth = int(std::ceil(std::log10((std::max(p.numTestCasesPassingFilters - p.numTestCasesFailed, static_cast<unsigned>(p.numAsserts - p.numAssertsFailed))) + 1)));
++            auto failwidth = int(std::ceil(std::log10((std::max(p.numTestCasesFailed, static_cast<unsigned>(p.numAssertsFailed))) + 1)));
+             const bool anythingFailed = p.numTestCasesFailed > 0 || p.numAssertsFailed > 0;
+             s << Color::Cyan << "[doctest] " << Color::None << "test cases: " << std::setw(totwidth)
+               << p.numTestCasesPassingFilters << " | "



Home | Main Index | Thread Index | Old Index