yay
yay copied to clipboard
Yay replaces pacman package with AUR package on package rename
Affected Version
yay v12.4.2 - libalpm v15.0.0
Describe the bug
When package from pacman repo is renamed (e.g. extra/sdl2 to extra/sdl2-compat), Yay tries to install a package with the old name from the AUR (e.g. aur/sdl2), even if its dependents are only pacman packages (non AUR).
Reproduction Steps
- Have
extra/sdl2installed from official repos (e.g. throughextra/ffmpeg) - Run
yay - Observe line saying
1 aur/sdl2 2.30.11-1 -> 2.30.11-2
Expected behavior
Yay should not substitute AUR packages for pacman packages with the same name (e.g. extra/sdl2 to aur/sdl2).
Output
Since my system is already updated I cannot reproduce it with debug enabled. If there's any other way please let me know.
yay -Pg
{
"aururl": "https://aur.archlinux.org",
"aurrpcurl": "https://aur.archlinux.org/rpc?",
"buildDir": "/home/adriaan/.cache/yay",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"searchby": "name-desc",
"gitflags": "",
"removemake": "ask",
"sudobin": "sudo",
"sudoflags": "",
"version": "12.4.2",
"requestsplitn": 150,
"completionrefreshtime": 7,
"maxconcurrentdownloads": 1,
"bottomup": true,
"sudoloop": false,
"timeupdate": false,
"devel": false,
"cleanAfter": false,
"keepSrc": false,
"provides": true,
"pgpfetch": true,
"cleanmenu": true,
"diffmenu": true,
"editmenu": false,
"combinedupgrade": true,
"useask": false,
"batchinstall": false,
"singlelineresults": false,
"separatesources": true,
"debug": false,
"rpc": true,
"doubleconfirm": true,
"rebuild": "no"
}
yay -Qi sdl2
Name : sdl2
Version : 2.30.11-1
Description : A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard
(Version 2)
Architecture : x86_64
URL : https://www.libsdl.org
Licenses : Zlib
Groups : None
Provides : None
Depends On : glibc libxext libxrender libx11 libgl libxcursor hidapi libusb
Optional Deps : alsa-lib: ALSA audio driver [installed]
libpulse: PulseAudio audio driver [installed]
jack: JACK audio driver [installed]
pipewire: PipeWire audio driver [installed]
libdecor: Wayland client decorations [installed]
Required By : ffmpeg ffmpeg4.4 fluidsynth gamescope sdl12-compat wxwidgets-gtk3
Optional For : gegl mpg123 wine
Conflicts With : None
Replaces : None
Installed Size : 4.42 MiB
Packager : Sven-Hendrik Haase <[email protected]>
Build Date : Fri 03 Jan 2025 04:40:28 AM CET
Install Date : Sun 05 Jan 2025 06:52:14 PM CET
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Setting this as a feature request as we'd have to keep track of the source on yay's side (not something supported by pacman)