Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libexplain for openSUSE:Factory 
checked in at 2021-02-07 15:20:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libexplain (Old)
 and      /work/SRC/openSUSE:Factory/.libexplain.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libexplain"

Sun Feb  7 15:20:56 2021 rev:4 rq:869675 version:1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libexplain/libexplain.changes    2018-11-27 
10:43:11.320148548 +0100
+++ /work/SRC/openSUSE:Factory/.libexplain.new.28504/libexplain.changes 
2021-02-07 15:23:46.410182349 +0100
@@ -1,0 +2,8 @@
+Thu Feb  4 21:55:40 UTC 2021 - Christophe Giboudeaux <christo...@krop.fr>
+
+- Add patch to fix build with GCC 10:
+  * 0001-Fix-build-failure-with-GCC10.patch
+- Add patch from Debian to fix failures with recent bison versions:
+  * sanitize-bison.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-build-failure-with-GCC10.patch
  sanitize-bison.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libexplain.spec ++++++
--- /var/tmp/diff_new_pack.VcsQKv/_old  2021-02-07 15:23:46.958182975 +0100
+++ /var/tmp/diff_new_pack.VcsQKv/_new  2021-02-07 15:23:46.958182975 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libexplain
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,10 @@
 Patch1:         libexplain-1.4-syscall.patch
 # PATCH-FIX-UPSTREAM libexplain-1.4-missing-defines.patch mplus...@suse.com
 Patch2:         libexplain-1.4-missing-defines.patch
+# PATCH-FIX-UPSTREAM
+Patch3:         0001-Fix-build-failure-with-GCC10.patch
+# PATCH-FIX-UPSTREAM
+Patch4:         sanitize-bison.patch
 BuildRequires:  bison
 BuildRequires:  ghostscript
 BuildRequires:  groff-full
@@ -89,6 +93,8 @@
 %patch0
 %patch1
 %patch2
+%patch3 -p1
+%patch4 -p1
 
 %build
 %configure

++++++ 0001-Fix-build-failure-with-GCC10.patch ++++++
>From b021f9835185ed262f203f83b9e6643d6374f9be Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christo...@krop.fr>
Date: Thu, 4 Feb 2021 22:42:13 +0100
Subject: [PATCH] Fix build failure with GCC10

---
 libexplain/output/stderr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexplain/output/stderr.h b/libexplain/output/stderr.h
index 5494880..7956cfc 100644
--- a/libexplain/output/stderr.h
+++ b/libexplain/output/stderr.h
@@ -22,7 +22,7 @@
 
 #include <libexplain/output.h>
 
-explain_output_t explain_output_static_stderr;
+extern explain_output_t explain_output_static_stderr;
 
 #endif /* LIBEXPLAIN_OUTPUT_STDERR_H */
 /* vim: set ts=8 sw=4 et : */
-- 
2.30.0

++++++ sanitize-bison.patch ++++++
Author: Andreas Beckmann <a...@debian.org>
Description: sanitize bison usage
 use
   %define api.prefix {...}
 instead of crude
   sed -e 's/[yY][yY]/.../g'

 Thanks to Akim Demaille for the hint! (#960608)

--- a/codegen/gram.y
+++ b/codegen/gram.y
@@ -17,6 +17,8 @@
  * with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+%define api.prefix {gram_}
+
 %{
 
 #include <libexplain/ac/stdio.h>
--- a/libexplain/acl_grammar.y
+++ b/libexplain/acl_grammar.y
@@ -17,6 +17,8 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+%define api.prefix {acl_grammar_}
+
 %{
 
 #include <libexplain/ac/ctype.h>
--- a/libexplain/parse_bits.y
+++ b/libexplain/parse_bits.y
@@ -17,6 +17,8 @@
  along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+%define api.prefix {parse_bits_}
+
 %{
 
 #include <libexplain/ac/ctype.h>
--- a/libexplain/printf_format.y
+++ b/libexplain/printf_format.y
@@ -17,6 +17,8 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+%define api.prefix {printf_format_}
+
 %{
 
 #include <libexplain/ac/assert.h>
--- a/Makefile.in
+++ b/Makefile.in
@@ -357,9 +357,9 @@ codegen/get_user_name.$(OBJEXT) codegen/
 
 codegen/gram.yacc.c codegen/gram.yacc.h: codegen/gram.y
        $(YACC) -d $(YFLAGS) codegen/gram.y
-       sed -e 's/[yY][yY]/gram_/g' -e '/<stdio.h>/d' -e '/<stdlib.h>/d' -e \
+       sed -e '/<stdio.h>/d' -e '/<stdlib.h>/d' -e \
                '/<stddef.h>/d' y.tab.c > codegen/gram.yacc.c
-       sed -e 's/[yY][yY]/gram_/g' -e 's/Y_TAB_H/codegen_gram_YACC_H/g' \
+       sed -e '' \
                y.tab.h > codegen/gram.yacc.h
        test -f y.output && mv y.output codegen/gram.output || true
        rm -f y.tab.c y.tab.h y.output || true
@@ -4016,11 +4016,10 @@ libexplain/acl_get_file_or_die.$(OBJEXT)
 libexplain/acl_grammar.yacc.c libexplain/acl_grammar.yacc.h: \
                libexplain/acl_grammar.y
        $(YACC) -d $(YFLAGS) libexplain/acl_grammar.y
-       sed -e 's/[yY][yY]/acl_grammar_/g' -e '/<stdio.h>/d' -e \
+       sed -e '/<stdio.h>/d' -e \
                '/<stdlib.h>/d' -e '/<stddef.h>/d' y.tab.c > \
                libexplain/acl_grammar.yacc.c
-       sed -e 's/[yY][yY]/acl_grammar_/g' -e \
-               's/Y_TAB_H/libexplain_acl_grammar_YACC_H/g' y.tab.h > \
+       sed -e '' y.tab.h > \
                libexplain/acl_grammar.yacc.h
        test -f y.output && mv y.output libexplain/acl_grammar.output || true
        rm -f y.tab.c y.tab.h y.output || true
@@ -31058,10 +31057,9 @@ libexplain/output/warning.$(OBJEXT) libe
 libexplain/parse_bits.yacc.c libexplain/parse_bits.yacc.h: \
                libexplain/parse_bits.y
        $(YACC) -d $(YFLAGS) libexplain/parse_bits.y
-       sed -e 's/[yY][yY]/parse_bits_/g' -e '/<stdio.h>/d' -e '/<stdlib.h>/d' \
+       sed -e '/<stdio.h>/d' -e '/<stdlib.h>/d' \
                -e '/<stddef.h>/d' y.tab.c > libexplain/parse_bits.yacc.c
-       sed -e 's/[yY][yY]/parse_bits_/g' -e \
-               's/Y_TAB_H/libexplain_parse_bits_YACC_H/g' y.tab.h > \
+       sed -e '' y.tab.h > \
                libexplain/parse_bits.yacc.h
        test -f y.output && mv y.output libexplain/parse_bits.output || true
        rm -f y.tab.c y.tab.h y.output || true
@@ -31418,11 +31416,10 @@ $(includedir)/libexplain/printf.h: .mkdi
 libexplain/printf_format.yacc.c libexplain/printf_format.yacc.h: \
                libexplain/printf_format.y
        $(YACC) -d $(YFLAGS) libexplain/printf_format.y
-       sed -e 's/[yY][yY]/printf_format_/g' -e '/<stdio.h>/d' -e \
+       sed -e '/<stdio.h>/d' -e \
                '/<stdlib.h>/d' -e '/<stddef.h>/d' y.tab.c > \
                libexplain/printf_format.yacc.c
-       sed -e 's/[yY][yY]/printf_format_/g' -e \
-               's/Y_TAB_H/libexplain_printf_format_YACC_H/g' y.tab.h > \
+       sed -e '' y.tab.h > \
                libexplain/printf_format.yacc.h
        test -f y.output && mv y.output libexplain/printf_format.output || true
        rm -f y.tab.c y.tab.h y.output || true

Reply via email to