-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add logr v0.7.0 #21575
Add logr v0.7.0 #21575
Conversation
Hello @ngrodzitski ! Thank you for updating this package. Is it not possible to re-use the previous recipe version in |
I would prefer not to do it. As previous cmake contained |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR and your patience, we appreciate it :)
Feel free to ping me once the change is done to ensure we merge this asap, thanks!
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
This comment has been minimized.
This comment has been minimized.
Hopefully fixed the last remaining issues, thanks a lot for your patience :) |
This comment has been minimized.
This comment has been minimized.
recipes/logr/v0.7/conanfile.py
Outdated
"with_spdlog_backend": [True, False], | ||
"with_glog_backend": [True, False], | ||
"with_log4cplus_backend": [True, False], | ||
"with_boostlog_backend": [True, False], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a minor recommendation: the convention on CCI tends to be to use with_*
for external dependencies and enable_*
for internal options. Either with_spdlog
or enable_splog_backend
would be preferable, imo.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pinging @RubenRBS to have a final review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked locally, and removing the spdlog option leads to failures in the test, see my log here:
$ conan create . --version=0.7.0 -b=missing -o="&:with_spdlog=False"
======== Exporting recipe to the cache ========
logr/0.7.0: Exporting package recipe: /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/conanfile.py
logr/0.7.0: exports: File 'conandata.yml' found. Exporting it...
logr/0.7.0: Copied 1 '.py' file: conanfile.py
logr/0.7.0: Copied 1 '.yml' file: conandata.yml
logr/0.7.0: Exported to cache folder: /Users/ruben/.conan2/p/logra9d0d5d023f87/e
logr/0.7.0: Exported: logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb (2024-04-09 14:48:08 UTC)
======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
[options]
&:with_spdlog=False
[platform_tool_requires]
cmake/3.29.1
[conf]
Profile build:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
[platform_tool_requires]
cmake/3.29.1
[conf]
======== Computing dependency graph ========
Graph root
cli
Requirements
fmt/10.2.1#9199a7a0611866dea5c8849a77467b25 - Cache
logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb - Cache
======== Computing necessary packages ========
logr/0.7.0: Compatible package ID 018935559570ac5bad76c76a09459d5957873068 equal to the default package ID: Skipping it.
Requirements
fmt/10.2.1#9199a7a0611866dea5c8849a77467b25:89b3a2897a1cd53f278d5f41deb52d49528a607b#91a208f054caae3474b063ebe7999a70 - Cache
logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb:018935559570ac5bad76c76a09459d5957873068 - Build
======== Installing packages ========
fmt/10.2.1: Already installed! (1 of 2)
-------- Installing package logr/0.7.0 (2 of 2) --------
logr/0.7.0: Building from source
logr/0.7.0: Package logr/0.7.0:018935559570ac5bad76c76a09459d5957873068
logr/0.7.0: Copying sources to build folder
logr/0.7.0: Building your package in /Users/ruben/.conan2/p/b/logr44ff2d3f3deb8/b
logr/0.7.0: Generating aggregated env files
logr/0.7.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
logr/0.7.0: Calling build()
logr/0.7.0: Package '018935559570ac5bad76c76a09459d5957873068' built
logr/0.7.0: Build folder /Users/ruben/.conan2/p/b/logr44ff2d3f3deb8/b/build-release
logr/0.7.0: Generating the package
logr/0.7.0: Packaging in folder /Users/ruben/.conan2/p/b/logr44ff2d3f3deb8/p
logr/0.7.0: Calling package()
logr/0.7.0: package(): Packaged 1 file: LICENSE
logr/0.7.0: package(): Packaged 5 '.hpp' files
logr/0.7.0: Created package revision 5ece0554f0f9f9a419c8968cd4a07c71
logr/0.7.0: Package '018935559570ac5bad76c76a09459d5957873068' created
logr/0.7.0: Full package reference: logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb:018935559570ac5bad76c76a09459d5957873068#5ece0554f0f9f9a419c8968cd4a07c71
logr/0.7.0: Package folder /Users/ruben/.conan2/p/b/logr44ff2d3f3deb8/p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: fmt/10.2.1
======== Launching test_package ========
======== Computing dependency graph ========
Graph root
logr/0.7.0 (test package): /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/conanfile.py
Requirements
fmt/10.2.1#9199a7a0611866dea5c8849a77467b25 - Cache
logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb - Cache
======== Computing necessary packages ========
Requirements
fmt/10.2.1#9199a7a0611866dea5c8849a77467b25:89b3a2897a1cd53f278d5f41deb52d49528a607b#91a208f054caae3474b063ebe7999a70 - Cache
logr/0.7.0#4b0536b9b29df28ae05d4cc686a1ffbb:018935559570ac5bad76c76a09459d5957873068#5ece0554f0f9f9a419c8968cd4a07c71 - Cache
======== Installing packages ========
fmt/10.2.1: Already installed! (1 of 2)
logr/0.7.0: Already installed! (2 of 2)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: fmt/10.2.1
======== Testing the package ========
Removing previously existing 'test_package' build folder: /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release
logr/0.7.0 (test package): Test package build: build/apple-clang-15-armv8-gnu17-release
logr/0.7.0 (test package): Test package build folder: /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release
logr/0.7.0 (test package): Writing generators to /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release/generators
logr/0.7.0 (test package): Generator 'CMakeDeps' calling 'generate()'
logr/0.7.0 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(logr)
target_link_libraries(... logr::logr)
logr/0.7.0 (test package): Generator 'CMakeToolchain' calling 'generate()'
logr/0.7.0 (test package): CMakeToolchain generated: conan_toolchain.cmake
logr/0.7.0 (test package): CMakeToolchain generated: CMakePresets.json
logr/0.7.0 (test package): CMakeToolchain generated: ../../../CMakeUserPresets.json
logr/0.7.0 (test package): Generator 'VirtualRunEnv' calling 'generate()'
logr/0.7.0 (test package): Generating aggregated env files
logr/0.7.0 (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']
======== Testing the package: Building ========
logr/0.7.0 (test package): Calling build()
logr/0.7.0 (test package): Running CMake.configure()
logr/0.7.0 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package"
-- Using Conan toolchain: /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: Component target declared 'logr::logr_base'
-- Conan: Target declared 'logr::logr'
-- Conan: Component target declared 'fmt::fmt'
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release
logr/0.7.0 (test package): Running CMake.build()
logr/0.7.0 (test package): RUN: cmake --build "/Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/build/apple-clang-15-armv8-gnu17-release" -- -j12
[ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
/Users/ruben/coding/support/external/ngrodzitski/recipes/logr/v0.7/test_package/test_package.cpp:3:10: fatal error: 'spdlog/sinks/stdout_sinks.h' file not found
#include <spdlog/sinks/stdout_sinks.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/test_package.dir/test_package.cpp.o] Error 1
make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
make: *** [all] Error 2
ERROR: logr/0.7.0 (test package): Error in build() method, line 20
cmake.build()
ConanException: Error 2 while executing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, approving now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Conan v1 pipeline ✔️All green in build 3 (
Conan v2 pipeline ✔️
All green in build 3 (
|
Specify library name and version: logr/0.7.0