Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ctre for openSUSE:Factory checked in at 2023-11-22 18:55:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ctre (Old) and /work/SRC/openSUSE:Factory/.ctre.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ctre" Wed Nov 22 18:55:00 2023 rev:2 rq:1128059 version:3.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ctre/ctre.changes 2023-11-21 21:34:47.041468730 +0100 +++ /work/SRC/openSUSE:Factory/.ctre.new.25432/ctre.changes 2023-11-22 18:55:23.697307630 +0100 @@ -1,0 +2,5 @@ +Wed Nov 22 09:46:53 UTC 2023 - Andreas Schwab <schwab@suse.de> + +- unsigned-char.patch: Fix bogus tests that depend on signed char + +------------------------------------------------------------------- New: ---- unsigned-char.patch BETA DEBUG BEGIN: New: - unsigned-char.patch: Fix bogus tests that depend on signed char BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ctre.spec ++++++ --- /var/tmp/diff_new_pack.pjJcST/_old 2023-11-22 18:55:24.693344185 +0100 +++ /var/tmp/diff_new_pack.pjJcST/_new 2023-11-22 18:55:24.693344185 +0100 @@ -26,12 +26,12 @@ License: Apache-2.0 URL: https://github.com/hanickadot/compile-time-regular-expressions/ Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%version.tar.gz +# https://github.com/hanickadot/compile-time-regular-expressions/issues/253 +Patch1: unsigned-char.patch BuildRequires: cmake BuildRequires: gcc%{?gcc_ver}-c++ BuildRequires: pkgconfig BuildArch: noarch -# https://github.com/hanickadot/compile-time-regular-expressions/issues/253 -ExcludeArch: aarch64 %{arm} %description A compile-time regular expressions with support for @@ -46,7 +46,7 @@ developing applications against ctre. %prep -%autosetup -n compile-time-regular-expressions-%{version} +%autosetup -p1 -n compile-time-regular-expressions-%{version} %build %cmake \ ++++++ unsigned-char.patch ++++++ Index: compile-time-regular-expressions-3.8.1/tests/generating.cpp =================================================================== --- compile-time-regular-expressions-3.8.1.orig/tests/generating.cpp +++ compile-time-regular-expressions-3.8.1/tests/generating.cpp @@ -1,3 +1,4 @@ +#include <climits> #include <ctre.hpp> void empty_symbol() { } @@ -52,10 +53,16 @@ static_assert(same_f(CTRE_GEN("(?:abc)") // support for hexdec static_assert(same_f(CTRE_GEN("\\x40"), ctre::character<char{0x40}>())); static_assert(same_f(CTRE_GEN("\\x7F"), ctre::character<char{0x7F}>())); +#if CHAR_MAX < 128 // only characters with value < 128 are char otherwise they are internally char32_t static_assert(same_f(CTRE_GEN("\\x80"), ctre::character<char32_t{0x80}>())); static_assert(same_f(CTRE_GEN("\\xFF"), ctre::character<char32_t{0xFF}>())); static_assert(same_f(CTRE_GEN("\\x{FF}"), ctre::character<char32_t{0xFF}>())); +#else +static_assert(same_f(CTRE_GEN("\\x80"), ctre::character<char{0x80}>())); +static_assert(same_f(CTRE_GEN("\\xFF"), ctre::character<char{0xFF}>())); +static_assert(same_f(CTRE_GEN("\\x{FF}"), ctre::character<char{0xFF}>())); +#endif static_assert(same_f(CTRE_GEN("\\x{FFF}"), ctre::character<char32_t{0xFFF}>())); static_assert(same_f(CTRE_GEN("\\x{ABCD}"), ctre::character<char32_t{0xABCD}>()));