pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Switching the default Haskell compiler to GHC 9.10 (lang/ghc910)
On 2/4/25 00:43, Jonathan Perkin wrote:
* On 2025-02-03 at 09:06 GMT, PHO wrote:
On 2/3/25 16:17, Jonathan Perkin wrote:
* On 2025-02-03 at 03:39 GMT, PHO wrote:
While looking at your 9.4 bootkit I found it had several shared
libraries in ./lib/pkgsrc, and GHC binaries had relative rpaths to
them. How did you do this? Could you provide instructions in files/
BOOTSTRAP.md so that future me can produce bootkits like this?
I would have done it similar to the Rust bootstraps, have a look at
this section:
https://github.com/NetBSD/pkgsrc/blob/pkgsrc-2024Q4/lang/rust/
Makefile#L642-L684
Thanks. I'll try to integrate this to Hadrian, the build system for
GHC. It will take some time though, so you may still want to do it
manually this time :D
I've managed to generate a 9.8.2 bootstrap kit, using the same approach
as for Rust. I needed to let hadrian build the wrong bootstrap first,
and then unpacked it and fixed it up. It's in the usual place.
Thank you!
I needed an extra patch to turn off split sections, as the linker script
is specific to GNU ld. ChatGPT helped me write this patch as I know
zero haskell:
https://gist.github.com/jperkin/eb4c39231627eb053d6e33e2b8b4ebef
There's probably a cleaner way, I'll leave it to you to re-work and
integrate as necessary.
ChatGPT speaks Haskell?! Cool...
And yeah, I noticed the same problem as well, and fixed it with this patch:
https://github.com/NetBSD/pkgsrc/blob/trunk/lang/ghc98/patches/patch-hadrian_src_Settings_Builders_Cabal.hs
Home |
Main Index |
Thread Index |
Old Index