Skip to contentSkip to conversation

civetweb: remove redundant EXTRA_OECMAKE_class-native

PATCH In review Pascal Bach 2 participants 4 messages Oct 30, 2018 – Oct 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 civetweb: remove redundant EXTRA_OECMAKE_class-native

They are the same as the default version.

---
 meta-networking/recipes-connectivity/civetweb/civetweb_git.bb | 6 ------
 1 file changed, 6 deletions(-)
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +0 -6
index 9a7844ad0..004cf960a 100644
@@ -24,12 +24,6 @@ EXTRA_OECMAKE = " \
     -DCIVETWEB_ENABLE_LUA=OFF \
     -DCIVETWEB_ENABLE_ASAN=OFF \
 "
-EXTRA_OECMAKE_class-native = " \
-    -DBUILD_SHARED_LIBS=ON \
-    -DCIVETWEB_ENABLE_DUKTAPE=OFF \
-    -DCIVETWEB_ENABLE_LUA=OFF \
-    -DCIVETWEB_ENABLE_ASAN=OFF \
-"
 
 # Building with ninja fails on missing third_party/lib/libcheck.a (which
 # should come from external CMake project)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 civetweb: disable tests

Tests try to download third party code and bypass the bitbake fetcher to do that. This will not work in environments with no internet access.

---
 meta-networking/recipes-connectivity/civetweb/civetweb_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +1 -0
index 004cf960a..d681f7f30 100644
@@ -23,6 +23,7 @@ EXTRA_OECMAKE = " \
     -DCIVETWEB_ENABLE_DUKTAPE=OFF \
     -DCIVETWEB_ENABLE_LUA=OFF \
     -DCIVETWEB_ENABLE_ASAN=OFF \
+    -DCIVETWEB_BUILD_TESTING=OFF \
 "
 
 # Building with ninja fails on missing third_party/lib/libcheck.a (which
Signature · 1 line
2.11.0
#2 lore raw

Re: [meta-networking][PATCH 2/2] civetweb: disable tests

Quoted 14 lines · Pascal Bach

Tests try to download third party code and bypass the bitbake fetcher to do that. This will not work in environments with no internet access.

---
 meta-networking/recipes-connectivity/civetweb/civetweb_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +0 -0
index 004cf960a..d681f7f30 100644

meta-networking/recipes-connectivity/civetweb/civetweb_git.bb EXTRA_OECMAKE = " \ · line 27

Quoted 5 lines
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +1 -0
@@ -23,6 +23,7 @@ EXTRA_OECMAKE = " \
     -DCIVETWEB_ENABLE_DUKTAPE=OFF \
     -DCIVETWEB_ENABLE_LUA=OFF \
     -DCIVETWEB_ENABLE_ASAN=OFF \
+    -DCIVETWEB_BUILD_TESTING=OFF \
 "

Probably, it will be good to turn this into a packageconfig, I am fine to disable it by default
but it might be useful to have it enabled with say images with ptest feature on.

Quoted 10 lines
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +0 -1
 # Building with ninja fails on missing third_party/lib/libcheck.a (which
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [meta-networking][PATCH 2/2] civetweb: disable tests

Quoted 9 lines · Khem Raj
Quoted 8 lines · Pascal Bach

Tests try to download third party code and bypass the bitbake fetcher to do that. This will not work in environments with no internet access.

---
 meta-networking/recipes-connectivity/civetweb/civetweb_git.bb | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

meta-networking/recipes-connectivity/civetweb/civetweb_git.bb EXTRA_OECMAKE = " \ · line 27

Quoted 10 lines
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +1 -0
index 004cf960a..d681f7f30 100644
@@ -23,6 +23,7 @@ EXTRA_OECMAKE = " \
     -DCIVETWEB_ENABLE_DUKTAPE=OFF \
     -DCIVETWEB_ENABLE_LUA=OFF \
     -DCIVETWEB_ENABLE_ASAN=OFF \
+    -DCIVETWEB_BUILD_TESTING=OFF \
 "

Probably, it will be good to turn this into a packageconfig, I am fine to disable it by default
but it might be useful to have it enabled with say images with ptest feature on.

I agree it might be useful, but it needs some change as I don't think we want to have a recipe that fetches code from somewhere without bitbake knowing about it.

Once the main CMake patches land I will try to look into how the whole ExternalProject [1] stuff works in CMake and how it could be better integrated into OE. So for now I suggest to just deactivate it and then later re add it once I figured out a way to properly handle ExternalProject.

[1] https://cmake.org/cmake/help/latest/module/ExternalProject.html

Quoted 9 lines
Quoted 9 lines
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb +0 -1
 # Building with ninja fails on missing third_party/lib/libcheck.a (which
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel