PengZheng commented on code in PR #855:
URL: https://github.com/apache/celix/pull/855#discussion_r4661242522
##########
conanfile.py:
##########
@@ -382,12 +382,12 @@ def requirements(self):
if self.options.build_utils:
self.requires("libzip/[>=1.7.3 <2.0.0]")
if self.options.build_framework or self.options.build_pubsub:
- self.requires("util-linux-libuuid/[>=2.39 <3.0.0]")
+ self.requires("util-linux-libuuid/2.39.2")
Review Comment:
Is this related to the following in the trunk?
```python
if self.options.build_framework:
self.requires("util-linux-libuuid/[>=2.39 <3.0.0]")
if self.settings.os == "Macos":
self.requires("gettext/0.21") #needed on MacOS 15 by libuuid
```
##########
CMakeLists.txt:
##########
@@ -103,11 +111,16 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.0)
set(CMAKE_C_FLAGS "-Wno-error=stringop-overread ${CMAKE_C_FLAGS}")
+ set(CMAKE_C_FLAGS "-Wno-dangling-pointer -Wno-use-after-free
-Wno-maybe-uninitialized ${CMAKE_C_FLAGS}")
Review Comment:
These -Wno-xxx smell dangerouse. But we may remove them later
##########
conanfile.py:
##########
@@ -382,12 +382,12 @@ def requirements(self):
if self.options.build_utils:
self.requires("libzip/[>=1.7.3 <2.0.0]")
if self.options.build_framework or self.options.build_pubsub:
- self.requires("util-linux-libuuid/[>=2.39 <3.0.0]")
+ self.requires("util-linux-libuuid/2.39.2")
if ((self.options.build_framework and self.options.framework_curlinit)
or self.options.build_celix_etcdlib or
self.options.build_deployment_admin
or self.options.build_rsa_discovery_common or
self.options.build_rsa_remote_service_admin_dfi
or self.options.build_launcher):
- self.requires("libcurl/[>=8.4.0 <9.0.0]")
+ self.requires("libcurl/8.4.0")
Review Comment:
Why fix libcurl, which is a main source of CVEs in my day job, to a single
version?
##########
.github/workflows/macos.yml:
##########
@@ -52,60 +56,15 @@ jobs:
env:
CONAN_BUILD_OPTIONS: |
-o celix/*:enable_testing=True
- -o celix/*:enable_address_sanitizer=True
-o celix/*:build_all=True
+ -o celix/*:enable_testing_for_cxx14=True
+ -o celix/*:enable_testing_dependency_manager_for_cxx11=True
-o celix/*:enable_cmake_warning_tests=True
-o celix/*:enable_testing_on_ci=True
-o celix/*:framework_curlinit=False
-o celix/*:enable_ccache=True
- -o celix/*:enable_testing_for_cxx14=True
- -o celix/*:enable_testing_dependency_manager_for_cxx11=True
run: |
- conan build . -c tools.cmake.cmaketoolchain:generator=Ninja -pr:b
default -pr:h default -s:b build_type=Release -s:h build_type=Release -of build
${CONAN_BUILD_OPTIONS} -b missing -b cpputest
+ conan build . -c tools.cmake.cmaketoolchain:generator=Ninja -pr:b
default -pr:h default -s:b build_type=Release -s:h build_type=Release
${CONAN_BUILD_OPTIONS} -b missing
- name: Test
- run: |
- cd build
- source conanrun.sh
- ctest --output-on-failure
- source deactivate_conanrun.sh
+ run: ctest --preset conan-release --output-on-failure -j1
Review Comment:
Why remove macos-build-brew?
##########
CMakeLists.txt:
##########
@@ -103,11 +111,16 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.0)
set(CMAKE_C_FLAGS "-Wno-error=stringop-overread ${CMAKE_C_FLAGS}")
+ set(CMAKE_C_FLAGS "-Wno-dangling-pointer -Wno-use-after-free
-Wno-maybe-uninitialized ${CMAKE_C_FLAGS}")
+ set(CMAKE_C_FLAGS "-Wno-restrict ${CMAKE_C_FLAGS}")
Review Comment:
Shall we append these -Wno-xxx to various flags rather prepend them, so that
they will not be overriden by the following `-Wall -Werror`?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]