question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] provides doesn't allow for package conflicts

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Linuxmint 20 ulyana
  • Compiler+version: gcc 9
  • Conan version: 1.30.2
  • Python version: 3.8.5

Steps to reproduce (Include if Applicable)

Set conanfile.txt to include dependencies for qt/5.14.1@bincrafters/stable, opencv/3.4.5@conan/stable and libjpeg-turbo/2.0.5. libjpeg-turbo says that it provides libjpeg however the version mismatch between qt and opencv requires you put libjpeg in your conanfile.txt. This check should also check if another library provides libjpeg and treat that as a resolution between the conflict.

Logs (Executed commands with output) (Include/Attach if Applicable)

ERROR: Conflict in qt/5.14.1@bincrafters/stable:
    'qt/5.14.1@bincrafters/stable' requires 'libjpeg/9d' while 'opencv/3.4.5@conan/stable' requires 'libjpeg/9c@bincrafters/stable'.
    To fix this conflict you need to override the package 'libjpeg' in your root package.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SpaceImcommented, Oct 27, 2020

https://github.com/conan-io/conan-center-index/pull/2948 aims to provide a virtual libjpeg recipe, so that all others recipes depending on libjpeg could require this virtual package -avoiding to reimplement again and again this logic in each recipe- and solve this issue (it would ensure a clean dependency graph without mutually exclusive libjpeg implementations). Then consumers would just have to select libjpeg implementation (libjpeg, libjpeg-turbo or mozjpeg) through libjpeg virtual package option.

Unfortunately, there is currently no progress in this PR. I can reopen a PR for this recipe (from existing branch), since I also have interest in such virtual package.

0reactions
Croydoncommented, Nov 4, 2020

That is, you might want to use https://conan.io/center/opencv package, which will be opencv/4.3.0, without the conan/stable part.

FYI, openvc/4.3.0 is not yet in CCI. This is a bug in the online UI which is not displaying username/channel anymore, see also https://github.com/conan-io/conan-center-index/issues/3360

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to interpret conda package conflicts? - Stack Overflow
@Quantum7's answer gives a fine literal interpretation of Conda's conflict reporting. However, I wanted to offer a more practical take, ...
Read more >
Can someone help me on how to resolve package conflicts ...
I'd like to understand better the registry system, and how to troubleshoot this error. ERROR: Unsatisfiable requirements detected for package <<>>.
Read more >
1636285 – dnf complains about conflicts with non-installed ...
Modular dependency problems: Problem 1: conflicting requests - nothing provides module(platform:f30) needed by stratis:1:20180927214347:a5b0195c ...
Read more >
Packaging:Conflicts - Fedora Project Wiki
Conflicts result in a transaction set where the user has to decipher the error message and make some sort of decision. The transaction...
Read more >
conflicted: a new approach to resolving ambiguity - Tidyverse
The goal of conflicted is to provide an alternative way of resolving conflicts caused by ambiguous function names. R handles ambiguity by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found