commit fmt for openSUSE:Factory
Hello community, here is the log from the commit of package fmt for openSUSE:Factory checked in at 2020-08-02 12:28:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fmt (Old) and /work/SRC/openSUSE:Factory/.fmt.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "fmt" Sun Aug 2 12:28:53 2020 rev:11 rq:823446 version:7.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/fmt/fmt.changes 2020-07-16 12:07:35.090305437 +0200 +++ /work/SRC/openSUSE:Factory/.fmt.new.3592/fmt.changes 2020-08-02 12:29:38.723936530 +0200 @@ -1,0 +2,9 @@ +Wed Jul 29 17:33:10 UTC 2020 - aloisio@gmx.com + +- Update to version 7.0.2 + * Worked around broken ``numeric_limits`` for 128-bit integers + * Fixed compatibility with CMake 3.4 + * Fixed handling of digit separators in locale-specific + formatting + +------------------------------------------------------------------- Old: ---- fmt-7.0.1.tar.gz New: ---- fmt-7.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fmt.spec ++++++ --- /var/tmp/diff_new_pack.CJhDoR/_old 2020-08-02 12:29:39.267937090 +0200 +++ /var/tmp/diff_new_pack.CJhDoR/_new 2020-08-02 12:29:39.271937094 +0200 @@ -18,7 +18,7 @@ %define sover 7 Name: fmt -Version: 7.0.1 +Version: 7.0.2 Release: 0 Summary: A formatting library for C++ License: MIT ++++++ fmt-7.0.1.tar.gz -> fmt-7.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/CMakeLists.txt new/fmt-7.0.2/CMakeLists.txt --- old/fmt-7.0.1/CMakeLists.txt 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/CMakeLists.txt 2020-07-29 16:30:55.000000000 +0200 @@ -24,15 +24,23 @@ set(${result_var} "${result}" PARENT_SCOPE) endfunction() +include(CMakeParseArguments) + # Sets a cache variable with a docstring joined from multiple arguments: # set(<variable> <value>... CACHE <type> <docstring>...) # This allows splitting a long docstring for readability. function(set_verbose) - cmake_parse_arguments(SET_VERBOSE "" "" "CACHE" ${ARGN}) - list(GET SET_VERBOSE_CACHE 0 type) - list(REMOVE_AT SET_VERBOSE_CACHE 0) - join(doc ${SET_VERBOSE_CACHE}) - set(${SET_VERBOSE_UNPARSED_ARGUMENTS} CACHE ${type} ${doc}) + # cmake_parse_arguments is broken in CMake 3.4 (cannot parse CACHE) so use + # list instead. + list(GET ARGN 0 var) + list(REMOVE_AT ARGN 0) + list(GET ARGN 0 val) + list(REMOVE_AT ARGN 0) + list(REMOVE_AT ARGN 0) + list(GET ARGN 0 type) + list(REMOVE_AT ARGN 0) + join(doc ${ARGN}) + set(${var} ${val} CACHE ${type} ${doc}) endfunction() # Set the default CMAKE_BUILD_TYPE to Release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/ChangeLog.rst new/fmt-7.0.2/ChangeLog.rst --- old/fmt-7.0.1/ChangeLog.rst 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/ChangeLog.rst 2020-07-29 16:30:55.000000000 +0200 @@ -1,3 +1,15 @@ +7.0.2 - 2020-07-29 +------------------ + +* Worked around broken ``numeric_limits`` for 128-bit integers + (`#1725 <https://github.com/fmtlib/fmt/issues/1725>`_). + +* Fixed compatibility with CMake 3.4 + (`#1779 <https://github.com/fmtlib/fmt/issues/1779>`_). + +* Fixed handling of digit separators in locale-specific formatting + (`#1782 <https://github.com/fmtlib/fmt/issues/1782>`_). + 7.0.1 - 2020-07-07 ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/doc/build.py new/fmt-7.0.2/doc/build.py --- old/fmt-7.0.1/doc/build.py 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/doc/build.py 2020-07-29 16:30:55.000000000 +0200 @@ -6,7 +6,7 @@ from subprocess import check_call, check_output, CalledProcessError, Popen, PIPE from distutils.version import LooseVersion -versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0', '6.0.0', '6.1.0', '6.1.1', '6.1.2', '6.2.0', '6.2.1', '7.0.0', '7.0.1'] +versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0', '6.0.0', '6.1.0', '6.1.1', '6.1.2', '6.2.0', '6.2.1', '7.0.0', '7.0.1', '7.0.2'] def pip_install(package, commit=None, **kwargs): "Install package using pip." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/include/fmt/core.h new/fmt-7.0.2/include/fmt/core.h --- old/fmt-7.0.1/include/fmt/core.h 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/include/fmt/core.h 2020-07-29 16:30:55.000000000 +0200 @@ -18,7 +18,7 @@ #include <vector> // The fmt library version in the form major * 10000 + minor * 100 + patch. -#define FMT_VERSION 70001 +#define FMT_VERSION 70002 #ifdef __clang__ # define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/include/fmt/format.h new/fmt-7.0.2/include/fmt/format.h --- old/fmt-7.0.1/include/fmt/format.h 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/include/fmt/format.h 2020-07-29 16:30:55.000000000 +0200 @@ -283,6 +283,9 @@ template <typename T> constexpr int num_bits() { return std::numeric_limits<T>::digits; } +// std::numeric_limits<T>::digits may return 0 for 128-bit ints. +template <> constexpr int num_bits<int128_t>() { return 128; } +template <> constexpr int num_bits<uint128_t>() { return 128; } template <> constexpr int num_bits<fallback_uintptr>() { return static_cast<int>(sizeof(void*) * std::numeric_limits<unsigned char>::digits); @@ -743,8 +746,8 @@ // represent all values of T. template <typename T> using uint32_or_64_or_128_t = conditional_t< - std::numeric_limits<T>::digits <= 32, uint32_t, - conditional_t<std::numeric_limits<T>::digits <= 64, uint64_t, uint128_t>>; + num_bits<T>() <= 32, uint32_t, + conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>; // Static data is placed in this class template for the header-only config. template <typename T = void> struct FMT_EXTERN_TEMPLATE_API basic_data { @@ -1559,7 +1562,7 @@ int num_digits = count_digits(abs_value); int size = num_digits, n = num_digits; std::string::const_iterator group = groups.cbegin(); - while (group != groups.cend() && num_digits > *group && *group > 0 && + while (group != groups.cend() && n > *group && *group > 0 && *group != max_value<char>()) { size += sep_size; n -= *group; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-7.0.1/test/locale-test.cc new/fmt-7.0.2/test/locale-test.cc --- old/fmt-7.0.1/test/locale-test.cc 2020-07-07 16:47:44.000000000 +0200 +++ new/fmt-7.0.2/test/locale-test.cc 2020-07-29 16:30:55.000000000 +0200 @@ -61,6 +61,7 @@ std::locale special_grouping_loc(std::locale(), new special_grouping<char>()); EXPECT_EQ("1,23,45,678", fmt::format(special_grouping_loc, "{:L}", 12345678)); + EXPECT_EQ("12,345", fmt::format(special_grouping_loc, "{:L}", 12345)); std::locale small_grouping_loc(std::locale(), new small_grouping<char>()); EXPECT_EQ("4,2,9,4,9,6,7,2,9,5",
participants (1)
-
root