-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package for Debian 12 #12
Comments
Alright, I was able to get it the static build to work by passing -j1 to make, and hacking --update-invariants into the Makefile. I wonder if OCaml 5 is absolutely required for this project to build. Unfortunately, Debian seems to be still on OCaml 4. |
Hi @spwhitton and thanks for opening this issue! I have to admit, I’m pretty exciting by your message. Let’s make sure we can make it work locally indeed! I won’t bother you too much with the details, but basically, using I’ve also amend the build instruction in order to be sure it works with users not familiar with OCaml. In particular, running If you ran into another issue, don’t hesitate to report it! I really want Spatial Shell to be usable and having it packaged in Debian and Ubuntu would be… well, awesome to say the least. Something I can suggest if you ran into an issue: use the |
I didn’t see your message before posting mine, sorry about that. I’ll take the liberty to reopen, just to clear a specific related question. The dependency to OCaml 5 is really not necessary, and I can lift it pretty easily I think, I now exactly why I need that and it’s a bad reason. If you think it’s better for, eventually, packaging Spatial Shell for Debian (if Opam local switches are not a proper solution), I’ll definitely spend the necessary (and small) time to remove it. It was bothering me in any case. |
Hello,
Thanks for your replies. To package for Debian, the most significant
requirement is that any libraries you depend on will need to be packaged
separately, rather than vendored into the source tree. We also can't
download anything at package build time. And we'll need to target the
version of OCaml that Debian has.
These are a bit onerous, I admit. But if you're not depending on
anything too exotic, then hopefully it is already packaged in Debian.
You can search to see what's already there by visiting
https://packages.debian.org/libfoo-ocaml-dev and seeing if there are
results. Are there actually any external deps beyond ocaml itself?
…--
Sean Whitton
|
Thanks for the explanation! I don’t have a lot of dependencies, but some are missing from Debian repo. I’ll try to get the list of missing packages and could even give a try to package them myself at first (I’ve always been curious about Debian packaging (: ). |
Oh, I was a bit too hasty in pushing my latest changes. It looks like Bookworm still provides OCaml 4.13, not the latest LTS. I think I’ll add a CI change to check that we can still build Spatial Shell on Debian stable without having to specify the |
Hello,
I'd be very happy to do what I can to help you get those deps, and then
indeed spatial-shell, into Debian. In particular, I can sponsor the
uploads.
In this context, may I suggest renaming the main binary
spatial->spatial-shell? 'spatial' is such a generic noun I think that
it might be perceived as a namespace-grab.
…--
Sean Whitton
|
That’s good to know, thanks!
Would |
Let’s repurpose the issue. Having Debian packages (even not added to the official repositories) was on my todo list. I am currently in the process in trying to have less dependencies and less constraints. Once this PR is merged Spatial Shell will be compatible with OCaml 4.13 (packaged in debian stable). |
According to the CI, here are the OCaml libs installed by
|
I have a confession to make: I reimplemented most of Spatial Shell in Perl over the weekend. As such, I'm no longer willing to invest significant effort into packaging it for Debian. I hope this is not too disappointing.
Hmm, still quite generic. I thought of |
No worries. If you have any valuable lessons you are willing to share from this journey, I would welcome them very much! I’ll keep this issue to try to track my progress on this matter nonetheless. |
Hello,
I would very much like to try Spatial Shell. I run the latest release of Debian, "bookworm". I have no OCaml experience. When I try to use your build instructions, this is what happens:
I would be grateful for any input.
I am a Debian Developer, and so if I find I like Spatial Shell, I would be interested in getting it into the official Debian and Ubuntu repositories. But got to try it out locally first :)
The text was updated successfully, but these errors were encountered: