aura icon indicating copy to clipboard operation
aura copied to clipboard

Packages X and X-git are in conflict

Open ratijas opened this issue 5 years ago • 1 comments

Summary

Aura does not consider provides section of AUR package during dependency resolution when an exact match exists in Arch repositories and custom version range is specified.

Description

Summary is based on my understanding of what happened. There were many things which might have gone south. It even may be considered an edge case.

  • Package radare2-pipe-gitAUR depends on radare2>=${pkgver%.r*} which is 4.0.0.r0.ge258a53-1 in pipe's PKGBUILD.
  • In turn, radare2 is provided by both community repo radare2 package and latest source build radare2-gitAUR.
  • Version 5.0.0 had just dropped, so after installing from AUR, I have radare2 5.0.0.r25084.15d8de3819-1 locally, but its PKGBUILD was written for 4.6.0.r24570.3c88900134-1.

Somehow all those dots connect together in such a way that all AUR helpers suggest removing radare2-git in favor of radare2 binary package. Is it just a major versions conflict, or something bigger?

Expected behavior

Assume dependency radare2>=4.0.0.r0.ge258a53-1 installed because it is provided by radare2-git as radare-5.0.0.r25084.15d8de3819-1. Proceed with installation of radare2-pipe-git.

Actual behavior

❯ aura -Qi radare2
Name            : radare2-git
Version         : 5.0.0.r25084.15d8de3819-1
Description     : Open-source tools to disasm, debug, analyze and manipulate binary files
Architecture    : x86_64
URL             : http://radare.org
Licenses        : GPL3  LGPL3
Groups          : None
Provides        : radare2
Depends On      : capstone  lz4  file  libzip  xxhash  libuv
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : radare2
Replaces        : None
Installed Size  : 27.39 MiB
Packager        : Unknown Packager
Build Date      : Tue Dec 22 22:26:03 2020
Install Date    : Tue Dec 22 22:36:37 2020
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
❯
❯ sudo aura -A radare2-pipe-git
aura >>= Determining dependencies...

aura >>= Repository dependencies:
radare2
swig
valabind
aura >>= AUR Packages:
radare2-pipe-git
aura >>= Continue? [Y/n] y
resolving dependencies...
looking for conflicting packages...
:: radare2 and radare2-git are in conflict. Remove radare2-git? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: radare2 and radare2-git are in conflict

(by the way, why there's a blank line between "Determining dependencies..." and "Repository dependencies"?)

Version

aura-bin: 3.2.2-1 radare2-git: 5.0.0.r25084.15d8de3819-1

ratijas avatar Dec 22 '20 20:12 ratijas

Thanks for the report. The dependency resolution algorithm will be getting a rewrite as I port to Rust.

fosskers avatar Dec 23 '20 19:12 fosskers