Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] arduino-cli: add gcompat dependency for musl
@ 2020-05-23 19:28 ericonr
  2020-05-23 19:29 ` [PR PATCH] [Updated] " ericonr
  2020-05-24  7:56 ` [PR PATCH] [Merged]: " Hoshpak
  0 siblings, 2 replies; 3+ messages in thread
From: ericonr @ 2020-05-23 19:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

There is a new pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages arduino
https://github.com/void-linux/void-packages/pull/22237

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.

Suggested on #voidlinux

A patch file from https://github.com/void-linux/void-packages/pull/22237.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-arduino-22237.patch --]
[-- Type: text/x-diff, Size: 1270 bytes --]

From 7e8947657a93321d34a80de473ad8c07c9a7afe0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
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 a6efd67daa9..abbba5174fa 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] arduino-cli: add gcompat dependency for musl
  2020-05-23 19:28 [PR PATCH] arduino-cli: add gcompat dependency for musl ericonr
@ 2020-05-23 19:29 ` ericonr
  2020-05-24  7:56 ` [PR PATCH] [Merged]: " Hoshpak
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2020-05-23 19:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages arduino
https://github.com/void-linux/void-packages/pull/22237

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.

Suggested on #voidlinux

A patch file from https://github.com/void-linux/void-packages/pull/22237.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-arduino-22237.patch --]
[-- Type: text/x-diff, Size: 1264 bytes --]

From c48de5d6958d5face94fc0ec7dc9dcab14340d92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
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 a6efd67daa9..d35a00ee78c 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: arduino-cli: add gcompat dependency for musl
  2020-05-23 19:28 [PR PATCH] arduino-cli: add gcompat dependency for musl ericonr
  2020-05-23 19:29 ` [PR PATCH] [Updated] " ericonr
@ 2020-05-24  7:56 ` Hoshpak
  1 sibling, 0 replies; 3+ messages in thread
From: Hoshpak @ 2020-05-24  7:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

There's a merged pull request on the void-packages repository

arduino-cli: add gcompat dependency for musl
https://github.com/void-linux/void-packages/pull/22237

Description:
This is necessary for musl systems, because the toolchains downloaded
by arduino-cli are built in glibc systems and require gcompat to work.

Suggested on #voidlinux

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-24  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-23 19:28 [PR PATCH] arduino-cli: add gcompat dependency for musl ericonr
2020-05-23 19:29 ` [PR PATCH] [Updated] " ericonr
2020-05-24  7:56 ` [PR PATCH] [Merged]: " Hoshpak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).