Re: Legacy Support for GHC-Based Projects

2023-02-04 Thread Ken Cunningham
I sorted out the issue I was having with Template Haskell not finding it's shared libraries, thankfully not too hard in the end to fix. I also sorted out how to force the use of only system libraries. Finally, I made a static archive with the emulated TLS objects (same procedure that gcc uses,

Re: Legacy Support for GHC-Based Projects

2023-01-28 Thread Ken Cunningham
So, some success. I have now managed to build pandoc on 10.6.8, and it seems to work as expected. A small bit of unpleasant hackery is currently involved, that with any luck will be fixed upstream somehow. Exactly how to fix this upstream is not clear to me just yet:

Re: Legacy Support for GHC-Based Projects

2023-01-26 Thread Steven Smith
The path to Haskell is paved with good intentions—there’s a ticket for this now because pandoc stopped building on some older systems after I specified stack as the build tool: https://trac.macports.org/ticket/66764 Back to cabal. > On Jan 25, 2023, at 11:29 AM, Ken Cunningham > wrote: > >

Re: Legacy Support for GHC-Based Projects

2023-01-25 Thread Ken Cunningham
Stack from MacPorts doesn’t build on snow leopard, and I don’t recall it ever built in previous years. The port health page can be pretty misleading, to be honest. You can get a much better idea of what is really building here: https://packages.macports.org/stack/

Re: Legacy Support for GHC-Based Projects

2023-01-25 Thread Steven Smith
I’d recommend starting with the low-hanging fruit. These are all stack-based builds, and stack can build itself back to Snow Leopard: https://ports.macports.org/port/stack/details/ Why doesn’t stack-based pandoc also build back to Snow Leopard? Is this a MacPorts issue or a Haskell-world

Re: Legacy Support for GHC-Based Projects

2023-01-24 Thread Ken Cunningham
At least some of the buildbot ghc builds might be fixable — one of them failed due to a missing png-config I believe, for example. Because of the way upstream builds ghc on macos, their older system support has become more limited. They use homebrew, and current systems, with an older

Re: Legacy Support for GHC-Based Projects

2023-01-22 Thread Sergio Had
GHC can be cross-compiled. You do not need ppc binary. Not necessarily. On Jan 17, 2023 22:45 +0800, Steven Smith , wrote: > A stack binary is required to build stack, and to the best of my knowledge > there is no ppc stack binary:  > https://github.com/commercialhaskell/stack/search?q=ppc=. I

Re: Legacy Support for GHC-Based Projects

2023-01-17 Thread Steven Smith
A stack binary is required to build stack, and to the best of my knowledge there is no ppc stack binary: https://github.com/commercialhaskell/stack/search?q=ppc=. I recommend such requests be taken upstream, as there is no “fix” for PPC on our end.Back to topic, is anyone able to confirm that

Re: Legacy Support for GHC-Based Projects

2023-01-17 Thread Sergio Had
If PPC is fixed on our end, I will try to upstream patches, so we won’t need to carry those. On Jan 17, 2023 21:47 +0800, Steven Smith , wrote: > To clarify, the question is how to specify that these ports use the latest > stack version for builds on legacy systems. Does it work for pandoc now?

Re: Legacy Support for GHC-Based Projects

2023-01-17 Thread Steven Smith
To clarify, the question is how to specify that these ports use the latest stack version for builds on legacy systems. Does it work for pandoc now?stack on ppc or other very old non-supported systems will be extraordinarily fragile and time-consuming, and I expect difficult to anticipate sustained

Re: Legacy Support for GHC-Based Projects

2023-01-17 Thread Sergio Had
I assume stack-based builds are still broken for PPC, as well as Intel builds on 10.6.8, but I will try to find time to work on fixing it. Ken kindly shared his work on GHC for Snow Leopard, but it is for x86 (and not in Macports). If anyone is good at cross-compiling, please ping me. We need

Legacy Support for GHC-Based Projects

2023-01-16 Thread Steven Smith
I recently added legacy-based support to pandoc, but I’m not sure that the code I used is working. I’ll issue a revised PR based on any feedback and use a working version for other GHC-based projects. I used this