Linux Flatpak packaging help & advice #2685
-
Hi there, I guess I should start by asking, would this be ok? I won't need to change anything in the original source code, it can be used as is. Now, let me explain quickly the specifics of flatpak packaging: The way flatpaks are supposed to be packaged is by using exact versions for sources and dependencies and retrieve them using flatpak's framework (which can use git or I guess wget), so dependencies can't be downloaded automatically as part of the build process. This I've found some people smarter than me have have created a utility to extract dependencies from Cargo.lock and translate it into a file flatpak can understand and pre-download all the dependencies into a specific folder. After that, the only change that I had to make to the original source was to add an override in '.cargo/config.toml' to direct requests to
And that's pretty much it really, after that I can just run Now, I have a couple of questions about the build process:
And I guess that's pretty much it. Any comments, suggestions or proposals are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
And no, you don't need to ask for permission. I don't think any packager has asked if it's okay to package ripgrep. :-) That is customary and culturally appropriate in the Linux world. One nice thing though is that when you get it setup, you could submit a PR to ripgrep adding installation instructions for flatpak. |
Beta Was this translation helpful? Give feedback.
simd-accel
, I'd skip it personally. I believe the only thing it speeds up these days is UTF-16 transcoding, and that only applies when searching UTF-16. This is somewhat rare on Linux. All of the search related SIMD optimizations get enabled automatically. The only reason the UTF-16 transcoding doesn't is because the author ofencoding_rs
chooses not to. (And we don't need to get into the reasons there. I don't agree with the decision personally, but there are $reasons.) As forpcre2
, that's really up to you as the packager. It's optional for precisely…