You are not logged in.
I rarely install AUR packages and recently I noticed an AUR package I didn't recognize pop up while upgrading my system.
1 aur/sdl2 2.30.10-1 -> 2.30.11-2
I looked up this package and I saw it was first submitted at 2025-01-28 23:06 (UTC). I haven't upgraded my system in at least two weeks and I haven't installed any new packages recently.
Can somebody tell me how this package got on my system if it was just added to the repos yesterday and I haven't installed any packages recently. Also, if this package is required by 1361 other packages, why is it in the AUR and not the official repos? I am very confused. I greatly appreciate any insight.
Offline
The official repos replaced sdl2 with the (theorethically) functional equivalent sdl2-compat (which reimplements SDL2 on SDL3) which is the package you should generally have and which should fulfill the sdl2 dependency of depending applications. Anything that hard depends on sdl2 as the AUR package is probably either wrong or a bug in the package version resolution, there was an update to sdl2-compat-2.30.50-2 an hour ago, potentially fixing package resolution conflicts.
But apparently things aren't quite as bugfree yet, so you might want to stick to sdl2 from the AUR for the time being.
https://github.com/libsdl-org/sdl2-compat/issues/253
Last edited by V1del (2025-01-29 12:13:22)
Offline
Since the updates when running "auracle outdated" to check for outdated foreign packages its flagging up sdl3 and lib32-sdl3 and I assume that's because they are also in the AUR with the same package name as in extra / multilib.
Should we request that the package in the AUR be deleted since sdl3-git already exists and sdl3 is in the main repo?
I can see that there is a pending request on the AUR page but it doesn't say what that request is, is the correct move going forward in this scenario to request a rename, merge or deletion? Just to know going forward.
Desktop: Ryzen 7 1800X | AMD 7800XT | KDE Plasma
MacbookPro-2012 | XFCE
Offline
The correct approach is to delete the existing sdl3 package and I'm assuming the pending request will go in that direction resp. "normally" the AUR package gets ported into the repos, but potentially svenstaro not realising that and writing his own PKGBUILD anyway.
Offline
I understand now. sdl2 was removed from the official repos and moved to the aur.
I now see that running pacman -Syu will prompt me to replace sdl2 with sdl2-compat. However, running yay will attempt to switch me to the aur version. This seems like it's a bug in yay. I've never had any issues updating with yay before.
So, it turns out I never had the aur package on my system. I had the original package from the official repos, but yay mistakenly showed that I was updating the aur package.
Offline
From the wiki:
Warning: AUR helpers are not supported by Arch Linux. You should become familiar with the manual build process in order to be prepared to troubleshoot problems.
and
Warning: pacman(8) wrappers abstract the work of the package manager. They may (optionally or by default) introduce unsafe flags, or other unexpected behavior leading to a defective system.
I personally just use pacman and to check for updates for any foreign packages I use a program called auracle. Third party online tutorials around Arch will have you believe yay is just what you use.
Desktop: Ryzen 7 1800X | AMD 7800XT | KDE Plasma
MacbookPro-2012 | XFCE
Offline