atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
21.31k stars 562 forks source link

Missing proper RPM packaging #990

Open igmar opened 1 year ago

igmar commented 1 year ago

Placeholder story, implementation is WIP.

Initial targeted distro's :

Fedora Core 38

Next :

FC37 RHEL 7,8,9

After : Depending on requests

LeoniePhiline commented 1 year ago

Fwiw, OpenSUSE packages atuin and shell completions (rpm): https://software.opensuse.org/search?q=Atuin

igmar commented 1 year ago

Ok, I have the .spec file ready. Its not as trivial as I'd hoped tho : RHEL8 comes with rust 1.66, and atuin 16.0.0 needs rust 1.67 to compile, due to the usage of u32.ilog

Strangely, this is only an issue for RHEL8 : That has no other rust version available. RHEL9 is OK, and RHEL7 has very rust version in EPEL.

We have 2 options :

1) We somehow get rid of the u32.ilog usage, so its compatible with rust 1.66 2) I fixup a recent rust version on RHEL8

1) is easiest, 2) requires a bit more work, and might be an issue for people that want to build their own package. I can do the builds on my own infra, and that produces proper binaries.

@ellie what is your opinion on this ?

igmar commented 1 year ago

A quick 'hack' might be to bump rust to 1.67, that should be easy. I'll give that one a go first.

SoMuchForSubtlety commented 1 year ago

Is the plan to provide packages via openSUSE Build Service or Copr?

igmar commented 1 year ago

Is the plan to provide packages via openSUSE Build Service or Copr?

I'm going to use copr, and if not possible, my own build infra. For RHEL 7/9 I can get away with copr, for 8 it is probably going to be an issue.

SriRamanujam commented 11 months ago

@igmar were you able to make any progress on this? I'm also interested in proper RPMs for atuin, and am willing to help with the packaging if needed :)

LecrisUT commented 9 months ago

@igmar any progress on this? If we can get a Fedora+epel-9 it is already a major step. I can help guide some automation with packit if upstream wants to support it. I don't have experience packaging rust projects though.

Link to the most recent effot https://github.com/SriRamanujam/atuin-rpmspec?