Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Yay replaces pacman package with AUR package on package rename #2573

Open
agboom opened this issue Feb 2, 2025 · 1 comment
Open

Yay replaces pacman package with AUR package on package rename #2573

agboom opened this issue Feb 2, 2025 · 1 comment

Comments

@agboom
Copy link

agboom commented Feb 2, 2025

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

  1. Have extra/sdl2 installed from official repos (e.g. through extra/ffmpeg)
  2. Run yay
  3. 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 <svenstaro@archlinux.org>
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
@Jguer
Copy link
Owner

Jguer commented Feb 4, 2025

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants