From 25147b4aa31ea8bdc625da5838341bcd89ac796c Mon Sep 17 00:00:00 2001 From: Minecrell Date: Mon, 28 Sep 2020 14:03:06 +0200 Subject: [PATCH] temp/ofono: build with a single thread only (MR 1637) For some reason, the ModemManager build tends to freeze when built with QEMU user emulation for arm*. Changing the build to use a single thread only (-j1) avoids that, although the build is slower of course. The same thing seems to happen fo oFono as well, so set that to -j1 too. Also limit building to "armhf armv7 aarch64" since the forks are not needed on any other architectures, to reduce build times a bit. The other architectures can just use the upstream packages from Alpine. --- temp/ofono/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/temp/ofono/APKBUILD b/temp/ofono/APKBUILD index 48edfb377..5a43178a5 100644 --- a/temp/ofono/APKBUILD +++ b/temp/ofono/APKBUILD @@ -6,7 +6,7 @@ _pkgver=1.31 pkgrel=6 pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications [$_pkgver]" url="https://01.org/ofono" -arch="all" +arch="armhf armv7 aarch64" license="GPL-2.0-only" depends="bluez mobile-broadband-provider-info" makedepends="glib-dev dbus-dev ell-dev eudev-dev @@ -30,6 +30,10 @@ source="https://www.kernel.org/pub/linux/network/ofono/ofono-$_pkgver.tar.xz ofono-wheel.conf" builddir="$srcdir/$pkgname-$_pkgver" +# Workaround build freeze with QEMU user emulation +export JOBS=1 +export MAKEFLAGS=-j$JOBS + prepare() { default_prepare autoreconf -fi