bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.45k stars 126 forks source link

Request for Pacstall Support #412

Closed wizard-28 closed 2 years ago

wizard-28 commented 2 years ago

Pacstall is a community-driven AUR-like package manager for Ubuntu. We have an ongoing pull request to add fennel-bin to our repository.

We have a few questions for you:

technomancy commented 2 years ago

Cool.

  1. It's probably best to keep packaging out of this repo and in a downstream location.
  2. The documentation about package managers is kept on the wiki, so it's free for anyone to update when new package managers add Fennel: https://github.com/bakpakin/Fennel/wiki/Packaging However, the linked pull request doesn't look right. It's just downloading the x86_64 binary regardless of the architecture of the user. If you want to make a single package that works for everyone, it's better to just get the script version and add a dependency on Lua. If you really want a binary for some reason, you'll need to offer one for each supported architecture, but in the context of a package manager there's really not any benefit to the binary version.
wizard-28 commented 2 years ago

It's probably best to keep packaging out of this repo and in a downstream location.

Okay!


However, the linked pull request doesn't look right. It's just downloading the x86_64 binary regardless of the architecture of the user. If you want to make a single package that works for everyone, it's better to just get the script version and add a dependency on Lua

We only support x86_64 at the moment, We have plans for other architectures in the next version. I would just add the -bin pacscript for now, and update it with multi architecture support in the future.

I'm making a variant package with the fennel script, which one do you want us to add to the wiki? I guess the latter for now.

wizard-28 commented 2 years ago

I've added the script variant: https://github.com/pacstall/pacstall-programs/pull/763

technomancy commented 2 years ago

OK cool; sounds good.

technomancy commented 2 years ago

Oh, I also noticed that the packaging doesn't seem to do any verification of the checksum or signature; that looks like a pretty major oversight too.

Elsie19 commented 2 years ago

Oh, I also noticed that the packaging doesn't seem to do any verification of the checksum or signature; that looks like a pretty major oversight too.

We do checksum verification, and we'll take signature verification into consideration for our python rewrite.