Github messages for voidlinux
 help / color / mirror / Atom feed
From: gogabr <gogabr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Ghc build for aarch64, aarch64-musl
Date: Sat, 30 May 2020 12:30:21 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22426@inbox.vuxu.org> (raw)

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

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

https://github.com/gogabr/void-packages ghc-build
https://github.com/void-linux/void-packages/pull/22426

Ghc build for aarch64, aarch64-musl
aarch64 binaries should probably be moved to a more appropriate place.

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

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

From dd86f796128905f199997f3127212d0c1014d9ec Mon Sep 17 00:00:00 2001
From: George Bronnikov <yura.bronnikov@gmail.com>
Date: Sat, 30 May 2020 12:53:02 +0300
Subject: [PATCH 1/2] ghc-bin: add aarch64, aarch64-musl binaries

---
 srcpkgs/ghc-bin/template | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/ghc-bin/template b/srcpkgs/ghc-bin/template
index f3820a0ac37..8e5e872962b 100644
--- a/srcpkgs/ghc-bin/template
+++ b/srcpkgs/ghc-bin/template
@@ -1,8 +1,8 @@
 # Template file for 'ghc-bin'
 pkgname=ghc-bin
 version=8.8.3
-revision=1
-archs="i686 x86_64* ppc64le"
+revision=2
+archs="i686 x86_64* ppc64le aarch64*"
 wrksrc="ghc-${version%[!0-9]}"
 hostmakedepends="ncurses perl libffi libnuma"
 depends="ncurses perl gcc libffi-devel gmp-devel"
@@ -31,6 +31,18 @@ ppc64le)
 	distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64le-void-linux.tar.xz"
 	checksum=0c8df56aa0177459894ba53375115ab76f8eed9f4b1018fae5c332bcc6b79cb4
 	;;
+aarch64)
+	# create with "make binary-dist"
+        depends+=" llvm"
+        distfiles="https://newstar.rinet.ru/~goga/void/ghc-${version}-aarch64-void-linux-glibc.tar.xz"
+        checksum=46bfdee5add70079c5700791aaddd958bf8630b7dad19aa09e79a612fe399c99
+        ;;
+aarch64-musl)
+	# create with "make binary-dist"
+        depends+=" llvm"
+        distfiles="https://newstar.rinet.ru/~goga/void/ghc-${version}-aarch64-void-linux-musl.tar.xz"
+        checksum=114ea7ddddec0b2fda06c2dbaff2cb1149b850ac17e052e5f5cb848297b06ed7
+        ;;
 esac
 
 do_configure() {

From cc42856be6e460015dd9dcf6ccb8e91bd1e1900c Mon Sep 17 00:00:00 2001
From: George Bronnikov <yura.bronnikov@gmail.com>
Date: Sat, 30 May 2020 12:53:28 +0300
Subject: [PATCH 2/2] ghc: build for aarch64, aarch64-musl

---
 srcpkgs/ghc/template | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index 12a1a8235db..68ad433518a 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -2,7 +2,7 @@
 pkgname=ghc
 # Keep this synchronized with http://www.stackage.org/lts
 version=8.8.3
-revision=1
+revision=2
 wrksrc="ghc-${version%[!0-9]}"
 build_style=gnu-configure
 configure_args="--with-system-libffi"
@@ -39,6 +39,19 @@ desc_option_bindist="Create a binary distribution"
 # GHC's bundled tarball is from 2017, buggy on some archs
 _ffi_rev=4d6d2866ae43e55325e8ee96561221804602cd7a
 
+case "$XBPS_TARGET_MACHINE" in
+aarch64)
+        hostmakedepends+=" llvm"
+        depends+=" llvm"
+        ;;
+aarch64-musl)
+        # does not work with gold
+        configure_args+=" --disable-ld-override"
+        hostmakedepends+=" llvm"
+        depends+=" llvm"
+        ;;
+esac
+
 if [ "$build_option_bindist" ]; then
 	# Strip --with-system-libffi from configuration
 	configure_args=${configure_args/--with-system-libffi/}

             reply	other threads:[~2020-05-30 10:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 10:30 gogabr [this message]
2021-01-29  0:50 ` [PR REVIEW] " ericonr
2021-01-29  0:50 ` ericonr
2021-01-29  0:50 ` ericonr
2021-02-01  6:31 ` gogabr
2021-02-01  6:33 ` gogabr
2021-02-01 12:55 ` ericonr
2021-02-01 12:55 ` ericonr
2021-02-01 12:57 ` ericonr
2021-07-20 19:46 ` ericonr
2021-07-20 21:01 ` gogabr
2022-04-16  2:02 ` github-actions
2022-04-30  2:13 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22426@inbox.vuxu.org \
    --to=gogabr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).