Package Details: hare 0.24.2-1

Git Clone URL: https://aur.archlinux.org/hare.git (read-only, click to copy)
Package Base: hare
Description: The Hare programming language
Upstream URL: https://harelang.org/
Licenses: MPL-2.0 AND GPL-3.0-only
Submitter: grawlinson
Maintainer: grawlinson (bitfehler)
Last Packager: bitfehler
Votes: 26
Popularity: 0.055286
First Submitted: 2022-04-25 02:58 (UTC)
Last Updated: 2024-07-15 09:38 (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 = https://harelang.org/
    arch = x86_64
    arch = aarch64
    license = GPL3
    license = MPL2
-   makedepends = git
    makedepends = scdoc
    depends = qbe
    depends = harec
-   source = hare::git+https://git.sr.ht/~sircmpwn/hare#commit=c50d928838cdea09c028964a71b053588dcd63a4
-   b2sums = SKIP
+   source = hare-0.24.0.tar.gz::https://git.sr.ht/~sircmpwn/hare/archive/0.24.0.tar.gz
+   sha256sums = 7061dad3c79cca51a1662a71b1c6f8ec001f52ef3053dd3c2dbb95ae9beff7bc

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

 pkgname=hare
-pkgver=r3667.c50d9288
+pkgver=0.24.0
 pkgrel=1
 pkgdesc='The Hare programming language'
 arch=('x86_64' 'aarch64')
 url='https://harelang.org/'
 license=('GPL3' 'MPL2')
 depends=('qbe' 'harec')
-makedepends=('git' 'scdoc')
-_commit='c50d928838cdea09c028964a71b053588dcd63a4'
-source=("hare::git+https://git.sr.ht/~sircmpwn/hare#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd hare
-
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
+makedepends=('scdoc')
+_hare="$pkgname-$pkgver"
+source=("$_hare.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('7061dad3c79cca51a1662a71b1c6f8ec001f52ef3053dd3c2dbb95ae9beff7bc')

 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/linux.mk > config.mk
 }

 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: https://termbin.com/1ofx.

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

AARCH64_AS=as
AARCH64_AR=ar
AARCH64_CC=cc
AARCH64_LD=ld

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.

AARCH64_AS=aarch64-linux-gnu-as
AARCH64_AR=aarch64-linux-gnu-ar
AARCH64_CC=aarch64-linux-gnu-cc
AARCH64_LD=aarch64-linux-gnu-ld

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 config.mk 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.

1: https://git.alpinelinux.org/aports/tree/community/hare/APKBUILD#n29

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: *** [stdlib.mk:63: .cache/rt/rt-linux.ssa] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
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.