Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2025 05:14:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 284690] [new port] astro/astroterm: Explore stars, planets, constellations, and more in your terminal!
Message-ID:  <bug-284690-7788-8gDW3Mf1OT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-284690-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-284690-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284690

--- Comment #6 from Yusuf Yaman <nxjoseph@protonmail.com> ---
Hmm, I never got fetch error in either my system or poudriere but I made the
change you provided. Thanks.

By the way, astroterm checks checksum of downloaded BSC5 file so I think th=
at
we should use web.archive.org here instead of downloading it directly from =
the
source site because source site may update it and checksum verification may
fail.

FILE: work/astroterm-1.0.7/data/meson.build

# Verify bsc5 downloaded correctly
bsc5_bin_path =3D 'bsc5'
bsc5_bin_hash =3D
'e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340'
bsc5_ascii_path =3D 'ybsc5'
bsc5_ascii_hash =3D
'69797549cc1605aad7ff94e9325e29a1661f2a253917faaa056d9bf20b809afd'

computed_hash =3D fs.hash(bsc5_path, 'sha256')
if computed_hash !=3D expected_hash
  error(bsc5_path + ' SHA-256 hash mismatch! Build halted.' +
        '\nExpected:\t' + expected_hash +
        '\nGot:\t\t' + computed_hash)
else
  message(bsc5_path + ' SHA-256 hash verified successfully: ' + computed_ha=
sh)
endif

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284690-7788-8gDW3Mf1OT>