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

librsvg: add a new recipe #21005

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

librsvg: add a new recipe #21005

wants to merge 4 commits into from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Nov 8, 2023

@valgur valgur marked this pull request as draft November 8, 2023 19:42
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link

stale bot commented Dec 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@conan-center-bot conan-center-bot added the Version conflict There is a version conflict when solving the dependencies graph label Jan 20, 2024
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 3 (9b22fc730bff25bfbdd24046112fe9e30354e094):

  • librsvg/2.57.0:
    Error running command conan info librsvg/2.57.0@#42b49ae2dc6198c0412c049401b4d9fc --json {jsonName} -pr {profileName}:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    librsvg:shared=False
    
    ...
    WARN: pcre2/10.42: requirement zlib/[>=1.2.11 <2] overridden by glib/2.78.1 to zlib/1.3 
    WARN: libpng/1.6.40: requirement zlib/[>=1.2.11 <2] overridden by freetype/2.13.0 to zlib/1.3 
    WARN: fontconfig/2.14.2: requirement freetype/2.13.2 overridden by librsvg/2.57.0 to freetype/2.13.0 
    WARN: cairo/1.18.0: requirement freetype/2.13.2 overridden by librsvg/2.57.0 to freetype/2.13.0 
    WARN: harfbuzz/8.2.2: requirement freetype/2.13.2 overridden by librsvg/2.57.0 to freetype/2.13.0 
    ERROR: Failed requirement 'pango/1.51.0' from 'librsvg/2.57.0'
    ERROR: Unable to find 'pango/1.51.0' in remotes
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 3 (9b22fc730bff25bfbdd24046112fe9e30354e094):

  • librsvg/2.57.0:
    Error running command conan graph info --requires librsvg/2.57.0@#42b49ae2dc6198c0412c049401b4d9fc -f json -pr:h /home/conan/w/prod-v2/bsr/78546/aecea/profile_linux_11_libstdcpp11_17_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2/bsr/78546/aecea/profile_linux_11_libstdcpp11_17_gcc_release_64..txt:
    ======== Computing dependency graph ========
    glib/2.78.1: Not found in local cache, looking in remotes...
    glib/2.78.1: Checking remote: conan-center
    glib/2.78.1: Downloaded recipe revision 6da549beee7208bd9fad0e6141581e8e
    zlib/1.3: Not found in local cache, looking in remotes...
    zlib/1.3: Checking remote: conan-center
    zlib/1.3: Downloaded recipe revision 06023034579559bb64357db3a53f88a4
    libffi/3.4.4: Not found in local cache, looking in remotes...
    libffi/3.4.4: Checking remote: conan-center
    libffi/3.4.4: Downloaded recipe revision 35eb63842b505824b70aedc1baefc916
    pcre2/10.42: Not found in local cache, looking in remotes...
    pcre2/10.42: Checking remote: conan-center
    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: conan-center
    bzip2/1.0.8: Downloaded recipe revision 457c272f7da34cb9c67456dd217d36c4
    libelf/0.8.13: Not found in local cache, looking in remotes...
    libelf/0.8.13: Checking remote: conan-center
    libelf/0.8.13: Downloaded recipe revision 4f70a3555809ae50cc8add44f0f84288
    autoconf/2.71: Not found in local cache, looking in remotes...
    autoconf/2.71: Checking remote: conan-center
    autoconf/2.71: Downloaded recipe revision 53be95d228b2dcb30dc199cb84262d8f
    m4/1.4.19: Not found in local cache, looking in remotes...
    m4/1.4.19: Checking remote: conan-center
    m4/1.4.19: Downloaded recipe revision b38ced39a01e31fef5435bc634461fd2
    gnu-config/cci.20210814: Not found in local cache, looking in remotes...
    gnu-config/cci.20210814: Checking remote: conan-center
    gnu-config/cci.20210814: Downloaded recipe revision dc430d754f465e8c74463019672fb97b
    libmount/2.39: Not found in local cache, looking in remotes...
    libmount/2.39: Checking remote: conan-center
    libmount/2.39: Downloaded recipe revision 9b2a81545c28668d2281639cc1657dd5
    libselinux/3.5: Not found in local cache, looking in remotes...
    libselinux/3.5: Checking remote: conan-center
    libselinux/3.5: Downloaded recipe revision 776f35e238362c6b893220f437cb89ae
    flex/2.6.4: Not found in local cache, looking in remotes...
    flex/2.6.4: Checking remote: conan-center
    flex/2.6.4: Downloaded recipe revision e35bc44b3fcbcd661e0af0dc5b5b1ad4
    pkgconf/2.0.3: Not found in local cache, looking in remotes...
    pkgconf/2.0.3: Checking remote: conan-center
    pkgconf/2.0.3: Downloaded recipe revision f996677e96e61e6552d85e83756c328b
    meson/1.2.2: Not found in local cache, looking in remotes...
    meson/1.2.2: Checking remote: conan-center
    meson/1.2.2: Downloaded recipe revision aace9dcc1db58fa42ecb5292f724092d
    ninja/1.11.1: Not found in local cache, looking in remotes...
    ninja/1.11.1: Checking remote: conan-center
    ninja/1.11.1: Downloaded recipe revision 77587f8c8318662ac8e5a7867eb4be21
    freetype/2.13.0: Not found in local cache, looking in remotes...
    freetype/2.13.0: Checking remote: conan-center
    freetype/2.13.0: Downloaded recipe revision 28bb2425d43c8bf7dbcfb024d847f5fb
    libpng/1.6.40: Not found in local cache, looking in remotes...
    libpng/1.6.40: Checking remote: conan-center
    libpng/1.6.40: Downloaded recipe revision 0337b7b87ac125307ed70fd064c31eea
    brotli/1.1.0: Not found in local cache, looking in remotes...
    brotli/1.1.0: Checking remote: conan-center
    brotli/1.1.0: Downloaded recipe revision d56d7bb9ca722942aba17369cb5c0519
    fontconfig/2.14.2: Not found in local cache, looking in remotes...
    fontconfig/2.14.2: Checking remote: conan-center
    fontconfig/2.14.2: Downloaded recipe revision e43d6947356e29dee0ab8b05f75bd900
    Graph root
        cli
    Requirements
        brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Downloaded (conan-center)
        bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Downloaded (conan-center)
        fontconfig/2.14.2#e43d6947356e29dee0ab8b05f75bd900 - Downloaded (conan-center)
        freetype/2.13.0#28bb2425d43c8bf7dbcfb024d847f5fb - Downloaded (conan-center)
        glib/2.78.1#6da549beee7208bd9fad0e6141581e8e - Downloaded (conan-center)
        libelf/0.8.13#4f70a3555809ae50cc8add44f0f84288 - Downloaded (conan-center)
        libffi/3.4.4#35eb63842b505824b70aedc1baefc916 - Downloaded (conan-center)
        libmount/2.39#9b2a81545c28668d2281639cc1657dd5 - Downloaded (conan-center)
        libpng/1.6.40#0337b7b87ac125307ed70fd064c31eea - Downloaded (conan-center)
        librsvg/2.57.0#42b49ae2dc6198c0412c049401b4d9fc - Cache
        libselinux/3.5#776f35e238362c6b893220f437cb89ae - Downloaded (conan-center)
        pcre2/10.42#74a354d74d291503aadffe6453d976f5 - Downloaded (conan-center)
        zlib/1.3#06023034579559bb64357db3a53f88a4 - Downloaded (conan-center)
    Build requirements
        autoconf/2.71#53be95d228b2dcb30dc199cb84262d8f - Downloaded (conan-center)
        flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4 - Downloaded (conan-center)
        gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Downloaded (conan-center)
        m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Downloaded (conan-center)
        meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d - Downloaded (conan-center)
        ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Downloaded (conan-center)
        pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Downloaded (conan-center)
    Resolved version ranges
        zlib/[>=1.2.11 <2]: zlib/1.3
    Graph error
        Version conflict: Conflict between freetype/2.13.2 and freetype/2.13.0 in the graph.
    Conflict originates from fontconfig/2.14.2
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    ERROR: Version conflict: Conflict between freetype/2.13.2 and freetype/2.13.0 in the graph.
    Conflict originates from fontconfig/2.14.2
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@valgur
Copy link
Contributor Author

valgur commented Sep 13, 2024

Unfortunately, this recipe is currently seriously broken due to the shortcomings of the system_deps Cargo crate used to wrap "system" dependencies like Pango, Cairo and all other dependencies provided by Conan in the Rust build. The system_deps crate adds all libdir paths to the linker flags simultaneously, which causes the .so files from /usr/lib/... to be picked up by the linker due to xorg/system and opengl/system.
I managed to work around it in the project by heavily patching the build.rs files, but it is also affects all transitive deps like cairo-sys-rs, etc.

Would have to collaborate with system_deps to get this fixed more generally or find a way to inject a patched version of it for all projects making use of it, which is far from ideal. 🙁

@valgur valgur mentioned this pull request Sep 24, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Failed Version conflict There is a version conflict when solving the dependencies graph
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] librsvg/2.54
2 participants