-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
[AUR] Unattended install script using --noconfirm fails due to: "Inner conflicts found" after wrong dependency detection? #1129
Comments
Edit: I had to dig further to find the real reason, see comment below This issue can also be reproduced with $ paru --query --info mesa
error: package 'mesa' was not found
$ paru --noconfirm --sync aur/mesa-git
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
:: Conflicts found:
mesa-git: mesa (mesa-libgl) mesa mesa (mesa-libgl)
:: Conflicting packages will have to be confirmed manually
error: can not install conflicting packages with --noconfirm Once the package assembly is done, it will ask us to remove
Looks like the culprit is that Paru fails to realize that
As seen here, Paru thinks the regular
|
Turns out this issue is deeper after all When you try to build $ paru --query --info mesa
error: package 'mesa' was not found
$ paru --sync aur/mesa-git
:: Inner conflicts found:
mesa: mesa-git (mesa) mesa-git (mesa-libgl)
mesa-git: mesa (mesa-libgl)
:: Conflicting packages will have to be confirmed manually
Repo (41) Old Version New Version Make Only
(...)
extra/mesa 1:23.3.5-1 No
(...) Once that's pulled in we can investigate the root cause: $ pactree -r mesa
mesa
└─libglvnd
├─libva
└─mesa
$ pactree -r libglvnd
libglvnd
├─libva
└─mesa
└─libglvnd
$ paru --query --info mesa | grep 'Required'
Required By : libglvnd
:: mesa-git and mesa are in conflict. Remove mesa? [y/N] This can also be confirmed with: $ paru --sync libglvnd
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency Reported here: https://aur.archlinux.org/packages/mesa-git#comment-954811 This would be a killer-feature if Paru could detect such loops ahead of time (Meaning if Paru had the ability to warn the user about |
Having the same issue but with |
Package maintainers believe it's package manager's duty to fix this loop: libglvnd/-/issues/2 WorkaroundHack 1This is just useful for CI/CD. Manually avoid child dependency $ paru --sync --noconfirm --needed --assume-installed mesa,opengl-driver --asdeps libglvnd
$ paru --sync --noconfirm --needed aur/mesa-git Hack 2This allows CI/CD to automatically bypass build blocker (from Unattendedly skip all prompts: $ yes | paru --sync --needed aur/mesa-git |
Affected Version
paru v2.0.1 - libalpm v13.0.2
Description
Edit: seems like the actual root of this problem is wrong dependency detection with AUR packages, see comment below
Paru fails to install
aur/amdonly-gaming-mesa
due toInner conflicts found
despite there not being any existingmesa
packages in the system:These conflicts can be manually resolved by answering
Y
to all prompts.As a result this breaks automated install scripts which relay on
--noconfirm
(as the default selection isN
), e.g. when building a system in a chroot environment.Output
Config
/etc/paru.conf (default/untouched)
/etc/pacman.conf (CachyOS repos)
The text was updated successfully, but these errors were encountered: