* [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory
@ 2020-03-14 22:20 Fabrice Fontaine
2020-03-14 22:20 ` [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale Fabrice Fontaine
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2020-03-14 22:20 UTC (permalink / raw)
To: buildroot
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libcpprestsdk/Config.in | 1 -
package/libcpprestsdk/libcpprestsdk.mk | 9 ++++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/libcpprestsdk/Config.in b/package/libcpprestsdk/Config.in
index a07159b124..1551a0c6b1 100644
--- a/package/libcpprestsdk/Config.in
+++ b/package/libcpprestsdk/Config.in
@@ -13,7 +13,6 @@ config BR2_PACKAGE_LIBCPPRESTSDK
select BR2_PACKAGE_BOOST_REGEX
select BR2_PACKAGE_BOOST_THREAD
select BR2_PACKAGE_OPENSSL
- select BR2_PACKAGE_ZLIB
help
The C++ REST SDK is a Microsoft project for cloud-based
client-server communication in native code using a modern
diff --git a/package/libcpprestsdk/libcpprestsdk.mk b/package/libcpprestsdk/libcpprestsdk.mk
index 8404b5096c..69ff9f17cc 100644
--- a/package/libcpprestsdk/libcpprestsdk.mk
+++ b/package/libcpprestsdk/libcpprestsdk.mk
@@ -10,7 +10,7 @@ LIBCPPRESTSDK_LICENSE = MIT
LIBCPPRESTSDK_LICENSE_FILES = license.txt
LIBCPPRESTSDK_SUBDIR = Release
LIBCPPRESTSDK_INSTALL_STAGING = YES
-LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
+LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl
LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
ifeq ($(BR2_STATIC_LIBS),y)
@@ -25,12 +25,19 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
LIBCPPRESTSDK_CXXFLAGS += -latomic
endif
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBCPPRESTSDK_DEPENDENCIES += zlib
+LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=OFF
+# brotli needs compression
ifeq ($(BR2_PACKAGE_BROTLI),y)
LIBCPPRESTSDK_DEPENDENCIES += brotli
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=OFF
else
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=ON
endif
+else
+LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=ON
+endif
ifeq ($(BR2_PACKAGE_WEBSOCKETPP),y)
LIBCPPRESTSDK_DEPENDENCIES += websocketpp
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale
2020-03-14 22:20 [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Fabrice Fontaine
@ 2020-03-14 22:20 ` Fabrice Fontaine
2020-03-15 21:47 ` Thomas Petazzoni
2020-03-15 21:47 ` [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Thomas Petazzoni
2020-04-25 13:46 ` Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Fabrice Fontaine @ 2020-03-14 22:20 UTC (permalink / raw)
To: buildroot
locale_t is unconditionally used since version 2.3.0 and
https://github.com/microsoft/cpprestsdk/commit/814caa4c0a80ef223535446a274146bf46a5ef2b
Fixes:
- No autobuilder failures
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libcpprestsdk/Config.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/libcpprestsdk/Config.in b/package/libcpprestsdk/Config.in
index 1551a0c6b1..af97509d1b 100644
--- a/package/libcpprestsdk/Config.in
+++ b/package/libcpprestsdk/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_LIBCPPRESTSDK
bool "libcpprestsdk"
+ depends on BR2_ENABLE_LOCALE
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR # boost
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
@@ -21,10 +22,10 @@ config BR2_PACKAGE_LIBCPPRESTSDK
https://github.com/Microsoft/cpprestsdk
-comment "libcpprestsdk needs a toolchain w/ NPTL, C++, wchar"
+comment "libcpprestsdk needs a toolchain w/ NPTL, C++, wchar, locale"
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
!BR2_INSTALL_LIBSTDCPP || \
- !BR2_USE_WCHAR
+ !BR2_USE_WCHAR || !BR2_ENABLE_LOCALE
comment "libcpprestsdk needs exception_ptr"
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory
2020-03-14 22:20 [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Fabrice Fontaine
2020-03-14 22:20 ` [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale Fabrice Fontaine
@ 2020-03-15 21:47 ` Thomas Petazzoni
2020-03-15 22:41 ` Fabrice Fontaine
2020-04-25 13:46 ` Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2020-03-15 21:47 UTC (permalink / raw)
To: buildroot
On Sat, 14 Mar 2020 23:20:26 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> +ifeq ($(BR2_PACKAGE_ZLIB),y)
> +LIBCPPRESTSDK_DEPENDENCIES += zlib
> +LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=OFF
> +# brotli needs compression
What makes you think brotli needs zlib ? I had a quick look at the
CMake logic and didn't find that.
Also, how did you test that? zlib is a dependency of openssl, and
openssl is a mandatory dependency of libcpprestsdk. Did you test with
libressl ?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale
2020-03-14 22:20 ` [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale Fabrice Fontaine
@ 2020-03-15 21:47 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2020-03-15 21:47 UTC (permalink / raw)
To: buildroot
On Sat, 14 Mar 2020 23:20:27 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> locale_t is unconditionally used since version 2.3.0 and
> https://github.com/microsoft/cpprestsdk/commit/814caa4c0a80ef223535446a274146bf46a5ef2b
>
> Fixes:
> - No autobuilder failures
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/libcpprestsdk/Config.in | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory
2020-03-15 21:47 ` [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Thomas Petazzoni
@ 2020-03-15 22:41 ` Fabrice Fontaine
0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2020-03-15 22:41 UTC (permalink / raw)
To: buildroot
Dear Thomas,
Le dim. 15 mars 2020 ? 22:47, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> a ?crit :
>
> On Sat, 14 Mar 2020 23:20:26 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > +ifeq ($(BR2_PACKAGE_ZLIB),y)
> > +LIBCPPRESTSDK_DEPENDENCIES += zlib
> > +LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=OFF
> > +# brotli needs compression
>
> What makes you think brotli needs zlib ? I had a quick look at the
> CMake logic and didn't find that.
From https://github.com/microsoft/cpprestsdk/blob/master/Release/src/CMakeLists.txt:
if(CPPREST_EXCLUDE_COMPRESSION)
if(NOT CPPREST_EXCLUDE_BROTLI)
message(FATAL_ERROR "Use of Brotli requires compression to be enabled")
endif()
>
> Also, how did you test that? zlib is a dependency of openssl, and
> openssl is a mandatory dependency of libcpprestsdk. Did you test with
> libressl ?
Yes, I build-tested it with libressl.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,
Fabrice
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory
2020-03-14 22:20 [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Fabrice Fontaine
2020-03-14 22:20 ` [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale Fabrice Fontaine
2020-03-15 21:47 ` [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Thomas Petazzoni
@ 2020-04-25 13:46 ` Thomas Petazzoni
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2020-04-25 13:46 UTC (permalink / raw)
To: buildroot
On Sat, 14 Mar 2020 23:20:26 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/libcpprestsdk/Config.in | 1 -
> package/libcpprestsdk/libcpprestsdk.mk | 9 ++++++++-
> 2 files changed, 8 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-04-25 13:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-14 22:20 [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Fabrice Fontaine
2020-03-14 22:20 ` [Buildroot] [PATCH 2/2] package/libcpprestsdk: needs locale Fabrice Fontaine
2020-03-15 21:47 ` Thomas Petazzoni
2020-03-15 21:47 ` [Buildroot] [PATCH 1/2] package/libcpprestsdk: zlib is optional, not mandatory Thomas Petazzoni
2020-03-15 22:41 ` Fabrice Fontaine
2020-04-25 13:46 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox