upg efivar

This commit is contained in:
joborun linux 2024-02-01 13:34:00 +02:00
parent bb52734282
commit 1ef3afcf4a
2 changed files with 39 additions and 35 deletions

View File

@ -7,31 +7,35 @@
pkgname=efivar
pkgdesc="Tools and libraries to work with EFI variables"
pkgver=38
pkgrel=03
pkgver=39
_commit=a77a4ffec000ad5dfc5d6394d208784672acda82 # refs/tags/39
pkgrel=01
url="https://github.com/rhboot/efivar"
depends=(glibc)
makedepends=(git mandoc)
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+$url#tag=${pkgver}?signed
$pkgname-38-ld_t.patch::https://github.com/rhboot/efivar/pull/201/commits/197a0874ea4010061b98b4b55eff65b33b1cd741.patch
)
source=("git+$url#tag=$_commit?signed")
pkgver() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $pkgname
# fix issues with linker scripts: https://github.com/rhboot/efivar/pull/201
patch -Np1 -d $pkgname -i ../$pkgname-38-ld_t.patch
# patch -Np1 -d $pkgname -i ../$pkgname-38-ld_t.patch
}
build() {
# disable -Werror by default by setting ERRORS to empty string
make ERRORS='' all -C "${pkgname}"
make ERRORS='' all -C $pkgname
}
check() {
make GRUB_PREFIX=grub test -k -C "${pkgname}" || echo "grub related tests are flaky"
# make GRUB_PREFIX=grub test -k -j1 -C $pkgname
}
package() {
@ -50,13 +54,10 @@ package() {
arch=(x86_64)
license=('LGPL2.1')
license=(LGPL-2.1-or-later)
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
sha256sums=(SKIP
9450812114f409229bd97211902de8000d2b321c8b4f4e20c31eb4e555625655) # efivar-38-ld_t.patch
## 805719cc1e7fae471494f4ca41d2aa1b6ff24c2ecbc5c5a9d1107f7c149fc26c efivar-38-03-x86_64.pkg.tar.lz
sha256sums=(SKIP)
## 4fe134bd4ae4dc9268b4d6187c6617f72b61f0b1d2c20b9ded2e5ba278db1ffd efivar-39-01-x86_64.pkg.tar.lz

View File

@ -4,39 +4,42 @@
pkgname=efivar
pkgdesc="Tools and libraries to work with EFI variables"
pkgver=38
pkgrel=3
pkgver=39
_commit=a77a4ffec000ad5dfc5d6394d208784672acda82 # refs/tags/39
pkgrel=1
arch=(x86_64)
url="https://github.com/rhboot/efivar"
license=(LGPL2.1)
license=(LGPL-2.1-or-later)
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+$url#tag=${pkgver}?signed
$pkgname-38-ld_t.patch::https://github.com/rhboot/efivar/pull/201/commits/197a0874ea4010061b98b4b55eff65b33b1cd741.patch
makedepends=(
git
mandoc
)
sha512sums=('SKIP'
'568bc88b182875c37479c49b3dbf5b8ee6edf8090f940176e67c9aa28dd2ff6f417c70b2bef6b5df99ada2afa33db3efd295ba9de5d68b3ecc5ce1dc3361d042')
b2sums=('SKIP'
'ccddc04ab83d4dcf570d5a89e43fc27d36e2010513b36d9eb2fcdea71ceb5dba96a064a1cbca9ffdecf17fb5b9cb22cfe89eae4ee3a188547a4ab6fa6b4e2983')
checkdepends=(grub)
provides=(
libefiboot.so
libefisec.so
libefivar.so
)
source=(
"git+$url#tag=$_commit?signed"
)
sha512sums=('SKIP')
b2sums=('SKIP')
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
prepare() {
# fix issues with linker scripts: https://github.com/rhboot/efivar/pull/201
patch -Np1 -d $pkgname -i ../$pkgname-38-ld_t.patch
pkgver() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# disable -Werror by default by setting ERRORS to empty string
make ERRORS='' all -C "${pkgname}"
make ERRORS='' all -C $pkgname
}
check() {
make GRUB_PREFIX=grub test -k -C "${pkgname}" || echo "grub related tests are flaky"
make GRUB_PREFIX=grub test -k -j1 -C $pkgname
}
package() {