Skip to contentSkip to conversation

package/gnu-efi: bump version to 4.0.4

PATCH In review Bernd Kuhls 2 participants 4 messages Mar 2 – Mar 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/gnu-efi: bump version to 4.0.4

https://github.com/ncroxon/gnu-efi/releases/tag/4.0.1
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.2
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.3
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.4

Removed patch due to upstream commit
https://github.com/ncroxon/gnu-efi/commit/f3ececb9eba2ad3104b6d39bd33e579091fce888
which contains a different fix.

---
 .checkpackageignore                           |  1 -
 ...n-t-override-ARCH-when-cross-compili.patch | 32 -------------------
 package/gnu-efi/gnu-efi.hash                  |  2 +-
 package/gnu-efi/gnu-efi.mk                    |  2 +-
 4 files changed, 2 insertions(+), 35 deletions(-)
 delete mode 100644 package/gnu-efi/0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch
.checkpackageignore +0 -1
index 695e0d50c6..cd89e917c5 100644
@@ -405,7 +405,6 @@ package/gerbera/S99gerbera lib_sysv.Indent
 package/git-crypt/0001-fix-build-with-libressl-3.5.0.patch lib_patch.Upstream
 package/glorytun/0001-Add-support-for-Apple-silicon.patch lib_patch.Upstream
 package/glorytun/0002-aegis256.c-fix-aarch64-build-with-uclibc.patch lib_patch.Upstream
-package/gnu-efi/0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch lib_patch.Upstream
 package/gnupg/0001-build-Always-use-EXTERN_UNLESS_MAIN_MODULE-pattern.patch lib_patch.Upstream
 package/gnuplot/0001-configure-add-without-demo-option.patch lib_patch.Upstream
 package/go/go-src/0001-build.go-explicit-option-for-crosscompilation.patch lib_patch.Upstream
package/gnu-efi/0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch deleted +0 -32
deleted file mode 100644
index cbba80b00a..0000000000
@@ -1,32 +0,0 @@
-From 893a75202407e8ff3d75b217813a5df87da7c807 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Sun, 20 Jan 2019 21:07:11 +0100
-Subject: [PATCH] Make.defaults: don't override ARCH when cross-compiling
-
-Don't override the user-provided ARCH when cross-compiling otherwise
-ARCH won't be correct for armv5, aarch64 and x86_64
-
-Fixes:
- - http://autobuild.buildroot.org/results/2dfc0e10da25a8382a43557420d7dc3444c02dbb
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- Make.defaults | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Make.defaults b/Make.defaults
-index 1347aca..bb21874 100755
---- a/Make.defaults
-+++ b/Make.defaults
-@@ -99,7 +99,7 @@ ARCH          ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[34567
- 
- # Get ARCH from the compiler if cross compiling 
- ifneq ($(CROSS_COMPILE),)
--  override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv[67].*,arm,' )
-+  ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv[67].*,arm,' )
- endif
- 
- # FreeBSD (and possibly others) reports amd64 instead of x86_64
--- 
-2.47.1
-
package/gnu-efi/gnu-efi.hash +1 -1
index 5a2f47cfae..d0bcb49514 100644
@@ -1,5 +1,5 @@
 # Locally computed
-sha256  a2e5dfd25e7fc0cd2027d75dc2517b4c74d94f801ff4784eca557ac1b9835899  gnu-efi-4.0.0.tar.gz
+sha256  40b61e842a4efcbf80f3e53b2f220c044e8cfe46eb4dd6396c83b751240b1c0d  gnu-efi-4.0.4.tar.gz
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
 sha256  42d352e9c28dd446fd0209cd6f75588c8e41f0934540bb382bbd61c752360265  licenses/LICENSE.efilib
 sha256  7aa278b6f1a2125d0a0c596fa537caca5a41e7b03f7d2dd0489905f65ffdb984  licenses/LICENSE.edk2
package/gnu-efi/gnu-efi.mk +1 -1
index 268e5350cf..aa2744ae1a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-GNU_EFI_VERSION = 4.0.0
+GNU_EFI_VERSION = 4.0.4
 GNU_EFI_SITE = $(call github,ncroxon,gnu-efi,$(GNU_EFI_VERSION))
 GNU_EFI_INSTALL_STAGING = YES
 GNU_EFI_LICENSE = BSD-3-Clause and/or GPL-2.0+ (gnuefi), BSD-3-Clause (efilib), BSD-2-Clause-Patent (EDK2 routines)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v2 2/2 package/fwupd-efi: bump version to 1.8

https://github.com/fwupd/fwupd-efi/releases/tag/1.8

Added TARGET_LD to _MESON_EXTRA_BINARIES due to upstream commit
https://github.com/fwupd/fwupd-efi/commit/a7ac71e3b391e040d9ca0d58d2d186be5b60b631
which causes a misdetection of the linker used.

Build log without specifying TARGET_LD:

Program ld.bfd found: YES (/usr/bin/ld.bfd) [...]
/usr/bin/ld.bfd: cannot represent machine `aarch64'

Build log with specifying TARGET_LD:

Program ld.bfd found: YES

---
v2: fixed linker detection (Julien)

 package/fwupd-efi/fwupd-efi.hash | 2 +-
 package/fwupd-efi/fwupd-efi.mk   | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
package/fwupd-efi/fwupd-efi.hash +1 -1
index 42f9eb83ff..8bca799e68 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  96d4fc45467159b2664ce86ee7d5030e265fdb4d4a4d774080654d2f5b1561ff  fwupd-efi-1.7.tar.gz
+sha256  c9f1f9b9b967ea50eb0b478f0d7693d6673d4cd76c8e7eb80c55fc44ec928925  fwupd-efi-1.8.tar.gz
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/fwupd-efi/fwupd-efi.mk +4 -2
index fbff5a9043..cc44ec7e48 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-FWUPD_EFI_VERSION = 1.7
+FWUPD_EFI_VERSION = 1.8
 FWUPD_EFI_SITE = $(call github,fwupd,fwupd-efi,$(FWUPD_EFI_VERSION))
 FWUPD_EFI_LICENSE = LGPL-2.1+
 FWUPD_EFI_LICENSE_FILES = COPYING
@@ -22,6 +22,8 @@ FWUPD_EFI_CONF_OPTS = \
 	-Defi_sbat_distro_url=https://gitlab.com/buildroot.org/buildroot/-/tree/master/package/fwupd-efi \
 	-Dgenpeimg=disabled \
 	-Dpython="$(HOST_DIR)/bin/python3"
-FWUPD_EFI_MESON_EXTRA_BINARIES = objcopy='$(TARGET_OBJCOPY)'
+FWUPD_EFI_MESON_EXTRA_BINARIES = \
+	ld.bfd='$(TARGET_LD)' \
+	objcopy='$(TARGET_OBJCOPY)'
 
 $(eval $(meson-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH/next v2 2/2] package/fwupd-efi: bump version to 1.8

Quoted 12 lines · Bernd Kuhls

https://github.com/fwupd/fwupd-efi/releases/tag/1.8

Added TARGET_LD to _MESON_EXTRA_BINARIES due to upstream commit
https://github.com/fwupd/fwupd-efi/commit/a7ac71e3b391e040d9ca0d58d2d186be5b60b631
which causes a misdetection of the linker used.

Build log without specifying TARGET_LD:

Program ld.bfd found: YES (/usr/bin/ld.bfd) [...]
/usr/bin/ld.bfd: cannot represent machine `aarch64'

Quoted 5 lines

Build log with specifying TARGET_LD:

Program ld.bfd found: YES

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Bernd Kuhls

Hi Bernd,

Thanks for the patch.

Quoted 8 lines · Bernd Kuhls

https://github.com/ncroxon/gnu-efi/releases/tag/4.0.1
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.2
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.3
https://github.com/ncroxon/gnu-efi/releases/tag/4.0.4

Removed patch due to upstream commit
https://github.com/ncroxon/gnu-efi/commit/f3ececb9eba2ad3104b6d39bd33e579091fce888
which contains a different fix.

Running the command "make gnu-efi-legal-info" fails. Also the licenses were clarified. I suggest you add in the commit log something like:

"""
LICENSE was claried and new license files were in:
https://github.com/ncroxon/gnu-efi/commit/71d5d1746ba50378e0e2d563f7d132c421b7b4f8

licenses/LICENSE.efilib: was updated in:
https://github.com/ncroxon/gnu-efi/commit/71b05279b196beea0c8ee4398c7dd0c7963d78ab

This commit reflects those changes by updating _LICENSE_FILES and adding the new license hashes.
"""

Quoted 10 lines
---
 .checkpackageignore                           |  1 -
 ...n-t-override-ARCH-when-cross-compili.patch | 32 -------------------
 package/gnu-efi/gnu-efi.hash                  |  2 +-
 package/gnu-efi/gnu-efi.mk                    |  2 +-
 4 files changed, 2 insertions(+), 35 deletions(-)
 delete mode 100644 

package/gnu-efi/0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch

[...]

Quoted 8 lines
package/gnu-efi/gnu-efi.hash +0 -1
index 5a2f47cfae..d0bcb49514 100644
@@ -1,5 +1,5 @@
 # Locally computed
-sha256  

a2e5dfd25e7fc0cd2027d75dc2517b4c74d94f801ff4784eca557ac1b9835899 gnu-efi-4.0.0.tar.gz

Quoted 8 lines

+sha256
40b61e842a4efcbf80f3e53b2f220c044e8cfe46eb4dd6396c83b751240b1c0d gnu-efi-4.0.4.tar.gz
sha256
8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
sha256
42d352e9c28dd446fd0209cd6f75588c8e41f0934540bb382bbd61c752360265 licenses/LICENSE.efilib
sha256
7aa278b6f1a2125d0a0c596fa537caca5a41e7b03f7d2dd0489905f65ffdb984 licenses/LICENSE.edk2

Here you should add hashes for the new files.

package/gnu-efi/gnu-efi.mk line 8

Quoted 11 lines
package/gnu-efi/gnu-efi.mk +1 -1
index 268e5350cf..aa2744ae1a 100644
@@ -4,7 +4,7 @@
 #
 
 ################################################################################
 
-GNU_EFI_VERSION = 4.0.0
+GNU_EFI_VERSION = 4.0.4

This new version breaks test_syslinux. You can reproduce with:

utils/docker-run support/testing/run-tests \
    -k -d dl -o output_folder \
    tests.boot.test_syslinux.TestSysLinuxX86_64EFI
Quoted 4 lines
package/gnu-efi/gnu-efi.mk +0 -0
 GNU_EFI_SITE = $(call github,ncroxon,gnu-efi,$(GNU_EFI_VERSION))
 GNU_EFI_INSTALL_STAGING = YES

GNU_EFI_LICENSE = BSD-3-Clause and/or GPL-2.0+ (gnuefi), BSD-3-Clause
(efilib), BSD-2-Clause-Patent (EDK2 routines)

With the clarified licenses, we should have here:

GNU_EFI_LICENSE = \
        BSD-3-Clause and/or GPL-2.0+ (gnuefi), \
        BSD-3-Clause (efilib), \
        BSD-2-Clause-Patent (EDK2 routines)
GNU_EFI_LICENSE_FILES = \
        LICENSE \
        licenses/LICENSE.BSD-3-Clause \
        licenses/LICENSE.edk2 \
        licenses/LICENSE.efilib \
        licenses/LICENSE.GPL-2.0-or-later \
        licenses/LICENSE.GPL-3.0-or-later \
        licenses/LICENSE.LGPL-3.0-or-later
Quoted 2 lines

--
2.47.3

Could you send and updated patch addressing those issues, please?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot