Hello community,

here is the log from the commit of package trustedgrub2 for openSUSE:Factory 
checked in at 2017-07-27 11:13:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trustedgrub2 (Old)
 and      /work/SRC/openSUSE:Factory/.trustedgrub2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trustedgrub2"

Thu Jul 27 11:13:17 2017 rev:5 rq:512723 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/trustedgrub2/trustedgrub2.changes        
2017-06-07 09:56:12.727995635 +0200
+++ /work/SRC/openSUSE:Factory/.trustedgrub2.new/trustedgrub2.changes   
2017-07-27 11:13:46.916438540 +0200
@@ -1,0 +2,6 @@
+Thu Jul 27 04:05:27 UTC 2017 - [email protected]
+
+- Fix build against flex-2.6.4
+  * grub2-fix-build-with-flex-2.6.4.patch 
+
+-------------------------------------------------------------------

New:
----
  grub2-fix-build-with-flex-2.6.4.patch

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

Other differences:
------------------
++++++ trustedgrub2.spec ++++++
--- /var/tmp/diff_new_pack.UcRR3x/_old  2017-07-27 11:13:47.564347019 +0200
+++ /var/tmp/diff_new_pack.UcRR3x/_new  2017-07-27 11:13:47.568346454 +0200
@@ -34,10 +34,12 @@
 Patch5:         trustedgrub2-no-pie.patch
 # from upstream b53f595b3ed989335d7cd1618a5502270cdb26de
 Patch6:         trustedgrub2-no-pie2.patch
-# fix build aginst gcc-7
+# fix build against gcc-7
 Patch7:         0001-btrfs-avoid-used-uninitialized-error-with-GCC7.patch
 Patch8:         0002-i386-x86_64-ppc-fix-switch-fallthrough-cases-with-GC.patch
 Patch9:         0003-Add-gnulib-fix-gcc7-fallthrough.diff.patch
+# fix build against flex-2.6.4
+Patch10:        grub2-fix-build-with-flex-2.6.4.patch
 # Btrfs snapshot booting related patches
 Patch101:       grub2-btrfs-01-add-ability-to-boot-from-subvolumes.patch
 Patch102:       grub2-btrfs-02-export-subvolume-envvars.patch
@@ -97,6 +99,7 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 %patch101 -p1
 %patch102 -p1
 %patch103 -p1

++++++ grub2-fix-build-with-flex-2.6.4.patch ++++++
From: Andrei Borzenkov <[email protected]>

Fix build with flex 2.6.4+. It no more casts fprintf() call to void, resulting 
in

[  108s] grub_script.yy.c: In function 'yy_fatal_error':
[  108s] grub_script.yy.c:18:22: error: statement with no effect 
[-Werror=unused-value]
[  108s]  

as grub2 defines fprintf as 0. Change it to explicitly define fprintf as 
(void)0.

flex commit: 
https://github.com/westes/flex/commit/a58086a269d3d7367530c1a178644a8e5f1a374f
Index: trustedgrub2-1.4.0/grub-core/script/yylex.l
===================================================================
--- trustedgrub2-1.4.0.orig/grub-core/script/yylex.l
+++ trustedgrub2-1.4.0/grub-core/script/yylex.l
@@ -91,7 +91,7 @@ typedef size_t yy_size_t;
 #define stdin  0
 #define stdout 0
 
-#define fprintf(...) 0
+#define fprintf(...) (void)0
 #define exit(...)
 #endif
 

Reply via email to