Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package clingo for openSUSE:Factory checked in at 2026-04-28 11:57:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/clingo (Old) and /work/SRC/openSUSE:Factory/.clingo.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "clingo" Tue Apr 28 11:57:52 2026 rev:8 rq:1349546 version:5.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/clingo/clingo.changes 2025-08-19 16:44:51.063694657 +0200 +++ /work/SRC/openSUSE:Factory/.clingo.new.11940/clingo.changes 2026-04-28 12:01:48.763075002 +0200 @@ -1,0 +2,7 @@ +Mon Apr 27 09:40:47 UTC 2026 - Christian Goll <[email protected]> + +- Add clingo-re2c-4.3.1.patch to fix build failures on Tumbleweed + with re2c >= 4.3.1 (fixes "reference to undefined condition 'aspif'" + error in nongroundlexer). Patch from Debian gringo 5.8.0-2. + +------------------------------------------------------------------- @@ -23,0 +31,6 @@ + +------------------------------------------------------------------- +Wed May 7 04:53:29 UTC 2025 - Simon Lees <[email protected]> + +- export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes + minimum version warnings New: ---- clingo-re2c-4.3.1.patch ----------(New B)---------- New: - Add clingo-re2c-4.3.1.patch to fix build failures on Tumbleweed with re2c >= 4.3.1 (fixes "reference to undefined condition 'aspif'" ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ clingo.spec ++++++ --- /var/tmp/diff_new_pack.z2xAiB/_old 2026-04-28 12:01:49.315097870 +0200 +++ /var/tmp/diff_new_pack.z2xAiB/_new 2026-04-28 12:01:49.315097870 +0200 @@ -1,7 +1,7 @@ # # spec file for package clingo # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ Source0: https://github.com/potassco/clingo/archive/v%{version}/%{name}-%{version}.tar.gz # Disable gcc warning no-class-memaccess, which is intended use in this case Patch0: clingo.clasp-disable-class-memaccess-warning.patch +# Fix compilation with re2c 4.3.1 and later +Patch1: clingo-re2c-4.3.1.patch BuildRequires: bison BuildRequires: cmake >= 3.10 @@ -97,6 +99,9 @@ %autosetup -p1 %build +# Remove cmake4 error due to not setting +# min cmake version - sflees.de +export CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake \ -H. \ -Brelease \ ++++++ clingo-re2c-4.3.1.patch ++++++ Author: Roland Kaminski <[email protected]> Date: Fri, 26 Dec 2025 18:26:06 +0100 Description: Fix compilation with re2c 4.3.1 Debian-bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123395 Index: gringo/libgringo/src/input/nongroundlexer.xch =================================================================== --- gringo.orig/libgringo/src/input/nongroundlexer.xch 2025-12-26 19:33:09.407110165 +0100 +++ gringo/libgringo/src/input/nongroundlexer.xch 2025-12-26 19:33:09.401661895 +0100 @@ -52,7 +52,7 @@ WSNL = [\t\r\n ]*; SIG = WSNL ([-$])? WSNL IDENTIFIER WSNL "/" WSNL NUMBER WSNL "."; SCRIPT = "#script"; - THEORYOP = [/!<=>+\-*\\?&@|:;~\^\.]+; + THEORYOP = [/!<=>+\-*\\?&@|:;~^.]+; SUP = "#sup"("remum")?; INF = "#inf"("imum")?; KEYWORD = "#" [a-zA-Z0-9_]*; @@ -215,6 +215,7 @@ continue; } <comment> ANY { continue; } + <*> * { lexerError(end(loc), Potassco::toSpan("<unexpected>", 12)); return 0; } */ } assert(false); @@ -230,6 +231,7 @@ /*!re2c <aspif> NL { aspif_error_(loc, format("expected non-newline character but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } <aspif> ANY { continue; } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ } return string(); @@ -238,9 +240,12 @@ StringSpan NonGroundParser::aspif_nonl_string_(Location &loc) { start(loc); char yych; - /*!re2c - <aspif> [^\n]* { return string(); } - */ + for (;;) { + /*!re2c + <aspif> [^\n]* { break; } + <*> * { aspif_error_(loc, "unexpected lexer state"); } + */ + } return string(); } @@ -256,7 +261,8 @@ for (;;) { /*!re2c <aspif> " incremental" / (NL | WS) { incremental = true; break; } - <aspif> "" / ANY { break; } + <aspif> "" / ANY { break; } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ } aspif_nl_(loc); @@ -266,9 +272,10 @@ start(loc); char yych; /*!re2c - <aspif> WS { return; } - <aspif> NL { aspif_error_(loc, format("expected <SPACE> but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } - <aspif> NOWSNL+ { aspif_error_(loc, format("expected <SPACE> but got ", string()).c_str()); } + <aspif> WS { return; } + <aspif> NL { aspif_error_(loc, format("expected <SPACE> but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } + <aspif> NOWSNL+ { aspif_error_(loc, format("expected <SPACE> but got ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ } @@ -282,8 +289,9 @@ } aspif_error_(loc, format("expected <EOF> but got <EOL>").c_str()); } - <aspif> WS { aspif_error_(loc, format("expected <EOF> but got <SPACE>").c_str()); } - <aspif> NOWSNL+ { aspif_error_(loc, format("expected <EOF> but got ", string()).c_str()); } + <aspif> WS { aspif_error_(loc, format("expected <EOF> but got <SPACE>").c_str()); } + <aspif> NOWSNL+ { aspif_error_(loc, format("expected <EOF> but got ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ } @@ -298,8 +306,9 @@ step(); return; } - <aspif> WS { aspif_error_(loc, format("expected <EOL> but got <SPACE>").c_str()); } - <aspif> NOWSNL+ { aspif_error_(loc, format("expected <EOL> but got ", string()).c_str()); } + <aspif> WS { aspif_error_(loc, format("expected <EOL> but got <SPACE>").c_str()); } + <aspif> NOWSNL+ { aspif_error_(loc, format("expected <EOL> but got ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ } @@ -311,6 +320,7 @@ <aspif> NL { aspif_error_(loc, format("expected unsigned integer but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } <aspif> WS { aspif_error_(loc, "expected unsigned integer but got <SPACE>"); } <aspif> NOWSNL+ { aspif_error_(loc, format("expected unsigned integer but got token ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ return 0; } @@ -319,10 +329,11 @@ start(loc); char yych; /*!re2c - <aspif> DEC { return unsigned_integer(); } - <aspif> NL { aspif_error_(loc, format("expected integer but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } - <aspif> WS { aspif_error_(loc, "expected integer but got <SPACE>"); } - <aspif> NOWSNL+ { aspif_error_(loc, format("expected integer but got token ", string()).c_str()); } + <aspif> DEC { return unsigned_integer(); } + <aspif> NL { aspif_error_(loc, format("expected integer but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } + <aspif> WS { aspif_error_(loc, "expected integer but got <SPACE>"); } + <aspif> NOWSNL+ { aspif_error_(loc, format("expected integer but got token ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ return 0; @@ -332,10 +343,11 @@ start(loc); char yych; /*!re2c - <aspif> "asp" { return; } - <aspif> NL { aspif_error_(loc, format("expected 'asp' but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } - <aspif> WS { aspif_error_(loc, "expected 'asp' but got <SPACE>"); } - <aspif> NOWSNL+ { aspif_error_(loc, format("expected 'asp' but got token ", string()).c_str()); } + <aspif> "asp" { return; } + <aspif> NL { aspif_error_(loc, format("expected 'asp' but got ", eof() ? "<EOF>" : "<EOL>").c_str()); } + <aspif> WS { aspif_error_(loc, "expected 'asp' but got <SPACE>"); } + <aspif> NOWSNL+ { aspif_error_(loc, format("expected 'asp' but got token ", string()).c_str()); } + <*> * { aspif_error_(loc, "unexpected lexer state"); } */ }
