Skip to content
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

-U --chroot --noconfirm incorrectly evaluates conflicts against local packages instead of chroot ones #1121

Open
C0rn3j opened this issue Jan 7, 2024 · 0 comments

Comments

@C0rn3j
Copy link

C0rn3j commented Jan 7, 2024

Affected Version

paru v2.0.1 - libalpm v13.0.2

Description

paru -U --chroot --noconfirm

Will check locally installed packages for conflicts, but it should not care about them as it is going to be installing to chroot. Well, not even that, it just builds it in chroot and doesn't even install with those flags.

So installing extra/syncplay and then trying to install AUR/syncplay-git will fail, despite the fact that syncplay-git will not be installed to local system even if the package builds correctly.

Ergo to repro, install syncplay and try building syncplay-git with the --noconfirm flag in chroot.

Workaround is removing syncplay(or any other affected package) temporarily.

Output

[130] % paru -U --chroot --noconfirm

:: Generating .SRCINFO for ./syncplay-git...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

:: Conflicts found:
    syncplay-git: syncplay  

:: Conflicting packages will have to be confirmed manually
error: can not install conflicting packages with --noconfirm

paru.conf should be stock, pacman.conf as follows:

[options]
ILoveCandy
HoldPkg     = pacman glibc
Architecture = auto
Color
CheckSpace
VerbosePkgLists
ParallelDownloads = 5

SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional

[core]
Include = /etc/pacman.d/mirrorlist

[core-testing]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[extra-testing]
Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

[multilib-testing]
Include = /etc/pacman.d/mirrorlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant