Package Details: hare 0.24.0-1

Git Clone URL: (read-only, click to copy)
Package Base: hare
Description: The Hare programming language
Upstream URL:
Licenses: MPL-2.0 AND GPL-3.0-only
Submitter: grawlinson
Maintainer: grawlinson (bitfehler)
Last Packager: bitfehler
Votes: 25
Popularity: 0.76
First Submitted: 2022-04-25 02:58 (UTC)
Last Updated: 2024-03-18 20:47 (UTC)

Latest Comments

1 2 Next › Last »

torresjrjr commented on 2024-02-19 23:17 (UTC)

Patch for new Hare versioned releases.

diff --git a/.SRCINFO b/.SRCINFO
index 75cf830..33c993f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,16 @@
 pkgbase = hare
    pkgdesc = The Hare programming language
-   pkgver = r3667.c50d9288
+   pkgver = 0.24.0
    pkgrel = 1
    url =
    arch = x86_64
    arch = aarch64
    license = GPL3
    license = MPL2
-   makedepends = git
    makedepends = scdoc
    depends = qbe
    depends = harec
-   source = hare::git+
-   b2sums = SKIP
+   source = hare-0.24.0.tar.gz::
+   sha256sums = 7061dad3c79cca51a1662a71b1c6f8ec001f52ef3053dd3c2dbb95ae9beff7bc

 pkgname = hare
diff --git a/PKGBUILD b/PKGBUILD
index e9f7c97..35a3cb5 100644
@@ -2,36 +2,30 @@
 # Contributor: Armin Preiml <>

 pkgdesc='The Hare programming language'
 arch=('x86_64' 'aarch64')
 license=('GPL3' 'MPL2')
 depends=('qbe' 'harec')
-makedepends=('git' 'scdoc')
-pkgver() {
-  cd hare
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

 prepare() {
-  cd hare
+  cd "$_hare"

   # configure prefix directory & architecture
   sed \
-    -e 's:/usr/local:/usr:' \
-    -e "s/^ARCH = .*/ARCH = $CARCH/" \
+    -e 's|/usr/local|/usr|' \
+    -e "s|^ARCH = .*|ARCH = $CARCH|" \
     configs/ >

 build() {
-  cd hare
+  cd "$_hare"

   # remove '-Wl,' prefix if present, since it is only required when
   # the linker is invoked indirectly. Keeping it will cause the linker to
@@ -43,7 +37,7 @@ build() {

 check() {
-  cd hare
+  cd "$_hare"

   # XXX: see above, in build().
@@ -53,7 +47,7 @@ check() {

 package() {
-  cd hare
+  cd "$_hare"

   make DESTDIR="$pkgdir" install

arenm commented on 2023-12-03 19:58 (UTC)

This patch implements what I describe below:

To compile hare when $ARCH=aarch64 these options need to be set in


Also in order to be able to cross compile programs from an x86 host to a aarch64 target (using hare -t aarch64) the same options need to be set like this when $ARCH=x86_64.


As far as I can tell there isn't a x86 compiler / linker in the archinuxarm repos, and there isn't a riscv compiler in either the arch or arch arm repos, so those settings for cross compilation don't make much difference.

Sorry I didn't test and follow up before, I hope this helps :)

wackbyte commented on 2023-11-30 05:23 (UTC) (edited on 2023-11-30 05:43 (UTC) by wackbyte)

Doesn't compile on aarch64. I tried arenm's suggestion and then it did compile.

arenm commented on 2023-08-01 02:30 (UTC)

Would you consider adding a file for aarch64 (similar to what whynothugo suggested)? Based off the alpine packages[1], it seems like upstream expects configuration changes to compile for different architectures.


mburakov commented on 2023-02-05 09:14 (UTC)

Hi all, seems like qbe got updated to 1.1. So this builds fine now.

phat_sumo commented on 2023-02-01 17:11 (UTC)

For anyone else still struggling with this, it's actually an issue with newer changes to harec requiring qbe 1.1, which hasn't been packaged yet (and might not be for a while). Using qbe-git fixes this for the time being.

grawlinson commented on 2023-01-18 22:11 (UTC)

The problem is here: Unknown attribute @packed.

phat_sumo commented on 2023-01-18 19:56 (UTC)

Having problems building hare again. With makepkg -si, I get the following error:

==> Starting build()...
HAREC   .cache/rt/rt-linux.ssa
Syntax error at ./rt/+linux/+x86_64.ha:45:34: Unknown attribute @packed
make: *** [ .cache/rt/rt-linux.ssa] Error 1
==> ERROR: A failure occurred in build().
warning: could not open directory 'pkg/': Permission denied

pkg/ appears to have 111 permissions.

dwu commented on 2022-10-29 13:49 (UTC)

After fiddling around a little more it seems like the package builds fine when not having makepkg configured for building in parallel. Sorry for the noise.

@phat_sumo In case it's the same issue for you, you can try removing any MAKEFLAGS=-j... setting in your /etc/makepkg.conf.

phat_sumo commented on 2022-10-28 18:38 (UTC)

@dwu I'm getting the same error, been at a loss trying to solve the issue overnight.