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
Packaging for the AUR #641
Comments
Also I left you a £2 donation via liberapay, probably nothing for a university student but its better than nothing, keep up the good work! :) |
Hi, I'm thankful for any donation, especially since it lets me publish to the App Store. |
hm I can't find it under the AUR though... |
Yeah I don't know how far they got |
I will email them now and ask, thanks for letting me know :) |
Any update regarding this? I'd love to use this app but i'm somewhat struggling with manually compiling it myself :) |
@Midou36O Hey, I have got it building in a clean chroot, but I have not written up the Remember to vote for the package once I push it to the AUR :) Polarian |
Ok some bad news, I am currently struggling to get saber building with the package now. There is currently no standard for packaging flutter software for Arch Linux, and due to issues I brought up about this a package maintainer https://wiki.archlinux.org/title/User:Gromit/Flutter_package_guidelines However, its not fully working and I will need to speak to gromit (which has a working flutter package) to see if he can help get saber working. Until then though, the appimage works perfectly on Arch Linux, but a distribution package would be far better and would eliminate dependency duplication which appimages have a lot of issues with. @Midou36O I will let you know if I make any more progress on this issue. Polarian |
Alright, good luck! And thanks for your contribution. I will patiently wait then. |
I have been working with What is working so far is the package builds, however the simlink to /usr/bin is broken, which is a simple fix. @adil192 Have you got a It would help if upstream provides one along with the asset for the icon :) Polarian |
The
There's various sizes of icons at https://github.com/adil192/saber/tree/main/assets/icon/resized. If it helps, I use this small list of commands to copy them into the right place when I build the Flatpak: |
Thats I can pull this from the source, might need to write a patch though to patch the .desktop to arch's liking, but apart from that this saves me a ton of time :) |
Could the patch be applied on this repository, or would that interfere with flatpak? |
I have already patched it, it is applied during the prepare stage, all it does is move the flatpak .desktop file to the base path of the source, and rename it to I have pushed the first version to a git repository for testing: https://git.polarian.dev/AUR/saber however unfortunately when testing, a library
So I have to find this library and figure out where to stick xD I guess time to ldd the saber binary. |
They are the plugins, and they are not a part of the I will speak to gromit tomorrow and see if he has any ideas. @Midou36O Hopefully tomorrow you can have a test with the package, but tonight I don't think I will be able to get it working tonight, it still has not be successfully built in a clean chroot. also after the package is pushed to the AUR then I got to document it on the archwiki, along with all the little issues, such as flutter demanding So yes, still a lot to do! |
Hi, I created PKGBUILD for arch linux Edit 1 : lol i did not checked , it is made by PolarianDev
Speaking of |
@Luciogi Yes gtk3 is required, this was something I discussed with if you I have realised looking at yours that I have missed out some libs specified within @adil192 What is the following libs used for (ubuntu packages, I see @Luciogi has used the arch equivalents):
Its always better to have dependency issues and then add the ones you need, instead of listing everything and half of it never being used, therefore pulling in tons of packages, but this is my personal belief, I am sure some people out there would lean on the side of caution. @Luciogi As for rustup, unfortunately you must use it, flutter looks explicitly for the rustup binary, I have tried getting You should not configure @adil192 if it is your build scripts explicitly calling rustup, please let me know, I am aware Polarian |
libsecret would be used for managing username and password for nextcloud login
above libs are necesarry for runtime
I did it because |
I noticing weird behavior, Edit: Tried this solution https://aur.archlinux.org/packages/flemozi#comment-909654 but it is also not working |
Hello, The solution linked there does actually work, I have tested it on my package. The issue is that flutter doesn't expect the libraries to be in /opt changing the path for libraries works... I have the solution in progress... bare with me please :) Polarian |
I am still waiting for Adil to verify both dependencies above are needed, I could ldd saber to see if they are dynamically linked, if so they are needed at runtime. Apart from that I will probably be able to push the package to the AUR within a few hours. Polarian |
@Luciogi I would also like to point out that we do not create the A simple patch makes it usable within AUR, as you can see in my repository. Polarian |
yes. I not did got idea to see .desktop file in flatpak directory xd
using |
I will fix the package shortly, then you and @Midou36O can test it, if you are up to it? |
yup I m with you |
@Luciogi @Midou36O I have got it building, under annoying circumstances, so you must follow the following build steps to work around issues with flutter:
Let me know if you have any issues, I have installed this to my system and it works fine. Thanks for the help, |
Looks like it's failing here following your guide.
And yes i followed the 3rd step properly, using root (idk if that was a good or bad idea 👀 ) and user. |
This is another issue with the flutter aur package. Also you should never build with root, makepkg should stop you however, so I do not know why it did not stop you here... to fix this, simply:
This was taken from the flutter repository: https://aur.archlinux.org/packages/flutter#comment-916623 Good luck, |
Okay now i get this
And then it fails during the preparation :p (Note: i didn't run the makepkg command as root, it was the git command.) |
@Midou36O just type |
Hmm, those don't really ask to input a command. Anyway, i checked the PKGBUILD file and proceeded to manually run the commands, looks like this specific command is causing issues.
Exit code: 66, searching this on google it says that apparently flutter cannot access some sort of directory due to permissions issues (i sure do hope it's not because of the I deleted .pub-cache and tried doing the same thing, it just took longer before throwing the "66" exit code again. |
This is when you have not run the following command:
|
run build by appending |
Build successfully :) with your PKGBUILD @PolarianDev append |
sure, I will add that now |
now I got to rebuild in clean chroot 😞 |
@Midou36O if you still can't build it please read below! I have deployed the final version of saber (I am about to push it to aur) to my unofficial arch repository, which you can see on ArchWiki, website contains instructions. The official repository will allow you to pull saber directly through I will also document the build steps and troubleshooting issues on archwiki when creating the saber page. Enjoy! Polarian |
Link to saber on aur: https://aur.archlinux.org/packages/saber |
Link to ArchWiki page (WIP): https://wiki.archlinux.org/title/Saber |
Yep, the repo worked, although i had to use |
You shouldn't need to my documentation states you need to run the following commands:
You can substitute Once pacman gpg store has my key, you then need to locally sign it trusting that it is valid:
And yes, this is my valid key if you are wondering xD After that it should be able to verify the authenticity of all files within the repository along with the package database (which is also signed for security) |
I would like a link to where it says And I am glad the package works fine :) |
^^^ Feel free to submit any issues with the package to the repository: https://git.polarian.dev/AUR/saber/issues Unless its a known issue with upstream :) Also dont forget to vote for the aur package so its bumped up so more people can find the package. |
Looks like you're looking for this https://wiki.archlinux.org/title/Pacman/Package_signing#Signature_is_unknown_trust (4th mitigation option.) |
Unfortunately there is no way around this, see: https://wiki.archlinux.org/title/Pacman/Package_signing#Adding_unofficial_keys |
Ok I have finished the wiki as best as possible for now, I will ask for it to be reviewed to see if I made any minor errors. AUR package I wlil also ask |
@PolarianDev close this issue |
Shortly, I am still waiting on the finalisation. |
@adil192 I can not update the package to the version you pushed today because flutter is broken, without any response from the devs or the package maintainers for arch. Currently when flutter is outdated the tool self destructs, so unfortunately I can't build saber until then. |
Just a quick note, I have not forgot about this package but currently have other priorities. If you have experience with Arch Linux package maintaining, I am happy to give you co-maintainer so you can also help keep saber up to date. However as I have explained on the wiki, the saber package is flaky due to the bad flutter support on Arch Linux. |
The latest version pushed today ( Enjoy! |
Hello, It has happened again, yet again https://git.polarian.dev/AUR/saber/pulls/6#issuecomment-217 I will reattempt building saber once flutter is updated. I apologise for the constant pain of dealing with awful flutter support, I am trying my best. The flatpak or appimage can be used in the meantime. Take care, |
Latest flutter version has worked within Arch Linux, Man dealing with flutter is a right pain, but hey the latest version of saber is working natively again \o/ |
Latest version ( However when building this I saw the following:
Seems a lot of the dependencies are outdated @adil192 , I doubt this matters too much, just a small heads up. Take care, |
This is normal don't worry |
Hello world,
So I found saber via fdroid because it bumps recently updated, or added apps to the top of the store. I also realise that the app is not contained in any official arch repository, nor the AUR, so I intended to package it.
The reason I am making an issue to inform you of this is because I believe in communication between a package maintainer and upstream to ensure the highest quality builds possible.
I would be submitting saber to the AUR today, however due to dependency issues this can not be done.
Flutter is within the AUR, but the package is disfunctional and refuses to build any flutter application, due to the fact it constantly tries to connect to google servers, and pull stuff down which is not possible. Therefore, I must write up one (or more) patches to flutter before I can even build saber.
I do notice you provide an Appimage for Linux, I can use this to create a
-bin
package, but these are generally avoided for the sake of security and privacy, as nobody is able to verify the code compiled is not malicious when its in binary form, which is why source builds are preferred.So for
saber-bin
I can most likely submit that by the end of the day, the appimage should contain a natively built executable.If the package is voted, and popular, and a official package maintainer (Formerly TU) is willing to take the package on, it will be moved into the official repository where anyone can pull it directly through the use of
pacman
.Have a good day,
Polarian
The text was updated successfully, but these errors were encountered: