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

libavrocpp: install either static or shared + fix discovery of Snappy + do not sugget unofficial imported target names #15274

Merged
merged 7 commits into from
Jan 28, 2023

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Jan 15, 2023

There is no config file upstream, so the rational for defining custom target names was wrong. Upstream logical target names don't matter, only matters imported target names in config file if it's created.

closes #15495


libavrocpp doesn't install a CMake config file, so there is no reason to change default target name of CMakeDeps
@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jan 15, 2023

There is one more problem in this recipe: shared & static are installed together.

@SpaceIm SpaceIm changed the title libavrocpp: use self.dependencies + do not sugget unofficial imported target names libavrocpp: install either static or shared + fix discovery of Snappy + do not sugget unofficial imported target names Jan 15, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 4 (1703c56b8c24e3d4aceb12513687bc7b13851704):

  • libavrocpp/1.11.0@:
    All packages built successfully! (All logs)

  • libavrocpp/1.11.1@:
    All packages built successfully! (All logs)

  • libavrocpp/1.10.1@:
    All packages built successfully! (All logs)

  • libavrocpp/1.10.2@:
    All packages built successfully! (All logs)


Conan v2 pipeline (informative, not required for merge) ❌

Note: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 4 (1703c56b8c24e3d4aceb12513687bc7b13851704):

  • libavrocpp/1.11.0@:
    Error running command conan graph info --requires libavrocpp/1.11.0@#167ad5d4021bd3b1f52492c9e4e316bd -f json -pr:h /home/conan/w/prod-v2_cci_PR-15274/4/03e2df70-ed28-4af0-9e3b-a8b0bcabf6b0/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15274/4/03e2df70-ed28-4af0-9e3b-a8b0bcabf6b0/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    boost/1.81.0: Not found in local cache, looking in remotes...
    boost/1.81.0: Checking remote: conan-center-v2
    boost/1.81.0: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    boost/1.81.0: Downloaded recipe revision 0aca3d1f3a8d8b2f46886c7c26da599d
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Downloading conanfile.py
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 464be69744fa6d48ed01928cfe470008
    libbacktrace/cci.20210118: Not found in local cache, looking in remotes...
    libbacktrace/cci.20210118: Checking remote: conan-center-v2
    libbacktrace/cci.20210118: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    libbacktrace/cci.20210118: Downloaded recipe revision 83410de09fe2b7785ee8953e2be8db33
    b2/4.9.3: Not found in local cache, looking in remotes...
    b2/4.9.3: Checking remote: conan-center-v2
    b2/4.9.3: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    b2/4.9.3: Downloaded recipe revision c721ad9d71f6b114ed03a94887c973b6
    snappy/1.1.9: Not found in local cache, looking in remotes...
    snappy/1.1.9: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        boost/1.81.0#0aca3d1f3a8d8b2f46886c7c26da599d - Downloaded (conan-center-v2)
        bzip2/1.0.8#464be69744fa6d48ed01928cfe470008 - Downloaded (conan-center-v2)
        libavrocpp/1.11.0#167ad5d4021bd3b1f52492c9e4e316bd - Cache
        libbacktrace/cci.20210118#83410de09fe2b7785ee8953e2be8db33 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        b2/4.9.3#c721ad9d71f6b114ed03a94887c973b6 - Downloaded (conan-center-v2)
    Graph error
        Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    ERROR: Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    
  • libavrocpp/1.11.1@:
    Error running command conan graph info --requires libavrocpp/1.11.1@#622b0a821903f3eec322b2b86dfa3a1b -f json -pr:h /home/conan/w/prod-v2_cci_PR-15274/4/2bcefb3e-774c-4f5b-9885-f8da42fce1eb/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15274/4/2bcefb3e-774c-4f5b-9885-f8da42fce1eb/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    boost/1.81.0: Not found in local cache, looking in remotes...
    boost/1.81.0: Checking remote: conan-center-v2
    boost/1.81.0: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    boost/1.81.0: Downloaded recipe revision 0aca3d1f3a8d8b2f46886c7c26da599d
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 464be69744fa6d48ed01928cfe470008
    libbacktrace/cci.20210118: Not found in local cache, looking in remotes...
    libbacktrace/cci.20210118: Checking remote: conan-center-v2
    libbacktrace/cci.20210118: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    libbacktrace/cci.20210118: Downloaded recipe revision 83410de09fe2b7785ee8953e2be8db33
    b2/4.9.3: Not found in local cache, looking in remotes...
    b2/4.9.3: Checking remote: conan-center-v2
    b2/4.9.3: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    b2/4.9.3: Downloaded recipe revision c721ad9d71f6b114ed03a94887c973b6
    snappy/1.1.9: Not found in local cache, looking in remotes...
    snappy/1.1.9: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        boost/1.81.0#0aca3d1f3a8d8b2f46886c7c26da599d - Downloaded (conan-center-v2)
        bzip2/1.0.8#464be69744fa6d48ed01928cfe470008 - Downloaded (conan-center-v2)
        libavrocpp/1.11.1#622b0a821903f3eec322b2b86dfa3a1b - Cache
        libbacktrace/cci.20210118#83410de09fe2b7785ee8953e2be8db33 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        b2/4.9.3#c721ad9d71f6b114ed03a94887c973b6 - Downloaded (conan-center-v2)
    Graph error
        Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    ERROR: Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    
  • libavrocpp/1.10.2@:
    Error running command conan graph info --requires libavrocpp/1.10.2@#27f6a1aa087d3e068de605ea769153d8 -f json -pr:h /home/conan/w/prod-v2_cci_PR-15274/4/0e91bb73-a867-4958-b217-e62027b14ed7/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15274/4/0e91bb73-a867-4958-b217-e62027b14ed7/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    boost/1.81.0: Not found in local cache, looking in remotes...
    boost/1.81.0: Checking remote: conan-center-v2
    boost/1.81.0: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    boost/1.81.0: Downloaded recipe revision 0aca3d1f3a8d8b2f46886c7c26da599d
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conanmanifest.txt
    Downloading conanfile.py
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 464be69744fa6d48ed01928cfe470008
    libbacktrace/cci.20210118: Not found in local cache, looking in remotes...
    libbacktrace/cci.20210118: Checking remote: conan-center-v2
    libbacktrace/cci.20210118: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    libbacktrace/cci.20210118: Downloaded recipe revision 83410de09fe2b7785ee8953e2be8db33
    b2/4.9.3: Not found in local cache, looking in remotes...
    b2/4.9.3: Checking remote: conan-center-v2
    b2/4.9.3: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    b2/4.9.3: Downloaded recipe revision c721ad9d71f6b114ed03a94887c973b6
    snappy/1.1.9: Not found in local cache, looking in remotes...
    snappy/1.1.9: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        boost/1.81.0#0aca3d1f3a8d8b2f46886c7c26da599d - Downloaded (conan-center-v2)
        bzip2/1.0.8#464be69744fa6d48ed01928cfe470008 - Downloaded (conan-center-v2)
        libavrocpp/1.10.2#27f6a1aa087d3e068de605ea769153d8 - Cache
        libbacktrace/cci.20210118#83410de09fe2b7785ee8953e2be8db33 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        b2/4.9.3#c721ad9d71f6b114ed03a94887c973b6 - Downloaded (conan-center-v2)
    Graph error
        Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    ERROR: Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    
  • libavrocpp/1.10.1@:
    Error running command conan graph info --requires libavrocpp/1.10.1@#b5154b798145bf1d6cb015b00cb93a81 -f json -pr:h /home/conan/w/prod-v2_cci_PR-15274/4/d1d6d437-7bf9-4186-ad96-954ddf83280f/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15274/4/d1d6d437-7bf9-4186-ad96-954ddf83280f/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    boost/1.81.0: Not found in local cache, looking in remotes...
    boost/1.81.0: Checking remote: conan-center-v2
    boost/1.81.0: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Downloading conanfile.py
    Decompressing conan_export.tgz
    boost/1.81.0: Downloaded recipe revision 0aca3d1f3a8d8b2f46886c7c26da599d
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 464be69744fa6d48ed01928cfe470008
    libbacktrace/cci.20210118: Not found in local cache, looking in remotes...
    libbacktrace/cci.20210118: Checking remote: conan-center-v2
    libbacktrace/cci.20210118: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    libbacktrace/cci.20210118: Downloaded recipe revision 83410de09fe2b7785ee8953e2be8db33
    b2/4.9.3: Not found in local cache, looking in remotes...
    b2/4.9.3: Checking remote: conan-center-v2
    b2/4.9.3: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    b2/4.9.3: Downloaded recipe revision c721ad9d71f6b114ed03a94887c973b6
    snappy/1.1.9: Not found in local cache, looking in remotes...
    snappy/1.1.9: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        boost/1.81.0#0aca3d1f3a8d8b2f46886c7c26da599d - Downloaded (conan-center-v2)
        bzip2/1.0.8#464be69744fa6d48ed01928cfe470008 - Downloaded (conan-center-v2)
        libavrocpp/1.10.1#b5154b798145bf1d6cb015b00cb93a81 - Cache
        libbacktrace/cci.20210118#83410de09fe2b7785ee8953e2be8db33 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        b2/4.9.3#c721ad9d71f6b114ed03a94887c973b6 - Downloaded (conan-center-v2)
    Graph error
        Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' in remotes
    ERROR: Package 'snappy/1.1.9' not resolved: Unable to find 'snappy/1.1.9' 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-center-bot conan-center-bot merged commit f17401d into conan-io:master Jan 28, 2023
@SpaceIm SpaceIm deleted the libavrocpp-more-conan-v2 branch January 28, 2023 07:04
StellaSmith pushed a commit to StellaSmith/conan-center-index that referenced this pull request Feb 2, 2023
…scovery of Snappy + do not sugget unofficial imported target names

* use self.dependencies

* do not suggest unofficial imported target name

libavrocpp doesn't install a CMake config file, so there is no reason to change default target name of CMakeDeps

* robust discovery & link to Snappy

* install either static or shared

* bum min conan version to 1.54.0 to avoid injection of CMP0077

* only propagate required boost components

* more fix for snappy
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

Successfully merging this pull request may close these issues.

[package] libavrocpp/any version: snappy not found
4 participants