Hello community, here is the log from the commit of package grub2 for openSUSE:Factory checked in at 2017-07-12 19:30:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grub2 (Old) and /work/SRC/openSUSE:Factory/.grub2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grub2" Wed Jul 12 19:30:22 2017 rev:164 rq:508680 version:2.02 Changes: -------- --- /work/SRC/openSUSE:Factory/grub2/grub2.changes 2017-06-05 18:49:54.344908418 +0200 +++ /work/SRC/openSUSE:Factory/.grub2.new/grub2.changes 2017-07-12 19:30:23.815849008 +0200 @@ -1,0 +2,6 @@ +Tue Jul 4 16:56:33 UTC 2017 - arvidj...@gmail.com + +- add grub2-fix-build-with-flex-2.6.4.patch - fix build with flex 2.6.4+ + that removed explicit (void) cast from fprintf call in yy_fatal_error. + +------------------------------------------------------------------- New: ---- grub2-fix-build-with-flex-2.6.4.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grub2.spec ++++++ --- /var/tmp/diff_new_pack.G7IN9X/_old 2017-07-12 19:30:25.951547674 +0200 +++ /var/tmp/diff_new_pack.G7IN9X/_new 2017-07-12 19:30:25.955547109 +0200 @@ -169,6 +169,7 @@ Patch8: grub2-ppc-terminfo.patch Patch9: grub2-GRUB_CMDLINE_LINUX_RECOVERY-for-recovery-mode.patch Patch10: grub2-fix-error-terminal-gfxterm-isn-t-found.patch +Patch11: grub2-fix-build-with-flex-2.6.4.patch Patch12: grub2-fix-menu-in-xen-host-server.patch Patch15: not-display-menu-when-boot-once.patch Patch17: grub2-pass-corret-root-for-nfsroot.patch @@ -435,6 +436,7 @@ %patch8 -p1 %patch9 -p1 %patch10 -p1 +%patch11 -p1 %patch12 -p1 %patch15 -p1 %patch17 -p1 ++++++ grub2-fix-build-with-flex-2.6.4.patch ++++++ From: Andrei Borzenkov <arvidj...@gmail.com> 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: grub-2.02/grub-core/script/yylex.l =================================================================== --- grub-2.02.orig/grub-core/script/yylex.l +++ grub-2.02/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(...) grub_fatal("fatal error in lexer") #endif