dev-lang/hare: add 0.26.0.1, drop 0.25.2, drop 0.26.0 (security)

Fixes CVE-2026-43923

Announcement at https://lists.sr.ht/~sircmpwn/hare-announce/%3CDIAKVMZYSWM2.319DZSFVJ2LK4@ddevault.org%3E

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2026-05-05 22:34:22 +02:00
parent ced57d5c49
commit 8af9189135
3 changed files with 3 additions and 65 deletions

View File

@@ -1,2 +1 @@
DIST hare-0.25.2.tar.gz 940391 BLAKE2B 626b098a4a65c1a8760dc75317dd856f03915d564800beaa6c8708726bfd602c291d5e449139922293a3af087fa7ed2e9076e76e2e2731cab5908256d00894b5 SHA512 a72bda105c3bb40c0d43382f10030883d84d2b3511197890a4641eacfc84cbcf8f5aa15391d31e5b04b2e3154f5db0d7d855d08d213f9cd089ad536cbabdcec5
DIST hare-0.26.0.tar.gz 976164 BLAKE2B fbcafe4d9efd3e69127b26d0128d2ff179edf72fa671e0d96157f410bc746b9596bb8b69350a4ee2ecd363f668c00efabc7585fbc329200658e2aaa68a9f0564 SHA512 3b3e4625f63b3ea5650bbb4c6e690b874292cae85a749cc602a120fa07437a491a0c4fba414565141e7de9b3736fde8d3ba7597b91f7f0d3fa4e95938a11ae77
DIST hare-0.26.0.1.tar.gz 976995 BLAKE2B 1dec85ea7aeb3f124014817e912d300a116f784f0bf78b20e8d72587936c48786d2f83f7a73146ed6485e3e0cf454c92cb0b074abe9be79e8de7fe91156f2fd8 SHA512 61959ce95814f81e04d62eb783aa4dfd807b96c3bd1ee0ee31667d042c630be1406fb0b944f1b35776f5ce529eb55227fac1d37c30218020edb40c6b66ea6771

View File

@@ -1,60 +0,0 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ "${PV}" = 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare"
SLOT="0"
else
MY_PV="$(ver_rs 3 -)"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://git.sr.ht/~sircmpwn/hare/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~riscv"
fi
DESCRIPTION="The Hare systems programming language"
HOMEPAGE="https://harelang.org/"
LICENSE="MPL-2.0 GPL-3"
# release policy: https://git.sr.ht/~sircmpwn/hare/tree/master/item/docs/release.md
DEPEND="
~dev-lang/harec-0.25.2
>=sys-devel/qbe-1.2
"
BDEPEND="app-text/scdoc"
RDEPEND="${DEPEND}"
# hare and haredoc are built by hare
QA_FLAGS_IGNORED="usr/bin/hare usr/bin/haredoc"
PATCHES=(
"${FILESDIR}/hare-0.25.2-os_exec-fix-clearenv.patch"
)
src_configure() {
local target_arch
case ${ARCH} in
amd64 ) target_arch=x86_64 ;;
arm64 ) target_arch=aarch64 ;;
riscv ) target_arch=riscv64 ;;
* ) die "unsupported architecture: ${ARCH}" ;;
esac
# Note: PREFIX needs to be set early as it is used for HAREPATH
cp configs/linux.mk config.mk || die
sed -i \
-e "s;^ARCH =.*;ARCH = ${target_arch};" \
-e "s;^PREFIX =.*;PREFIX = ${EPREFIX}/usr;" \
-e 's;^AS =;AS ?=;' \
-e 's;^LD =;LD ?=;' \
-e 's;^AR =;AR ?=;' \
config.mk || die
}
src_install() {
emake DESTDIR="${D}" install
}

View File

@@ -10,9 +10,8 @@ if [[ "${PV}" = 9999 ]]; then
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare"
SLOT="0"
else
MY_PV="$(ver_rs 3 -)"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://git.sr.ht/~sircmpwn/hare/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
MY_P="${PN}-${PV}"
SRC_URI="https://git.sr.ht/~sircmpwn/hare/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~riscv"