From 6cbed8a9df4d01129ac822dbe8bef687757af2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sat, 23 May 2020 16:22:34 -0300 Subject: [PATCH] arduino-cli: add gcompat dependency for musl This is necessary for musl systems, because the toolchains downloaded by arduino-cli are built in glibc systems and require gcompat to work. --- srcpkgs/arduino-cli/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/arduino-cli/template b/srcpkgs/arduino-cli/template index a6efd67daa..d35a00ee78 100644 --- a/srcpkgs/arduino-cli/template +++ b/srcpkgs/arduino-cli/template @@ -1,7 +1,7 @@ # Template file for 'arduino-cli' pkgname=arduino-cli version=0.10.0 -revision=1 +revision=2 build_style=go go_import_path=github.com/arduino/arduino-cli short_desc="Arduino command line interface" @@ -10,3 +10,8 @@ license="GPL-3.0-or-later" homepage="https://github.com/arduino/arduino-cli" distfiles="https://github.com/arduino/arduino-cli/archive/${version}.tar.gz" checksum=165347f8eb7d34c669ef3cee42bede9faffd5f0bb7ae0ece16c806a6230e8790 + +case "$XBPS_TARGET_MACHINE" in + # the downloaded toolchains use glibc, this allows them to work on musl + *-musl) depends+=" gcompat" ;; +esac