Umeaboy wrote:I totally get that not all Mageia users want or need to use GHC (Glasgow Haskell Compiler), but I took the liberty of building ghc-bootstrap to at least easen the porting process.
However, the %files part needs to be solved better and there are build warnings about unused errors that needs to be addressed.
I was wondering if someone can help me solve these issues.
It would be great if Haskell were available for Mageia so that the few projects inexplicably written in Haskell could be available (pandoc is surely the most important but there are others). I did download the Haskell environment (through the ghcup script) a few months ago: 5GB and slow as dirt (listing Python packages is multiple times faster than listing Haskell packages). Of course a big problem with Haskell is that vendoring isn't possible like it is for Go and Rust, so you have to maintain a large collection of packages for Haskell modules as well. The things written in Haskell I'm aware of (including pandoc) provide binaries but that seems to have to have two disadvantages:
- They tend only to be available for x86_64 and aarch64, but not for other architectures.
- There's no mechanism to be notified of updates.
One of the first things I noticed about the SPEC file is that it uses the Fedora `1%{?dist}` (which works in Mageia of course) instead of the Mageia `%mkrel 1`. In the Source RPMS I upload to COPR, I use:
- Code: Select all
%if 0%{!?mkrel:1}
%define mkrel(c) %{1}%{?dist}
%endif
That way, I can use %mkrel and it more or less works for non-Mandriva-based distros.