r/ManjaroLinux • • 5d ago

News Pamac Fix

I have been experimenting with a series of Pamac fixes that aims to improve several quality of life issues that are present in the current Pamac implementation. Among these improvements are:

  1. Coordinated updates - safe AUR development checks - no other Pamac process can overwrite a build directory mid-build
  2. Ability to browse while update checking is in progress
  3. integrated flatpak support into the CLI
  4. Improved dependency handling for certain SONAME dependency situations which Pamac was unable to reconcile (that other AUR helpers, such as Paru, could)
  5. One single PKGBUILD - installation combines libpamac, pamac-gtk, and pamac-cli.
  6. Wayland tray support (tested on Cinnamon)

This should be considered a development release, not a fully stable product. If you're interested in helping out with testing and/or to simply take a look, check it out:

Github: https://github.com/username227/pamac-fix

AUR: https://aur.archlinux.org/packages/pamac-fix

16 Upvotes

13 comments sorted by

2

u/Efficient-Sea-92 5d ago

Thanks for the contribution. You should consider letting the maintainers know about this once you feel its ready! (Forums)

Pamac has its fair share of bugs. Any help is awlays welcome 🫶

1

u/Plenty-Boot4220 5d ago

Appreciate the feedback. I have attempted not to go "too far", and to ensure that it still feels like pamac. I did submit one PR already, but I am uncertain regarding how some of these changes would be seen. If you truly think that they would be considered and welcome, I certainly could try submitting them at some point. I was careful to maintain the three separate repos for compatibility even though i combined it into one install.

2

u/Efficient-Sea-92 5d ago

You likely will get some questions thrown your way. But they are very open to change!

Today i had a constructive discussion with them, where we were able to establish the removal of GIMP and Screenfetch as preinstalled apps in the Cinnamon spin.

There is new maintainers (with some old). And its recently become a registered e.V organization. So i will give them all the credit they deserve.

My faith in the project is restored for now.

Looking forward to how this developes :)

1

u/nikgnomic 3d ago

Pamac GUI works fine on Gtk DEs (Cinnamon, Gnome, XFCE) but KDE users may prefer to use Octopi based on Qt6

2

u/endlessBrainless 4d ago

My only complaint about Pamac is that it sometimes crashes during large updates, so I stopped using it for anything other than search. Additionally, it creates cache directories that pacman -Scc does not remove.

2

u/Plenty-Boot4220 4d ago

crashes during large updates at the pacman stage, or as a result of a failed build? If you open an issue next time it happens to you in my repo, even if you are using the original pamac, i can take a look at it and try to figure out if my pamac will solve it of if it can be worked on.

regarding build cache directories, i actually experimented with using a paru-like build cache that does not require maintaining all sources in /var/tmp which can be huge. However, paru's methodology, while very lean, has a weakness of its own - it can result in a huge # of unnecessary rebuilds of development packages, whenever a submodule changes. and attempting to eliminate that behavior while keeping the lean approach is proving easier said than done.

1

u/endlessBrainless 4d ago

During large updates, the GUI just closes, but the update keeps running in the background. In my experience, the CLI version of Pamac works without any issues.

1

u/Plenty-Boot4220 4d ago

I also switched to the cli version long ago but for a different reason - the development package updates freeze the gui for a period of time and make it unusable. i have solved this by giving people a better sense of the vcs package updates in progress, and making packages remain searchable while updates are in progress. More recently, certain development packages updated through the CLI experienced intermittant build fails because another pamac process was overwriting the build directory mid-build - a critical bug which should never be allowed to happen. i've addressed both.

However, I have never experienced random closing of the GUI like you describe. I could try to do an examination of the code to determine likely causes though - what's your DE/WM?

1

u/endlessBrainless 4d ago edited 4d ago

I use KDE Plasma; I was on X11 before, but switched to Wayland about a month ago and have not tested Pamac on it yet. I also have an NVIDIA GTX 1050 Ti with the proprietary 580 driver, though I am not sure whether that is relevant. As far as I remember, both Pamac GUI versions behaved the same way - pamac-gtk and pamac-gtk3.

2

u/Plenty-Boot4220 3d ago

i am wondering whether a second check for updates or something similar with the kde-tray implementation specifically is interfering with the gtk instance and causing a crash. since my pamac-fix has attempted to fully coordinate update checks and prevent duplicate checks while one is active, it's at least theoretically possible that pamac-fix addresses the issue. I'd be interested in you testing it if you're willing and see if the crash is still present

2

u/ben2talk 4d ago

Why not bring this up in the forum?

3

u/Plenty-Boot4220 4d ago

That's actually a great idea. will do! thanks.