maintainer-feedback requested: [Bug 263830] textproc/hs-pandoc build failure, HUnit missing in distinfo

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 07 May 2022 00:50:23 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-haskell (Nobody)
<haskell@FreeBSD.org> for maintainer-feedback:
Bug 263830: textproc/hs-pandoc build failure, HUnit missing in distinfo
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263830



--- Description ---
I ran into some trouble while attempting to build pandoc from the ports tree,
the build error is at the bottom of this post. In distinfo, I found that "SIZE"
and "SHA256" records for the HUnit tarball do not exist.

Eventually, I gave up and ran 'pkg install hs-pandoc', which works. The
maintainer of this port and I are probably the only ones who have any interest
in this, so unless anyone objects, I'll try my hand at fixing it.

I also couldn't help but notice the version of HUnit in the ports tree is older
than the one pandoc depends on. I'll try my hand at updating this port while
I'm at it:

https://www.freshports.org/devel/hs-HUnit

Here is the build error:

freebsd% pwd
/usr/ports/textproc/hs-pandoc
freebsd% doas make
Password:
===>  License GPLv2 accepted by the user
===>   hs-pandoc-2.14.2 depends on file: /usr/local/sbin/pkg - found
=> cabal/HUnit-1.6.2.0/HUnit-1.6.2.0.tar.gz is not in
/usr/ports/textproc/hs-pandoc/distinfo.
=> Either /usr/ports/textproc/hs-pandoc/distinfo is out of date, or
=> cabal/HUnit-1.6.2.0/HUnit-1.6.2.0.tar.gz is spelled incorrectly.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/textproc/hs-pandoc
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/hs-pandoc
freebsd%