ghc-bootstrap

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

ghc-bootstrap

Postby Umeaboy » Apr 13th, '24, 01:07

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.
Attachments
ghc-bootstrap.spec
Proposal spec file
(3.95 KiB) Downloaded 325 times
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: ghc-bootstrap

Postby doktor5000 » Apr 13th, '24, 16:19

And you don't mind sharing what those "build warnings about unused errors" are in particular? How should someone help solve those, if you don't post them ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: ghc-bootstrap

Postby Umeaboy » Apr 14th, '24, 19:12

Attached entire build output including warnings.
Also, the ghc binary doesn't seem to get placed in the right place.
Attachments
Unused libraries.log
Entire build output including warnings
(71.13 KiB) Downloaded 285 times
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: ghc-bootstrap

Postby doktor5000 » Apr 14th, '24, 19:42

And do you have some actual issues going together with those warnings ?
You should probably read and try to understand https://wiki.mageia.org/en/Overlinking_ ... _packaging

Regarding "the ghc binary doesn't seem to get placed in the right place" - what would be the right place in your opinion?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: ghc-bootstrap

Postby Umeaboy » Apr 14th, '24, 21:28

Well, autocomplete isn't working.

I type gh and press Tab button to autocomplete, but nothing happens.
Last edited by isadora on Apr 15th, '24, 07:31, edited 1 time in total.
Reason: Removed quote; not appropraite right after quoted message.
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: ghc-bootstrap

Postby doktor5000 » Apr 15th, '24, 17:42

What are the permissions of /usr/bin/ghc in your binary RPM that you installed ?
Code: Select all
rpm -qlv ghc-bootstrap | grep /usr/bin
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: ghc-bootstrap

Postby zooplah » Jun 3rd, '25, 00:39

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:
  1. They tend only to be available for x86_64 and aarch64, but not for other architectures.
  2. 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.
zooplah
 
Posts: 20
Joined: Aug 8th, '11, 05:44
Location: USA

Re: ghc-bootstrap

Postby doktor5000 » Jun 3rd, '25, 19:22

See the history about haskell in https://bugs.mageia.org/show_bug.cgi?id=26041 and the older linked bugreport. We had haskell before and it had to be dropped because it was not maintained anymore.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron