Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trustedgrub2 for openSUSE:Factory checked in at 2021-04-22 18:04:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trustedgrub2 (Old) and /work/SRC/openSUSE:Factory/.trustedgrub2.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trustedgrub2" Thu Apr 22 18:04:16 2021 rev:10 rq:887496 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/trustedgrub2/trustedgrub2.changes 2020-07-03 00:15:11.528618746 +0200 +++ /work/SRC/openSUSE:Factory/.trustedgrub2.new.12324/trustedgrub2.changes 2021-04-22 18:05:52.154685586 +0200 @@ -1,0 +2,6 @@ +Wed Apr 21 03:52:37 UTC 2021 - Michael Chang <[email protected]> + +- Fix decompressor is too big error during installation (bsc#1185023) + * 0001-build-Fix-GRUB-i386-pc-build-with-Ubuntu-gcc.patch + +------------------------------------------------------------------- New: ---- 0001-build-Fix-GRUB-i386-pc-build-with-Ubuntu-gcc.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trustedgrub2.spec ++++++ --- /var/tmp/diff_new_pack.euRFzp/_old 2021-04-22 18:05:52.902686813 +0200 +++ /var/tmp/diff_new_pack.euRFzp/_new 2021-04-22 18:05:52.902686813 +0200 @@ -1,7 +1,7 @@ # # spec file for package trustedgrub2 # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -59,6 +59,8 @@ Patch23: 0001-mdraid1x_linux-Fix-gcc10-error-Werror-array-bounds.patch Patch24: 0002-zfs-Fix-gcc10-error-Werror-zero-length-bounds.patch Patch25: 0003-linux-Fix-gcc10-error-Werror-zero-length-bounds.patch +# fix very large image file produced by recent gcc version +Patch26: 0001-build-Fix-GRUB-i386-pc-build-with-Ubuntu-gcc.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 ++++++ 0001-build-Fix-GRUB-i386-pc-build-with-Ubuntu-gcc.patch ++++++ >From 6643507ce30f775008e093580f0c9499dfb2c485 Mon Sep 17 00:00:00 2001 From: Simon Hardy <[email protected]> Date: Tue, 24 Mar 2020 13:29:12 +0000 Subject: [PATCH] build: Fix GRUB i386-pc build with Ubuntu gcc With recent versions of gcc on Ubuntu a very large lzma_decompress.img file is output. (e.g. 134479600 bytes instead of 2864.) This causes grub-mkimage to fail with: "error: Decompressor is too big." This seems to be caused by a section .note.gnu.property that is placed at an offset such that objcopy needs to pad the img file with zeros. This issue is present on: Ubuntu 19.10 with gcc (Ubuntu 8.3.0-26ubuntu1~19.10) 8.3.0 Ubuntu 19.10 with gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008 This issue is not present on: Ubuntu 19.10 with gcc (Ubuntu 7.5.0-3ubuntu1~19.10) 7.5.0 RHEL 8.0 with gcc 8.3.1 20190507 (Red Hat 8.3.1-4) The issue can be fixed by removing the section using objcopy as shown in this patch. Signed-off-by: Simon Hardy <[email protected]> Reviewed-by: Daniel Kiper <[email protected]> --- gentpl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: trustedgrub2-1.4.0/gentpl.py =================================================================== --- trustedgrub2-1.4.0.orig/gentpl.py +++ trustedgrub2-1.4.0/gentpl.py @@ -759,7 +759,7 @@ def image(defn, platform): if test x$(TARGET_APPLE_LINKER) = x1; then \ $(MACHO2IMG) $< $@; \ else \ - $(TARGET_OBJCOPY) $(""" + cname(defn) + """_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $< $@; \ + $(TARGET_OBJCOPY) $(""" + cname(defn) + """_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property $< $@; \ fi """)
