You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by "PengZheng (via GitHub)" <gi...@apache.org> on 2023/08/07 12:38:03 UTC
[PR] Feature/604 global initialization of curl (celix)
PengZheng opened a new pull request, #610:
URL: https://github.com/apache/celix/pull/610
This PR fixes #604 by making libcurl an optional dependency of `Celix::framework` and moving curl initialization to `Celix::launcher`. All containers which contain bundles needing libcurl have been updated to use `Celix::launcher` as launcher rather than the one generated by `add_celix_container`.
To maintain backward compatibility, `Celix::framework` still requires libcurl and does the curl initialization by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Feature/604 global initialization of curl (celix)
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #610:
URL: https://github.com/apache/celix/pull/610#issuecomment-1667789889
## [Codecov](https://app.codecov.io/gh/apache/celix/pull/610?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#610](https://app.codecov.io/gh/apache/celix/pull/610?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (c48b0bc) into [master](https://app.codecov.io/gh/apache/celix/commit/8695bd7868715360a86d2e39b122fb0845f820c8?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (8695bd7) will **increase** coverage by `0.01%`.
> The diff coverage is `100.00%`.
> :exclamation: Current head c48b0bc differs from pull request most recent head f6af321. Consider uploading reports for the commit f6af321 to get more accurate results
```diff
@@ Coverage Diff @@
## master #610 +/- ##
==========================================
+ Coverage 79.70% 79.71% +0.01%
==========================================
Files 256 257 +1
Lines 34686 34692 +6
==========================================
+ Hits 27645 27654 +9
+ Misses 7041 7038 -3
```
| [Files Changed](https://app.codecov.io/gh/apache/celix/pull/610?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [libs/framework/src/celix\_launcher.c](https://app.codecov.io/gh/apache/celix/pull/610?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-bGlicy9mcmFtZXdvcmsvc3JjL2NlbGl4X2xhdW5jaGVyLmM=) | `92.35% <ø> (ø)` | |
| [...s/remote\_services/topology\_manager/tms\_tst/main.cc](https://app.codecov.io/gh/apache/celix/pull/610?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-YnVuZGxlcy9yZW1vdGVfc2VydmljZXMvdG9wb2xvZ3lfbWFuYWdlci90bXNfdHN0L21haW4uY2M=) | `100.00% <100.00%> (ø)` | |
... and [3 files with indirect coverage changes](https://app.codecov.io/gh/apache/celix/pull/610/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Feature/604 global initialization of curl (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng merged PR #610:
URL: https://github.com/apache/celix/pull/610
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Feature/604 global initialization of curl (celix)
Posted by "pnoltes (via GitHub)" <gi...@apache.org>.
pnoltes commented on code in PR #610:
URL: https://github.com/apache/celix/pull/610#discussion_r1288551298
##########
cmake/CelixDeps.cmake.in:
##########
@@ -6,8 +6,10 @@ $<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::deployment_admin>>:find_dependency(ZLIB)
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::dfi>>:find_dependency(libffi)>
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::dfi>>:find_dependency(jansson)>
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::etcdlib>>:find_dependency(jansson)>
-$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::framework>>:find_dependency(CURL)>
+$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::Celix::launcher>>:find_dependency(CURL)>
Review Comment:
This check target `Celix::Celix::launcher`, I think this should be `Celix::launcher`
##########
libs/framework/CMakeLists.txt:
##########
@@ -54,7 +54,16 @@ if (FRAMEWORK)
target_include_directories(framework PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include_deprecated)
target_compile_options(framework PRIVATE -DUSE_FILE32API)
target_compile_options(framework PRIVATE -Wno-deprecated-declarations) #note part of the api is deprecated, ignore this warning on own api
+ if (NOT FRAMEWORK_CURLINIT)
+ target_compile_definitions(framework PRIVATE CELIX_NO_CURLINIT)
Review Comment:
Note that this makes use of the already existing `#ifdef CELIX_NO_CURLINIT` in the celix_launcher.c framework source.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Feature/604 global initialization of curl (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on code in PR #610:
URL: https://github.com/apache/celix/pull/610#discussion_r1288573916
##########
libs/framework/CMakeLists.txt:
##########
@@ -54,7 +54,16 @@ if (FRAMEWORK)
target_include_directories(framework PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include_deprecated)
target_compile_options(framework PRIVATE -DUSE_FILE32API)
target_compile_options(framework PRIVATE -Wno-deprecated-declarations) #note part of the api is deprecated, ignore this warning on own api
+ if (NOT FRAMEWORK_CURLINIT)
+ target_compile_definitions(framework PRIVATE CELIX_NO_CURLINIT)
Review Comment:
Yes, this is intentional.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Feature/604 global initialization of curl (celix)
Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on code in PR #610:
URL: https://github.com/apache/celix/pull/610#discussion_r1288570984
##########
cmake/CelixDeps.cmake.in:
##########
@@ -6,8 +6,10 @@ $<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::deployment_admin>>:find_dependency(ZLIB)
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::dfi>>:find_dependency(libffi)>
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::dfi>>:find_dependency(jansson)>
$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::etcdlib>>:find_dependency(jansson)>
-$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::framework>>:find_dependency(CURL)>
+$<$<BOOL:$<TARGET_NAME_IF_EXISTS:Celix::Celix::launcher>>:find_dependency(CURL)>
Review Comment:
Ouch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org