Subject: [PATCH v3 1/2] community/harec: upgrade to cdb79d0f7c775805b97d2a91d387a74dfc71a9d2

From: Drew DeVault <[email-masked]>
Date: Sat, 11 Jun 2022 10:05:25 +0200

---
 community/harec/APKBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/community/harec/APKBUILD b/community/harec/APKBUILD
index ee84e77eb7..af21734bad 100644
--- a/community/harec/APKBUILD
+++ b/community/harec/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Drew DeVault <[email-masked]>
 pkgname=harec
-pkgver="0_git20220510"
-_commit=4a97bd2bafbd6e89f692c18477a08d8112dbd6e1
+pkgver="0_git20220611"
+_commit=cdb79d0f7c775805b97d2a91d387a74dfc71a9d2
 pkgrel=0
 pkgdesc="The Hare compiler"
 url="https://harelang.org"
@@ -27,5 +27,5 @@ package() {
 }
 
 sha512sums="
-e0d7c73034766c70adef1e4c339d1ae2fbe1546f1c40c2881d6c0632200c33aca0f84eeca04f42744a342c0667081f69bbaa2912c7ca7d266e627a26e68cf822  harec-4a97bd2bafbd6e89f692c18477a08d8112dbd6e1.tar.gz
+5a1d4007e782b4c3ca2d6a1932d6cbf9ff0ff955ce43458c40201276b1244684d3b692241ed0727ce52f28594db761d5e89e13f6441d5af6b2d14dfaf8d42bf5  harec-cdb79d0f7c775805b97d2a91d387a74dfc71a9d2.tar.gz
 "

base-commit: 36a8d00236ca194d8cb2b98d502dc3d4b07768ec
prerequisite-patch-id: 74dcc23db58b748fe6ce19eb7bad74ce24a1efc3
prerequisite-patch-id: aab92d49d78d7912b472b34fe4814c2b89c29cd4
-- 
2.36.1

---

From: Drew DeVault <[email-masked]>
Date: Sat, 11 Jun 2022 10:05:26 +0200

---
 community/hare/APKBUILD          | 15 +++++++++------
 community/hare/config.aarch64.mk | 17 +++++++++++++++++
 community/hare/config.riscv64.mk | 17 +++++++++++++++++
 community/hare/config.x86_64.mk  | 17 +++++++++++++++++
 4 files changed, 60 insertions(+), 6 deletions(-)

diff --git a/community/hare/APKBUILD b/community/hare/APKBUILD
index c60cfda40f..8ccbe824fb 100644
--- a/community/hare/APKBUILD
+++ b/community/hare/APKBUILD
@@ -1,7 +1,10 @@
 # Maintainer: Drew DeVault <[email-masked]>
+# TODO: This package could be improved if Alpine had better support for
+# cross-compiling with a better standardized and broader set of binutils
+# and gcc packages.
 pkgname=hare
-pkgver="0_git20220510"
-_commit=f7ca9eff38cc46681dc08c5bae1a6b914d067e56
+pkgver="0_git20220611"
+_commit=01aaa1c2b5f5d91db545095b22b22f4d352fc83d
 pkgrel=0
 pkgdesc="The Hare systems programming language"
 url="https://harelang.org"
@@ -36,8 +39,8 @@ package() {
 }
 
 sha512sums="
-b872fdea3644612aaa97c2cfa711810056d7536e042abca5f4279227a73297cd6081936f5acb20fbafd8edfdf34f03f484ab73e87656c543edc1452bdea85457  hare-f7ca9eff38cc46681dc08c5bae1a6b914d067e56.tar.gz
-c30c2979a94d73f5bbb39c3fa250d155548fb07ba93cb4a2111eede51be5fd9017e2b4291f4f16657718e6bc414b90b583a14df572fab4579d26c5680a279dcb  config.aarch64.mk
-6980757c09987363817de0599b59334817831f1c5782ae48a94b88c5b10aa1ab32fdc6c76911d02d1c100d78db98f1ca2167ecdf9580fc4d9bc560577f6fe89e  config.riscv64.mk
-159c2f56f9617a97ecbe2b1ab94c98beb798fa575463bdcfba281a023202df481714c16536e213e859468b50cdd9f339224d8a3b3d57e139a58412b3efba6d84  config.x86_64.mk
+8163f8a3943f48c0a86d72de0b402a74dca7badfe6379e1fda5cbce127e1087506204a01b83d5bba4a126fe91ddb2c917b575b1a110816ee930342c606893009  hare-01aaa1c2b5f5d91db545095b22b22f4d352fc83d.tar.gz
+129189cbc86e1ee0ae5c81a12b2797f36b1a9ed742a81496fff14f8527ef6fe4881a261c2156a5bafcaeaf4a692e3cf8b27c473339676e65479e6f3546a3ee99  config.aarch64.mk
+96280a82594b19ec8972946c89fa0f0b9d0e89cc517e6476ace4be8adc66be1d631d75172d36261e9c9414b0e3453be59dd7b4b0abf3735d182c28005dc5eee3  config.riscv64.mk
+ad724530acea8377fd9372af416d467470497a4aa80a0405d1d4a9b6ddce609485549ffd31426884fa277b8dcab279288498413fddc41dc23ea24ad30bab224e  config.x86_64.mk
 "
diff --git a/community/hare/config.aarch64.mk b/community/hare/config.aarch64.mk
index 649d0b979e..d200ba4bdd 100644
--- a/community/hare/config.aarch64.mk
+++ b/community/hare/config.aarch64.mk
@@ -29,3 +29,20 @@ SCDOC=scdoc
 
 # Where to store build artifacts
 HARECACHE=.cache
+BINOUT = .bin
+
+# Cross-compiling settings
+AARCH64_AS=as
+AARCH64_AR=ar
+AARCH64_CC=cc
+AARCH64_LD=ld
+
+RISCV64_AS=riscv64-alpine-linux-musl-as
+RISCV64_AR=riscv64-alpine-linux-musl-ar
+RISCV64_CC=riscv64-alpine-linux-musl-cc
+RISCV64_LD=riscv64-alpine-linux-musl-ld
+
+X86_64_AS=x86_64-alpine-linux-musl-as
+X86_64_AR=x86_64-alpine-linux-musl-ar
+X86_64_CC=x86_64-alpine-linux-musl-cc
+X86_64_LD=x86_64-alpine-linux-musl-ld
diff --git a/community/hare/config.riscv64.mk b/community/hare/config.riscv64.mk
index 989f24b109..47ab809ba8 100644
--- a/community/hare/config.riscv64.mk
+++ b/community/hare/config.riscv64.mk
@@ -29,3 +29,20 @@ SCDOC=scdoc
 
 # Where to store build artifacts
 HARECACHE=.cache
+BINOUT = .bin
+
+# Cross-compiling settings
+AARCH64_AS=aarch64-alpine-linux-musl-as
+AARCH64_AR=aarch64-alpine-linux-musl-ar
+AARCH64_CC=aarch64-alpine-linux-musl-cc
+AARCH64_LD=aarch64-alpine-linux-musl-ld
+
+RISCV64_AS=as
+RISCV64_AR=ar
+RISCV64_CC=cc
+RISCV64_LD=ld
+
+X86_64_AS=x86_64-alpine-linux-musl-as
+X86_64_AR=x86_64-alpine-linux-musl-ar
+X86_64_CC=x86_64-alpine-linux-musl-cc
+X86_64_LD=x86_64-alpine-linux-musl-ld
diff --git a/community/hare/config.x86_64.mk b/community/hare/config.x86_64.mk
index 789fd0d92e..6fe42d4752 100644
--- a/community/hare/config.x86_64.mk
+++ b/community/hare/config.x86_64.mk
@@ -29,3 +29,20 @@ SCDOC=scdoc
 
 # Where to store build artifacts
 HARECACHE=.cache
+BINOUT = .bin
+
+# Cross-compiling settings
+AARCH64_AS=aarch64-alpine-linux-musl-as
+AARCH64_AR=aarch64-alpine-linux-musl-ar
+AARCH64_CC=aarch64-alpine-linux-musl-cc
+AARCH64_LD=aarch64-alpine-linux-musl-ld
+
+RISCV64_AS=riscv64-alpine-linux-musl-as
+RISCV64_AR=riscv64-alpine-linux-musl-ar
+RISCV64_CC=riscv64-alpine-linux-musl-cc
+RISCV64_LD=riscv64-alpine-linux-musl-ld
+
+X86_64_AS=as
+X86_64_AR=ar
+X86_64_CC=cc
+X86_64_LD=ld
-- 
2.36.1