aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2020-10-08 09:15:43 +0000
committerMilan P. Stanić <mps@arvanta.net>2020-10-08 09:35:09 +0000
commit9c8fd663e91d11a4817f6f561559ddfd3f48ff85 (patch)
tree3f4b94e8acc1f4a7b7e239e132f2c34b5ca1330b
parent59049607e82d0ef56e7052eb74e5bfb171b6e822 (diff)
downloadaports-9c8fd663e91d11a4817f6f561559ddfd3f48ff85.tar.gz
aports-9c8fd663e91d11a4817f6f561559ddfd3f48ff85.tar.bz2
aports-9c8fd663e91d11a4817f6f561559ddfd3f48ff85.tar.xz
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
-rw-r--r--community/vboot-utils/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/community/vboot-utils/APKBUILD b/community/vboot-utils/APKBUILD
index 03c98381b8..6a0408dbf7 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() {