Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/spdlog spdlog: Update to 1.6.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c4a8b0b27d7
branches:  trunk
changeset: 433597:4c4a8b0b27d7
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Jun 05 11:22:44 2020 +0000

description:
spdlog: Update to 1.6.1

Changelog:
1.6.1
    Fixed deadlock in daily_file_sink that happened while cleaning older files. Thanks @IIFE for reporting(#1570) and for fixing(#1571).

    Fixed ringbuffer_sink::last_raw() and ringbuffer_sink::last_formatted() that didn't return latest elements. Thanks @vekkuli for reporting and fixing (#1563).

    Fixed missing symbol wstr_to_utf8buf(..) in windows dll build. Thanks @haquocviet for reporting (#1569).

    Bumped bundled fmt to version 6.2.1.

1.6.0
What's new

    Load log levels from environment variable SPDLOG_LEVEL :

#include "spdlog/cfg/env.h"
...
spdlog::cfg::load_env_levels();

$ # set log level to debug
$  SPDLOG_LEVEL=debug && ./example

$ # set to info except for mylogger which is set to trace:
$ SPDLOG_LEVEL=info,mylogger=trace  && ./example

$ # turn off all logging except for mylogger which is set to debug::
$ SPDLOG_LEVEL=off,mylogger=debug && ./example

    Load log levels from argv (e.g. ./example SPDLOG_LEVEL=debug):

#include "spdlog/cfg/argv.h"
...
spdlog::cfg::load_argv_levels(argc, argv);

    New windows eventlog sink . Thanks @ban-dana (#1418).

    New tcp sink that sends log messages in tcp to a remote server. Thanks @Proheeler (#1426).

    Extend spdlog with your own flags in the log pattern. See wiki for details.

    Support for building spdlog as dll under windows. Thanks vejmartin (#1467, 3b73278, 5b3a183).

    Bump the bundled fmt version to 6.2.0 .

Fixes and Improvements

    Prevent race condition when SPDLOG_PREVENT_CHILD_FD is defined. Thanks @dominicpoeschko (#1423).

    Fix race condition in the filename() function in the file sinks. Thanks @tt4g (#1430, #1431).

    Fix ansicolor_sink::set_color(..) - can cause memory violation if user provides a custom color code that points to stack memory (#1540, 0b36d4e). Thanks @caizongchao for reporting.

    Fix potential buffer overflow in color_sinks if creating multiple color sinks in the same logger and one of them has a pattern without color flags (#1452, 64de880). Thanks @dominicpoeschko for 
reporting.

    Optimize cases when string_view is passed to the logger to avoid unnecessary fmt::format. Thanks dominicpoeschko (#1424) .

    Support for max files in daily logger - delete oldest files after creating the daily file. Thanks @ruoshui1314 (#1394).

    Fix deprecated warning with C++14 and external fmt lib (#1439). Thanks @ClausKlein for reporting.

    Optimize colos sinks to use std::array instead of map to find color codes (695912c, 4b7c059). Thanks @qis for the suggestion.

    Fix Win32 event log sink compilation. Thanks @Crunkle (#1444).

    Don't include windows.h in common.h. Thanks @ghost (#1453).

    Resolve erroneous clang-tidy warning about using a moved from pointer. Thanks @Ruffel (#1457).

    Fixed numerous clang-tidy warnings.

    Added options to to_hex to output hex like hexdump. Thanks @ngugcx (#1472).

    Fix Windows setenv check. Thanks @Crunkle (#1475).

    Removed the 'SPDLOG_NO_NAME` macro in tweakme.h and cmake.

    Added a forward declaration header spdlog\fwd.h . Thanks @horenmar for the suggestion (#1481).

    Moved throw to dedicated function to optimize compile-time and runtime-performance. Thanks @horenmar for the suggestion (#1483).

    Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined. Thanks @Naios (#1487).

    Fix issue with using external fmt (#1480). Thanks @nalinigans for reporting.

    Minor performance optimizations in pattern formatter (ca9c83f, 76389e0, 7766bc2, d38bd13)

    Fixed on Android compilation #1527. Thanks @Bizyroth for reporting.

    Add log function to the logger API to allow logging with custom timepoint. #1521 - Thanks @ron003 .

    Fix missing exported symbol when building spdlog.dll in windows (#1535, 348c438). Thanks @plmzod for reporting.

    Dropped meson support.

    Fix typos and tabs in the code. Thanks @waywardmonkeys (#1536) .

    CMake: Fix GNUInstallDirs include location Thanks @vitlav (#1407).

    CMake: workaround for Unknown extension ".c" for file issue . Thanks @niamster (#1442).

    CMake: Support CPack RPM generation. Thanks @tcraigtyler (#1451).

    CMake: Disabled extra warnings generation by default. Use SPDLOG_BUILD_WARNINGS=ON to enable again. Thanks @Glamhoth (#1503 02802af, 6440733, 1f7f1c1)

    CMake: Support for precompiled headers with SPDLOG_ENABLE_PCH flag. Thanks @OlivierLDff (#1484).

    CMake: Add /WX MSVC compiler option for only if mscv compiler is used. Thanks @trondhe (#1495).

    CMake: Set minimum version of fmt to 5.3.0. Thanks @Montellese (#1525).

    CMake: Fix tabs, whitespaces and eol. Thanks @waywardmonkeys (#1537).

    Tests: removed duplicate entry for count_lines(). Thanks @emmenlau (#1417).

    Tests: don't run spdlog-utests and spdlog-utests-ho in parallel. Thanks @tt4g (#1421).

    Tests: Enable running the tests against an installed copy of spdlog. Thanks @mr-c (#1422).

    Tests: Support empty SPDLOG_EOL. Thanks @emmenlau (#1414).

    README: add conda as a supported package manager . Thanks @avrahamshukron (#1473).

    README: Replace yaourt with yay` pacakge manage for archlinux. Thanks @zyansheep (#1494).

diffstat:

 devel/spdlog/Makefile |  11 +++++------
 devel/spdlog/PLIST    |  21 ++++++++++++++++++---
 devel/spdlog/distinfo |  10 +++++-----
 3 files changed, 28 insertions(+), 14 deletions(-)

diffs (109 lines):

diff -r a6141769b0e7 -r 4c4a8b0b27d7 devel/spdlog/Makefile
--- a/devel/spdlog/Makefile     Fri Jun 05 10:44:59 2020 +0000
+++ b/devel/spdlog/Makefile     Fri Jun 05 11:22:44 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/02/05 13:32:27 ryoon Exp $
+# $NetBSD: Makefile,v 1.2 2020/06/05 11:22:44 ryoon Exp $
 
-DISTNAME=              spdlog-1.5.0
+DISTNAME=              spdlog-1.6.1
 CATEGORIES=            devel
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=gabime/}
 GITHUB_PROJECT=                spdlog
@@ -11,12 +11,11 @@
 COMMENT=               Fast C++ logging library
 LICENSE=               mit
 
-USE_LANGUAGES=         c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            pkg-config
+USE_CMAKE=             yes
 
-PKGCONFIG_OVERRIDE_STAGE=      post-configure
-PKGCONFIG_OVERRIDE+=           output/meson-private/spdlog.pc
+PKGCONFIG_OVERRIDE+=           cmake/spdlog.pc.in
 
-.include "../../devel/meson/build.mk"
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a6141769b0e7 -r 4c4a8b0b27d7 devel/spdlog/PLIST
--- a/devel/spdlog/PLIST        Fri Jun 05 10:44:59 2020 +0000
+++ b/devel/spdlog/PLIST        Fri Jun 05 11:22:44 2020 +0000
@@ -1,7 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1 2020/02/05 13:32:27 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/06/05 11:22:44 ryoon Exp $
 include/spdlog/async.h
 include/spdlog/async_logger-inl.h
 include/spdlog/async_logger.h
+include/spdlog/cfg/argv.h
+include/spdlog/cfg/env.h
+include/spdlog/cfg/helpers-inl.h
+include/spdlog/cfg/helpers.h
+include/spdlog/cfg/log_levels.h
 include/spdlog/common-inl.h
 include/spdlog/common.h
 include/spdlog/details/backtracer-inl.h
@@ -19,15 +24,16 @@
 include/spdlog/details/null_mutex.h
 include/spdlog/details/os-inl.h
 include/spdlog/details/os.h
-include/spdlog/details/pattern_formatter-inl.h
-include/spdlog/details/pattern_formatter.h
 include/spdlog/details/periodic_worker-inl.h
 include/spdlog/details/periodic_worker.h
 include/spdlog/details/registry-inl.h
 include/spdlog/details/registry.h
 include/spdlog/details/synchronous_factory.h
+include/spdlog/details/tcp_client-windows.h
+include/spdlog/details/tcp_client.h
 include/spdlog/details/thread_pool-inl.h
 include/spdlog/details/thread_pool.h
+include/spdlog/details/windows_include.h
 include/spdlog/fmt/bin_to_hex.h
 include/spdlog/fmt/bundled/LICENSE.rst
 include/spdlog/fmt/bundled/chrono.h
@@ -44,8 +50,11 @@
 include/spdlog/fmt/fmt.h
 include/spdlog/fmt/ostr.h
 include/spdlog/formatter.h
+include/spdlog/fwd.h
 include/spdlog/logger-inl.h
 include/spdlog/logger.h
+include/spdlog/pattern_formatter-inl.h
+include/spdlog/pattern_formatter.h
 include/spdlog/sinks/android_sink.h
 include/spdlog/sinks/ansicolor_sink-inl.h
 include/spdlog/sinks/ansicolor_sink.h
@@ -70,11 +79,17 @@
 include/spdlog/sinks/stdout_sinks.h
 include/spdlog/sinks/syslog_sink.h
 include/spdlog/sinks/systemd_sink.h
+include/spdlog/sinks/tcp_sink.h
+include/spdlog/sinks/win_eventlog_sink.h
 include/spdlog/sinks/wincolor_sink-inl.h
 include/spdlog/sinks/wincolor_sink.h
 include/spdlog/spdlog-inl.h
 include/spdlog/spdlog.h
 include/spdlog/tweakme.h
 include/spdlog/version.h
+lib/cmake/spdlog/spdlogConfig.cmake
+lib/cmake/spdlog/spdlogConfigTargets-release.cmake
+lib/cmake/spdlog/spdlogConfigTargets.cmake
+lib/cmake/spdlog/spdlogConfigVersion.cmake
 lib/libspdlog.a
 lib/pkgconfig/spdlog.pc
diff -r a6141769b0e7 -r 4c4a8b0b27d7 devel/spdlog/distinfo
--- a/devel/spdlog/distinfo     Fri Jun 05 10:44:59 2020 +0000
+++ b/devel/spdlog/distinfo     Fri Jun 05 11:22:44 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/02/05 13:32:27 ryoon Exp $
+$NetBSD: distinfo,v 1.2 2020/06/05 11:22:44 ryoon Exp $
 
-SHA1 (spdlog-1.5.0.tar.gz) = e7aa5db40beeac011590d879931ff4f1382d507e
-RMD160 (spdlog-1.5.0.tar.gz) = aff8f2931396d1ef3ed9956cfe1ced774647a663
-SHA512 (spdlog-1.5.0.tar.gz) = 78991c943dd95af563c4b29545b9b5d635caf1af5031262dde734ecf70c0b4ae866d954ee77b050f9f0cc089a3bc57ee9583895e51cb00dd1cc6c10ff905ca34
-Size (spdlog-1.5.0.tar.gz) = 270416 bytes
+SHA1 (spdlog-1.6.1.tar.gz) = dad49a321f313dd6d9d09b64694f01d76af13432
+RMD160 (spdlog-1.6.1.tar.gz) = 5c218c33a8b295969b4fc771d4a3632c341509ef
+SHA512 (spdlog-1.6.1.tar.gz) = 1e15e7710744212240d79897af8c3bde14fe3b745a1377643d18dc0038f18fc7582236ff21836d3eae2c75cf1f4820ca4c642c5c3f63f9ae138289aa4d00e22e
+Size (spdlog-1.6.1.tar.gz) = 285531 bytes



Home | Main Index | Thread Index | Old Index