Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fwupd for openSUSE:Factory checked 
in at 2021-03-17 20:13:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fwupd (Old)
 and      /work/SRC/openSUSE:Factory/.fwupd.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fwupd"

Wed Mar 17 20:13:23 2021 rev:41 rq:879207 version:1.5.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/fwupd/fwupd.changes      2021-03-10 
08:46:30.446223355 +0100
+++ /work/SRC/openSUSE:Factory/.fwupd.new.2401/fwupd.changes    2021-03-17 
20:13:34.518794314 +0100
@@ -1,0 +2,7 @@
+Fri Mar 12 08:30:32 UTC 2021 - Gary Ching-Pang Lin <g...@suse.com>
+
+- Add fwupd-bsc1182057-fix-sbat-section-copy.patch to set the
+  proper section flags for .sbat section so that objcopy can
+  copy it into fwupd*.efi (bsc#1182057)
+
+-------------------------------------------------------------------

New:
----
  fwupd-bsc1182057-fix-sbat-section-copy.patch

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

Other differences:
------------------
++++++ fwupd.spec ++++++
--- /var/tmp/diff_new_pack.4yaymW/_old  2021-03-17 20:13:35.182795223 +0100
+++ /var/tmp/diff_new_pack.4yaymW/_new  2021-03-17 20:13:35.186795228 +0100
@@ -44,6 +44,8 @@
 Patch1:         fwupd-bsc1130056-change-shim-path.patch
 # PATCH-FIX-OPENSUSE fwupd-jscSLE-11766-close-efidir-leap-gap.patch 
jsc#SLE-11766 qk...@suse.com -- Set SLE and openSUSE esp os dir at runtime
 Patch2:         fwupd-jscSLE-11766-close-efidir-leap-gap.patch
+# PATCH-FIX-UPSTRAEM fwupd-bsc1182057-fix-sbat-section-copy.patch bsc#1182057 
g...@suse.com -- Set the proper section flags for .sbat
+Patch3:         fwupd-bsc1182057-fix-sbat-section-copy.patch
 
 BuildRequires:  dejavu-fonts
 %if %{with fish_support}

++++++ fwupd-bsc1182057-fix-sbat-section-copy.patch ++++++
>From b283395049be8071d3699dfa3a411a3b37406f0b Mon Sep 17 00:00:00 2001
From: Gary Lin <g...@suse.com>
Date: Tue, 9 Mar 2021 15:26:20 +0800
Subject: [PATCH] uefi-capsule: Specify the section flags for .sbat

When using "objcopy -O binary" to generate AArch64 EFI images, it
silently drops the sections without "alloc" or "load" or the sections
with "unload", and this caused the content of .sbat was skipped in the
final EFI image.

This commit sets the common read-only data section flags to .sbat to
make sure the content will be copied.

Signed-off-by: Gary Lin <g...@suse.com>
---
 plugins/uefi-capsule/efi/generate_sbat.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/uefi-capsule/efi/generate_sbat.py 
b/plugins/uefi-capsule/efi/generate_sbat.py
index 227bc841..18f7c4c7 100755
--- a/plugins/uefi-capsule/efi/generate_sbat.py
+++ b/plugins/uefi-capsule/efi/generate_sbat.py
@@ -70,6 +70,8 @@ def _generate_sbat(args):
             args.objcopy,
             "--add-section",
             ".sbat={}".format(sfd.name),
+            "--set-section-flags",
+            ".sbat=contents,alloc,load,readonly,data",
             args.outfile,
         ]
         subprocess.run(argv, check=True)
-- 
2.29.2

Reply via email to