From 9c8fd663e91d11a4817f6f561559ddfd3f48ff85 Mon Sep 17 00:00:00 2001 From: "Milan P. Stanić" Date: Thu, 8 Oct 2020 09:15:43 +0000 Subject: community/vboot-utils: fix build with gcc 10.2 build with gcc 10.2 require -fcommon build only needed things and skip tests build specify arches for which is build instead of negate those for which is does not build --- community/vboot-utils/APKBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/community/vboot-utils/APKBUILD b/community/vboot-utils/APKBUILD index 03c98381b86..6a0408dbf7b 100644 --- a/community/vboot-utils/APKBUILD +++ b/community/vboot-utils/APKBUILD @@ -3,10 +3,10 @@ pkgname=vboot-utils pkgver=6310032 _release=0~R63-10032.B -pkgrel=3 +pkgrel=4 pkgdesc="Chromium OS vboot utilities" url="https://github.com/coreboot/vboot" -arch="all !ppc64le !s390x !mips !mips64" +arch="armhf armv7 aarch64 x86_64 x86" license="custom:chromiumos" options="!check" # test fails but package works makedepends="yaml-dev xz-dev fts-dev openssl-dev util-linux-dev bash linux-headers" @@ -17,10 +17,12 @@ source="http://cdn-fastly.deb.debian.org/debian/pool/main/v/vboot-utils/vboot-ut builddir="$srcdir" build() { + export CFLAGS="$CFLAGS -D_GNU_SOURCE -Wno-error -fcommon" + local _arch=$CARCH case "$CARCH" in - arm*|aarch64) ARCH=arm make V=1 ;; + arm*|aarch64) _arch=arm;; esac - make V=1 + make ARCH=$_arch MINIMAL=1 V=1 cgpt utils futil } package() { -- cgit v1.2.3