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

[package] qt/>=6.3.2: version conflict with freetype #22654

Closed
honigbot opened this issue Feb 4, 2024 · 4 comments
Closed

[package] qt/>=6.3.2: version conflict with freetype #22654

honigbot opened this issue Feb 4, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@honigbot
Copy link

honigbot commented Feb 4, 2024

Description

When "conan install"ing qt, qt requires libpng/1.6.40 while the qt dependency freetype/2.13.2 requires 1.6.42.
In the freetype/2.13.2 package recipe there was an update few days ago that updated libpng from 1.6.40.

After checking this actually breaks any qt6 version in conan-index, from current 6.6.1 to 6.3.2. Have not testes qt5.

I tested it with conanfile.txt:

[requires]
qt/6.6.1

[options]
qt/*:shared=True
qt/*:qtdeclarative=True

[generators]
CMakeDeps
CMakeToolchain

[layout]
cmake_layout

It can be fixed by overriding the dependency with conanfile.py:

from conan import ConanFile
from conan.tools.cmake import CMakeToolchain

class SomePackage(ConanFile):
    ...
    default_options = {"qt/*:shared": True, "qt/*:qtdeclarative": True}

    def requirements(self):
        self.requires("qt/6.6.1")
        self.requires("libpng/1.6.42", force=True)

    def generate(self):
        tc = CMakeToolchain(self)
        tc.generate()

Package and Environment Details

  • Package Name/Version: qt/6.6.1
  • Operating System+version: Linux Debian 12
  • Compiler+version: GCC 10
  • Docker image: docker/dev-environments-default
  • Conan version: conan 2.0.17
  • Python version: Python 3.9.2

Conan profile

[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux

Steps to reproduce

conan install .

Logs

Click to expand log
======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux


======== Computing dependency graph ========
qt/6.6.1: Not found in local cache, looking in remotes...
qt/6.6.1: Checking remote: conancenter
qt/6.6.1: Downloaded recipe revision 952eeeed9045db651135a5bae35c8eac
zlib/1.3.1: Not found in local cache, looking in remotes...
zlib/1.3.1: Checking remote: conancenter
zlib/1.3.1: Downloaded recipe revision af8f2ef3d8e0fddf1975281d7fe43bf6
openssl/3.2.1: Not found in local cache, looking in remotes...
openssl/3.2.1: Checking remote: conancenter
openssl/3.2.1: Downloaded recipe revision ff3c0b15c72c3be49969acdf20ee345d
pcre2/10.42: Not found in local cache, looking in remotes...
pcre2/10.42: Checking remote: conancenter
pcre2/10.42: Downloaded recipe revision 74a354d74d291503aadffe6453d976f5
bzip2/1.0.8: Not found in local cache, looking in remotes...
bzip2/1.0.8: Checking remote: conancenter
bzip2/1.0.8: Downloaded recipe revision 457c272f7da34cb9c67456dd217d36c4
double-conversion/3.3.0: Not found in local cache, looking in remotes...
double-conversion/3.3.0: Checking remote: conancenter
double-conversion/3.3.0: Downloaded recipe revision 33321c201741cc32b51169c6d2d05e60
freetype/2.13.2: Not found in local cache, looking in remotes...
freetype/2.13.2: Checking remote: conancenter
freetype/2.13.2: Downloaded recipe revision fa35264c88edc6421a850d08c67630f4
Graph root
    conanfile.txt: /com.docker.devenvironments.code/conanfile.txt
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Downloaded (conancenter)
    double-conversion/3.3.0#33321c201741cc32b51169c6d2d05e60 - Downloaded (conancenter)
    freetype/2.13.2#fa35264c88edc6421a850d08c67630f4 - Downloaded (conancenter)
    openssl/3.2.1#ff3c0b15c72c3be49969acdf20ee345d - Downloaded (conancenter)
    pcre2/10.42#74a354d74d291503aadffe6453d976f5 - Downloaded (conancenter)
    qt/6.6.1#952eeeed9045db651135a5bae35c8eac - Downloaded (conancenter)
    zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6 - Downloaded (conancenter)
Resolved version ranges
    openssl/[>=1.1 <4]: openssl/3.2.1
    zlib/[>=1.2.11 <2]: zlib/1.3.1
ERROR: Version conflict: freetype/2.13.2->libpng/1.6.42, qt/6.6.1->libpng/1.6.40.
@honigbot honigbot added the bug Something isn't working label Feb 4, 2024
@honigbot honigbot changed the title [package] qt/6.6.*: version conflict with freetype [package] qt/6.*.*: version conflict with freetype Feb 4, 2024
@honigbot honigbot changed the title [package] qt/6.*.*: version conflict with freetype [package] qt/>=6.3.2: version conflict with freetype Feb 4, 2024
@philippun1
Copy link
Contributor

Can also reproduce this error with qt 5.15.12.

@daniel-heater-imprivata
Copy link

Yes. Confirm that I am seeing the same issue on qt/6.6.1

dheater pushed a commit to dheater/conan-center-index that referenced this issue Feb 6, 2024
…ich depends on libpng/1.6.42 which conflicts with qt's dependency on libpng/1.6.40. Bumping the libpng dependency version on libpng
dheater pushed a commit to dheater/conan-center-index that referenced this issue Feb 6, 2024
…ich depends on libpng/1.6.42 which conflicts with qt's dependency on libpng/1.6.40. Bumping the libpng dependency version on libpng
dheater pushed a commit to dheater/conan-center-index that referenced this issue Feb 6, 2024
…ich depends on libpng/1.6.42 which conflicts with qt's dependency on libpng/1.6.40. Bumping the libpng dependency version on libpng
dheater pushed a commit to dheater/conan-center-index that referenced this issue Feb 6, 2024
…ich depends on libpng/1.6.42 which conflicts with qt's dependency on libpng/1.6.40. Bumping the libpng dependency version on libpng

Signed-off-by: dheater <daniel@heater.dev>
conan-center-bot pushed a commit that referenced this issue Feb 6, 2024
…hich depe…

Signed-off-by: dheater <daniel@heater.dev>
@uilianries uilianries self-assigned this Feb 6, 2024
@daniel-heater-imprivata
Copy link

This should be fixed by #22683. @honigbot @philippun1 . Can you confirm?

@philippun1
Copy link
Contributor

@daniel-heater-imprivata With #22675 merged, I now can confirm it fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants