[arch-commits] Commit in efivar/repos (3 files)

David Runge dvzrv at gemini.archlinux.org
Sat Jan 15 13:36:28 UTC 2022


    Date: Saturday, January 15, 2022 @ 13:36:27
  Author: dvzrv
Revision: 434493

archrelease: copy trunk to testing-x86_64

Added:
  efivar/repos/testing-x86_64/
  efivar/repos/testing-x86_64/PKGBUILD
    (from rev 434492, efivar/trunk/PKGBUILD)
  efivar/repos/testing-x86_64/efivar-38-linker.patch
    (from rev 434492, efivar/trunk/efivar-38-linker.patch)

------------------------+
 PKGBUILD               |   52 +++++++++++++++++++++++++++++++++++++++++++++++
 efivar-38-linker.patch |   32 ++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

Copied: efivar/repos/testing-x86_64/PKGBUILD (from rev 434492, efivar/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-01-15 13:36:27 UTC (rev 434493)
@@ -0,0 +1,52 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+
+pkgname=efivar
+pkgdesc="Tools and libraries to work with EFI variables"
+pkgver=38
+pkgrel=1
+arch=(x86_64)
+url="https://github.com/rhboot/efivar"
+license=(LGPL2.1)
+depends=(glibc)
+makedepends=(git mandoc)
+checkdepends=(grub)
+provides=(libefiboot.so libefisec.so libefivar.so)
+# LTO has the linker segfaulting with binutils < 2.38.0: https://github.com/rhboot/efivar/issues/196
+options=(!lto)
+source=(
+  "git+https://github.com/rhinstaller/efivar.git#tag=${pkgver}?signed"
+  "${pkgname}-38-linker.patch"
+)
+sha512sums=('SKIP'
+            'd870de5a44e3a718acea5aa87b53a2a955dc35d8f04a30fbb440edb6f68b1890ec5767c5a6439201567866af319a7fddde8acb181111bcb2c7acb6c70b262a76')
+b2sums=('SKIP'
+        'f41f0b04f5b3840e49ce07fc444a0119d06f31fcf9d2be9e065832a13d3906827025447a7147870082545c14871b23d099b394751815def4ed8ef0946cb76426')
+validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones at redhat.com>
+
+prepare() {
+  cd "${pkgname}"
+  # fix issues with linker scripts: https://github.com/rhboot/efivar/pull/195
+  patch -Np1 -i ../"${pkgname}-38-linker.patch"
+}
+
+build() {
+  # disable -Werror by default by setting ERRORS to empty string
+  make ERRORS='' all -C "${pkgname}"
+}
+
+check() {
+  make GRUB_PREFIX=grub test -k -C "${pkgname}" || echo "grub related tests are flaky"
+}
+
+package() {
+  make DESTDIR="${pkgdir}/" \
+       libdir=/usr/lib/ \
+       bindir=/usr/bin/ \
+       mandir=/usr/share/man/ \
+       includedir=/usr/include/ \
+       install -j1 V=1 \
+       -C "${pkgname}"
+  install -vDm 644 "${pkgname}/"{README.md,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: efivar/repos/testing-x86_64/efivar-38-linker.patch (from rev 434492, efivar/trunk/efivar-38-linker.patch)
===================================================================
--- testing-x86_64/efivar-38-linker.patch	                        (rev 0)
+++ testing-x86_64/efivar-38-linker.patch	2022-01-15 13:36:27 UTC (rev 434493)
@@ -0,0 +1,32 @@
+From 3d6e168c7ffa8bcebfc2b9965e4af4b86e9384fa Mon Sep 17 00:00:00 2001
+From: David Runge <dave at sleepmap.de>
+Date: Sat, 15 Jan 2022 13:23:17 +0100
+Subject: [PATCH] Add script flag for files containing output sections
+
+src/include/rules.mk:
+Extend foreach loop that populates LDS with the linker scriptfile flag
+(`-T`), as linking otherwise fails on LDSCRIPTS providing files with
+output sections:
+
+```
+/usr/bin/ld: warning: guids.lds contains output sections; did you forget -T?
+```
+
+Signed-off-by: David Runge <dave at sleepmap.de>
+---
+ src/include/rules.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/include/rules.mk b/src/include/rules.mk
+index f309f863..12986dee 100644
+--- a/src/include/rules.mk
++++ b/src/include/rules.mk
+@@ -37,7 +37,7 @@ family = $(foreach FAMILY_SUFFIX,$(FAMILY_SUFFIXES),$($(1)_$(FAMILY_SUFFIX)))
+ 
+ %.so :
+ 	$(CCLD) $(CCLDFLAGS) $(CPPFLAGS) $(SOFLAGS) \
+-		$(foreach LDS,$(LDSCRIPTS),$(LD_DASH_T) $(LDS)) \
++		$(foreach LDS,$(LDSCRIPTS),$(LD_DASH_T) -T $(LDS)) \
+ 		-o $@ $^ $(LDLIBS)
+ 	ln -vfs $@ $@.1
+ 



More information about the arch-commits mailing list