https://bugzilla.redhat.com/show_bug.cgi?id=2154514
Dridi Boukelmoune dridi.boukelmoune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dridi.boukelmoune@gmail.com
--- Comment #9 from Dridi Boukelmoune dridi.boukelmoune@gmail.com --- May I suggest taking some inspiration from my local packaging of hare?
As of today it looks like this:
https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd...
I solved the cross-compiling configuration and dependencies with Lua macros:
https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd... https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd...
I also meant to make the qbe package install an RPM macro %{qbe_arches}:
https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd...
But I did the work for my hare package:
https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd...
The harec package should probably also expose a %{harec_arches} macro.
I also tried to extract linker flags from GCC LDFLAGS to feed the LDLINKFLAGS variable:
https://github.com/Dridi/dotfiles/blob/523fb5317185ce3da586ff82639e67de674cd...
It appears to work on my machine, but probably needs scrutiny.
There are other things to consider and off the top of my head I remember wanting to look at tzdata integration and never did.
Adding this is probably enough:
Requires: /usr/share/zoneinfo/leap-seconds.list
One strong recommendation I have is to separate the hare toolchain from the standard library. They have different licenses and purposes so that small complication simplify other things.
I tried to submit a patch upstream to make it easier to process module dependencies to add this to packaging, but my patch was conflicting with major ongoing refactoring, and until qbe and harec become recent-enough on my machine, I won't attempt a new patch. Right now my old rig is functional for my hare usage.
Hare packaging is currently not on my radar but I may remember other things now that it was brought up to my attention.