* [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
@ 2022-12-08 20:26 Fabrice Fontaine
2022-12-10 8:45 ` Yann E. MORIN
2022-12-16 15:05 ` Peter Korsgaard
0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2022-12-08 20:26 UTC (permalink / raw)
To: buildroot; +Cc: Jianhui Zhao, Fabrice Fontaine
libuwsc needs BR2_PACKAGE_WOLFSSL_ALL (which enables openssl compat
layer) to avoid the following wolfssl build failure raised since the
addition of the package in commit
120c04775d7ebe5a2cfc14848f5d11f3a333970b:
/home/br-user/work/instance-1/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
62 | SSL_CTX *ctx;
| ^~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/6c2a6ed6fca1f92aab299f6ed9cd900b20e8d512
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libuwsc/libuwsc.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libuwsc/libuwsc.mk b/package/libuwsc/libuwsc.mk
index cad351529d..051ea411fa 100644
--- a/package/libuwsc/libuwsc.mk
+++ b/package/libuwsc/libuwsc.mk
@@ -18,7 +18,7 @@ LIBUWSC_CONF_OPTS += \
-DUWSC_USE_MBEDTLS=OFF \
-DUWSC_USE_OPENSSL=ON \
-DUWSC_USE_WOLFSSL=OFF
-else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
+else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
LIBUWSC_DEPENDENCIES += wolfssl
LIBUWSC_CONF_OPTS += \
-DUWSC_SSL_SUPPORT=ON \
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
2022-12-08 20:26 Fabrice Fontaine
@ 2022-12-10 8:45 ` Yann E. MORIN
2022-12-16 15:05 ` Peter Korsgaard
1 sibling, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2022-12-10 8:45 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Jianhui Zhao, buildroot
Fabrice, All,
On 2022-12-08 21:26 +0100, Fabrice Fontaine spake thusly:
> libuwsc needs BR2_PACKAGE_WOLFSSL_ALL (which enables openssl compat
> layer) to avoid the following wolfssl build failure raised since the
> addition of the package in commit
> 120c04775d7ebe5a2cfc14848f5d11f3a333970b:
>
> /home/br-user/work/instance-1/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
> 62 | SSL_CTX *ctx;
> | ^~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/6c2a6ed6fca1f92aab299f6ed9cd900b20e8d512
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
I added a blurb that explains why we don't siply select _ALL.
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/libuwsc/libuwsc.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/libuwsc/libuwsc.mk b/package/libuwsc/libuwsc.mk
> index cad351529d..051ea411fa 100644
> --- a/package/libuwsc/libuwsc.mk
> +++ b/package/libuwsc/libuwsc.mk
> @@ -18,7 +18,7 @@ LIBUWSC_CONF_OPTS += \
> -DUWSC_USE_MBEDTLS=OFF \
> -DUWSC_USE_OPENSSL=ON \
> -DUWSC_USE_WOLFSSL=OFF
> -else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
> +else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
> LIBUWSC_DEPENDENCIES += wolfssl
> LIBUWSC_CONF_OPTS += \
> -DUWSC_SSL_SUPPORT=ON \
> --
> 2.35.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
2022-12-08 20:26 Fabrice Fontaine
2022-12-10 8:45 ` Yann E. MORIN
@ 2022-12-16 15:05 ` Peter Korsgaard
1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2022-12-16 15:05 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Jianhui Zhao, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> libuwsc needs BR2_PACKAGE_WOLFSSL_ALL (which enables openssl compat
> layer) to avoid the following wolfssl build failure raised since the
> addition of the package in commit
> 120c04775d7ebe5a2cfc14848f5d11f3a333970b:
> /home/br-user/work/instance-1/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
> 62 | SSL_CTX *ctx;
> | ^~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/6c2a6ed6fca1f92aab299f6ed9cd900b20e8d512
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.11.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
@ 2024-01-14 15:56 Fabrice Fontaine
2024-01-15 7:47 ` Peter Korsgaard
2024-02-03 10:39 ` Peter Korsgaard
0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2024-01-14 15:56 UTC (permalink / raw)
To: buildroot; +Cc: Jianhui Zhao, Fabrice Fontaine
Commit 1567fbd72d4b547f70a7509247bf9abb73ab58e3 didn't fully fix the
wolfssl build failure because the include on wolfssl/options.h was still
missing:
/home/autobuild/autobuild/instance-6/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
62 | SSL_CTX *ctx;
| ^~~~~~~
While at it, add upstream tag to patches
Fixes:
- http://autobuild.buildroot.org/results/edc49cce5b1f456d980841f4c315e7cd784b1561
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.checkpackageignore | 2 -
...001-CMakeLists.txt-add-BUILD_EXAMPLE.patch | 2 +-
.../libuwsc/0002-fix-bad-indentation.patch | 3 +-
.../0003-src-ssl.c-fix-wolfssl-build.patch | 37 +++++++++++++++++++
4 files changed, 39 insertions(+), 5 deletions(-)
create mode 100644 package/libuwsc/0003-src-ssl.c-fix-wolfssl-build.patch
diff --git a/.checkpackageignore b/.checkpackageignore
index 02878eae1c..acc9a596f2 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -725,8 +725,6 @@ package/libuhttpd/0001-add-compatibility-for-wolfssl-5-0.patch Upstream
package/libuio/0001-configure.ac-set-automake-strictness-to-foreign.patch Upstream
package/liburcu/0001-Only-blacklist-ARM-gcc-4.8.0-and-4.8.1.patch Upstream
package/libusbgx/0001-Add-include-of-sys-sysmacro.h.patch Upstream
-package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch Upstream
-package/libuwsc/0002-fix-bad-indentation.patch Upstream
package/libvpx/0001-vpx_mem-vpx_mem.h-Fix-compilation-with-uClibc.patch Upstream
package/libwebsock/0001-Switch-to-use-pkg-config-to-detect-libevent-and-open.patch Upstream
package/libwebsock/0002-fix-ssl.patch Upstream
diff --git a/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch b/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch
index 197dd1de0f..87f343a9d9 100644
--- a/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch
+++ b/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch
@@ -6,7 +6,7 @@ Subject: [PATCH] CMakeLists.txt: add BUILD_EXAMPLE
Allow the user to disable example
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[yann.morin.1998@free.fr: backport from upstream]
+Upstream: https://github.com/zhaojh329/libuwsc/commit/bb71b21eb9407479ad729b3c858b0fc350fae335
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
CMakeLists.txt | 6 +++++-
diff --git a/package/libuwsc/0002-fix-bad-indentation.patch b/package/libuwsc/0002-fix-bad-indentation.patch
index f33f944d06..77cae92cf2 100644
--- a/package/libuwsc/0002-fix-bad-indentation.patch
+++ b/package/libuwsc/0002-fix-bad-indentation.patch
@@ -5,8 +5,7 @@ Subject: [PATCH] fix bad indentation
Fixes error with GCC11.
-[Retrieved from:
-https://github.com/zhaojh329/libuwsc/commit/8cb416140741a596235b8acc46b2b119b13ebfab]
+Upstream: https://github.com/zhaojh329/libuwsc/commit/8cb416140741a596235b8acc46b2b119b13ebfab
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
src/lua/uwsc_lua.c | 2 +-
diff --git a/package/libuwsc/0003-src-ssl.c-fix-wolfssl-build.patch b/package/libuwsc/0003-src-ssl.c-fix-wolfssl-build.patch
new file mode 100644
index 0000000000..4c652a63c2
--- /dev/null
+++ b/package/libuwsc/0003-src-ssl.c-fix-wolfssl-build.patch
@@ -0,0 +1,37 @@
+From 1c3579e99163a13d622c3ef44088c23d5eea306d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 14 Jan 2024 16:44:13 +0100
+Subject: [PATCH] src/ssl.c: fix wolfssl build
+
+wolfssl/options.h must also be included by clients to avoid the
+following build failure because OPENSSL_ALL won't be defined:
+
+/home/autobuild/autobuild/instance-6/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
+ 62 | SSL_CTX *ctx;
+ | ^~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/edc49cce5b1f456d980841f4c315e7cd784b1561
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: N/A (already fixed by
+https://github.com/zhaojh329/ssl/commit/c40ebcd7b4277321acbbd4b00b4b10fd363c7a97)
+---
+ src/ssl.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ssl.c b/src/ssl.c
+index 3640022..6a3d250 100644
+--- a/src/ssl.c
++++ b/src/ssl.c
+@@ -54,6 +54,7 @@ struct uwsc_ssl_ctx {
+ #include <openssl/err.h>
+ #elif UWSC_HAVE_WOLFSSL
+ #define WC_NO_HARDEN
++#include <wolfssl/options.h>
+ #include <wolfssl/openssl/ssl.h>
+ #include <wolfssl/openssl/err.h>
+ #endif
+--
+2.43.0
+
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
2024-01-14 15:56 [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build Fabrice Fontaine
@ 2024-01-15 7:47 ` Peter Korsgaard
2024-02-03 10:39 ` Peter Korsgaard
1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2024-01-15 7:47 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Jianhui Zhao, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Commit 1567fbd72d4b547f70a7509247bf9abb73ab58e3 didn't fully fix the
> wolfssl build failure because the include on wolfssl/options.h was still
> missing:
> /home/autobuild/autobuild/instance-6/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
> 62 | SSL_CTX *ctx;
> | ^~~~~~~
> While at it, add upstream tag to patches
> Fixes:
> - http://autobuild.buildroot.org/results/edc49cce5b1f456d980841f4c315e7cd784b1561
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build
2024-01-14 15:56 [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build Fabrice Fontaine
2024-01-15 7:47 ` Peter Korsgaard
@ 2024-02-03 10:39 ` Peter Korsgaard
1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2024-02-03 10:39 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Jianhui Zhao, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Commit 1567fbd72d4b547f70a7509247bf9abb73ab58e3 didn't fully fix the
> wolfssl build failure because the include on wolfssl/options.h was still
> missing:
> /home/autobuild/autobuild/instance-6/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
> 62 | SSL_CTX *ctx;
> | ^~~~~~~
> While at it, add upstream tag to patches
> Fixes:
> - http://autobuild.buildroot.org/results/edc49cce5b1f456d980841f4c315e7cd784b1561
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.02.x and 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-02-03 18:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-14 15:56 [Buildroot] [PATCH 1/1] package/libuwsc: fix wolfssl build Fabrice Fontaine
2024-01-15 7:47 ` Peter Korsgaard
2024-02-03 10:39 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2022-12-08 20:26 Fabrice Fontaine
2022-12-10 8:45 ` Yann E. MORIN
2022-12-16 15:05 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox