* [PR PATCH] ghc, ghc-bin: add aarch64-musl support
@ 2022-03-17 22:02 ftrvxmtrx
2022-03-21 17:06 ` [PR PATCH] [Updated] " ftrvxmtrx
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ftrvxmtrx @ 2022-03-17 22:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
There is a new pull request by ftrvxmtrx against master on the void-packages repository
https://github.com/ftrvxmtrx/void-packages ghc-aarch64-musl
https://github.com/void-linux/void-packages/pull/36193
ghc, ghc-bin: add aarch64-musl support
GHC uses llvm (specifically `opt` and `llc` executables) to build on aarch64, so that was added as a dependency.
All packages that dependent on ghc were built and are available at a [repo I made with signed *.xbps files](https://ftrv.se/_/void/ghc-aarch64-musl) along with the [ghc bindist distfile](https://ftrv.se/_/void/ghc-aarch64-musl/ghc-8.10.7-aarch64-void-linux-musl.tar.xz) required by ghc-bin, which this change assumes is eventually uploaded to `alpha.de.repo.voidlinux.org`. I tested most of the packages, they all work as expected.
I can share the files in some other way if that's preferable.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (aarch64-musl)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/36193.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ghc-aarch64-musl-36193.patch --]
[-- Type: text/x-diff, Size: 1915 bytes --]
From a02086c073f4018b05a68f267a3ca5b3ff330774 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?=
<ftrvxmtrx@gmail.com>
Date: Thu, 17 Mar 2022 22:50:33 +0100
Subject: [PATCH] ghc, ghc-bin: add aarch64-musl support
---
srcpkgs/ghc-bin/template | 7 ++++++-
srcpkgs/ghc/template | 8 ++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/ghc-bin/template b/srcpkgs/ghc-bin/template
index 3949ee3fa1aa..9c9ee4e1729c 100644
--- a/srcpkgs/ghc-bin/template
+++ b/srcpkgs/ghc-bin/template
@@ -2,7 +2,7 @@
pkgname=ghc-bin
version=8.10.7
revision=1
-archs="i686 x86_64* ppc64le* ppc64"
+archs="i686 x86_64* ppc64le* ppc64 aarch64-musl"
wrksrc="ghc-${version%[!0-9]}"
hostmakedepends="perl libffi libnuma"
depends="ncurses perl gcc libffi-devel gmp-devel"
@@ -39,6 +39,11 @@ ppc64)
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz"
checksum=b8578e602abd4b453845303fb9cfed0b2186f86f60e3aa45869026ea833726c8
;;
+aarch64-musl)
+ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux-musl.tar.xz"
+ checksum=f2c37a5ed028eebd3e69a22ce989f5cdf6f84a408871ff0933ac532414c6c273
+ depends+=" llvm"
+ ;;
*)
broken="No distfiles available for this target"
;;
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index b8b16f67b433..807e7603a4e7 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -54,6 +54,14 @@ elif [ "${XBPS_MACHINE%-*}" != "${XBPS_TARGET_MACHINE%-*}" ]; then
configure_args+=" --host=${XBPS_TRIPLET} --target=${XBPS_CROSS_TRIPLET}"
fi
+case "$XBPS_TARGET_MACHINE" in
+aarch64*)
+ # GHC uses LLVM to generate code on aarch64
+ hostmakedepends+=" llvm"
+ depends+=" llvm"
+ ;;
+esac
+
# Recent safe to use tarball
# GHC's bundled tarball is from 2017, buggy on some archs
_ffi_rev=4d6d2866ae43e55325e8ee96561221804602cd7a
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] ghc, ghc-bin: add aarch64-musl support
2022-03-17 22:02 [PR PATCH] ghc, ghc-bin: add aarch64-musl support ftrvxmtrx
@ 2022-03-21 17:06 ` ftrvxmtrx
2022-03-21 18:21 ` ghc, ghc-bin: add aarch64* support ftrvxmtrx
2022-04-06 0:53 ` [PR PATCH] [Closed]: " ftrvxmtrx
2 siblings, 0 replies; 4+ messages in thread
From: ftrvxmtrx @ 2022-03-21 17:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]
There is an updated pull request by ftrvxmtrx against master on the void-packages repository
https://github.com/ftrvxmtrx/void-packages ghc-aarch64-musl
https://github.com/void-linux/void-packages/pull/36193
ghc, ghc-bin: add aarch64-musl support
GHC uses llvm (specifically `opt` and `llc` executables) to build on aarch64, so that was added as a dependency.
All packages that depend on ghc were built and are available at a [repo I made with signed *.xbps files](https://ftrv.se/_/void/ghc-aarch64-musl) along with the [ghc bindist distfile](https://ftrv.se/_/void/ghc-aarch64-musl/ghc-8.10.7-aarch64-void-linux-musl.tar.xz) required by ghc-bin, which this change assumes is eventually uploaded to `alpha.de.repo.voidlinux.org`. I tested most of the packages, they all work as expected.
I can share the files in some other way if that's preferable.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (aarch64-musl)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/36193.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ghc-aarch64-musl-36193.patch --]
[-- Type: text/x-diff, Size: 3319 bytes --]
From b420bdfd550f80319cc3ece60c4b105680a8655f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?=
<ftrvxmtrx@gmail.com>
Date: Thu, 17 Mar 2022 22:50:33 +0100
Subject: [PATCH 1/2] ghc, ghc-bin: add aarch64-musl support
---
srcpkgs/ghc-bin/template | 7 ++++++-
srcpkgs/ghc/template | 8 ++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/ghc-bin/template b/srcpkgs/ghc-bin/template
index 3949ee3fa1aa..9c9ee4e1729c 100644
--- a/srcpkgs/ghc-bin/template
+++ b/srcpkgs/ghc-bin/template
@@ -2,7 +2,7 @@
pkgname=ghc-bin
version=8.10.7
revision=1
-archs="i686 x86_64* ppc64le* ppc64"
+archs="i686 x86_64* ppc64le* ppc64 aarch64-musl"
wrksrc="ghc-${version%[!0-9]}"
hostmakedepends="perl libffi libnuma"
depends="ncurses perl gcc libffi-devel gmp-devel"
@@ -39,6 +39,11 @@ ppc64)
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz"
checksum=b8578e602abd4b453845303fb9cfed0b2186f86f60e3aa45869026ea833726c8
;;
+aarch64-musl)
+ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux-musl.tar.xz"
+ checksum=f2c37a5ed028eebd3e69a22ce989f5cdf6f84a408871ff0933ac532414c6c273
+ depends+=" llvm"
+ ;;
*)
broken="No distfiles available for this target"
;;
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index b8b16f67b433..807e7603a4e7 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -54,6 +54,14 @@ elif [ "${XBPS_MACHINE%-*}" != "${XBPS_TARGET_MACHINE%-*}" ]; then
configure_args+=" --host=${XBPS_TRIPLET} --target=${XBPS_CROSS_TRIPLET}"
fi
+case "$XBPS_TARGET_MACHINE" in
+aarch64*)
+ # GHC uses LLVM to generate code on aarch64
+ hostmakedepends+=" llvm"
+ depends+=" llvm"
+ ;;
+esac
+
# Recent safe to use tarball
# GHC's bundled tarball is from 2017, buggy on some archs
_ffi_rev=4d6d2866ae43e55325e8ee96561221804602cd7a
From 0c1ab2c968bb21bdf6c30411abb7fe6a7a435893 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?=
<ftrvxmtrx@gmail.com>
Date: Mon, 21 Mar 2022 18:05:23 +0100
Subject: [PATCH 2/2] ghc-bin: add aarch64 support
---
srcpkgs/ghc-bin/template | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/ghc-bin/template b/srcpkgs/ghc-bin/template
index 9c9ee4e1729c..067d1968b11d 100644
--- a/srcpkgs/ghc-bin/template
+++ b/srcpkgs/ghc-bin/template
@@ -2,7 +2,7 @@
pkgname=ghc-bin
version=8.10.7
revision=1
-archs="i686 x86_64* ppc64le* ppc64 aarch64-musl"
+archs="i686 x86_64* ppc64le* ppc64 aarch64*"
wrksrc="ghc-${version%[!0-9]}"
hostmakedepends="perl libffi libnuma"
depends="ncurses perl gcc libffi-devel gmp-devel"
@@ -39,6 +39,11 @@ ppc64)
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz"
checksum=b8578e602abd4b453845303fb9cfed0b2186f86f60e3aa45869026ea833726c8
;;
+aarch64)
+ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux.tar.xz"
+ checksum=ed4ef006f89698420587b7103c8bb8b972d124bb27a57e64d33f910afbc1931a
+ depends+=" llvm"
+ ;;
aarch64-musl)
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux-musl.tar.xz"
checksum=f2c37a5ed028eebd3e69a22ce989f5cdf6f84a408871ff0933ac532414c6c273
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ghc, ghc-bin: add aarch64* support
2022-03-17 22:02 [PR PATCH] ghc, ghc-bin: add aarch64-musl support ftrvxmtrx
2022-03-21 17:06 ` [PR PATCH] [Updated] " ftrvxmtrx
@ 2022-03-21 18:21 ` ftrvxmtrx
2022-04-06 0:53 ` [PR PATCH] [Closed]: " ftrvxmtrx
2 siblings, 0 replies; 4+ messages in thread
From: ftrvxmtrx @ 2022-03-21 18:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
New comment by ftrvxmtrx on void-packages repository
https://github.com/void-linux/void-packages/pull/36193#issuecomment-1074260122
Comment:
Uploaded [ghc bindist for aarch64 (*not* musl)](https://ftrv.se/_/void/ghc-aarch64/ghc-8.10.7-aarch64-void-linux.tar.xz).
I built and tested some packages with it as well, [uploaded to another repo](https://ftrv.se/_/void/ghc-aarch64).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Closed]: ghc, ghc-bin: add aarch64* support
2022-03-17 22:02 [PR PATCH] ghc, ghc-bin: add aarch64-musl support ftrvxmtrx
2022-03-21 17:06 ` [PR PATCH] [Updated] " ftrvxmtrx
2022-03-21 18:21 ` ghc, ghc-bin: add aarch64* support ftrvxmtrx
@ 2022-04-06 0:53 ` ftrvxmtrx
2 siblings, 0 replies; 4+ messages in thread
From: ftrvxmtrx @ 2022-04-06 0:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
There's a closed pull request on the void-packages repository
ghc, ghc-bin: add aarch64* support
https://github.com/void-linux/void-packages/pull/36193
Description:
GHC uses llvm (specifically `opt` and `llc` executables) to build on aarch64, so that was added as a dependency.
All packages that depend on ghc were built and are available at a [repo I made with signed *.xbps files](https://ftrv.se/_/void/ghc-aarch64-musl) along with the [ghc bindist distfile](https://ftrv.se/_/void/ghc-aarch64-musl/ghc-8.10.7-aarch64-void-linux-musl.tar.xz) required by ghc-bin, which this change assumes is eventually uploaded to `alpha.de.repo.voidlinux.org`. I tested most of the packages, they all work as expected.
I can share the files in some other way if that's preferable.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (aarch64-musl, aarch64)
[ci skip]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-06 0:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 22:02 [PR PATCH] ghc, ghc-bin: add aarch64-musl support ftrvxmtrx
2022-03-21 17:06 ` [PR PATCH] [Updated] " ftrvxmtrx
2022-03-21 18:21 ` ghc, ghc-bin: add aarch64* support ftrvxmtrx
2022-04-06 0:53 ` [PR PATCH] [Closed]: " ftrvxmtrx
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).