* [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches
@ 2022-07-16 21:16 Fabrice Fontaine
2022-07-16 21:16 ` [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads Fabrice Fontaine
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2022-07-16 21:16 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix wrong patch number added by commit
2097e1ba3904be8f7cd388fe1d16a099da83ef99
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...tch => 0002-cmake-remove-duplicate-LwsCheckRequirements.patch} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename package/libwebsockets/{0001-cmake-remove-duplicate-LwsCheckRequirements.patch => 0002-cmake-remove-duplicate-LwsCheckRequirements.patch} (100%)
diff --git a/package/libwebsockets/0001-cmake-remove-duplicate-LwsCheckRequirements.patch b/package/libwebsockets/0002-cmake-remove-duplicate-LwsCheckRequirements.patch
similarity index 100%
rename from package/libwebsockets/0001-cmake-remove-duplicate-LwsCheckRequirements.patch
rename to package/libwebsockets/0002-cmake-remove-duplicate-LwsCheckRequirements.patch
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads
2022-07-16 21:16 [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Fabrice Fontaine
@ 2022-07-16 21:16 ` Fabrice Fontaine
2022-08-08 14:37 ` Peter Korsgaard
2022-07-17 7:15 ` [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Yann E. MORIN
2022-08-08 14:36 ` Peter Korsgaard
2 siblings, 1 reply; 5+ messages in thread
From: Fabrice Fontaine @ 2022-07-16 21:16 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following openssl build failure without threads raised since
bump to version 4.3.1 in commit 3a9cf51ab38b6a3a095241b8e87eab7e5b5bd617 and
https://github.com/warmcat/libwebsockets/commit/471dbf5280b2d0770cdf2803642586cee37a335d:
In file included from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets.h:661,
from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:140,
from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-misc.c:28:
/home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets/lws-genhash.h:85:18: error: field 'ctx' has incomplete type
85 | HMAC_CTX ctx;
| ^~~
Fixes:
- http://autobuild.buildroot.org/results/2ae9e3249b6fcc9e6c30e7783e264fc6599e61df
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...eLists.txt-fix-build-without-threads.patch | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 package/libwebsockets/0003-lib-tls-CMakeLists.txt-fix-build-without-threads.patch
diff --git a/package/libwebsockets/0003-lib-tls-CMakeLists.txt-fix-build-without-threads.patch b/package/libwebsockets/0003-lib-tls-CMakeLists.txt-fix-build-without-threads.patch
new file mode 100644
index 0000000000..ae46602a53
--- /dev/null
+++ b/package/libwebsockets/0003-lib-tls-CMakeLists.txt-fix-build-without-threads.patch
@@ -0,0 +1,47 @@
+From c83cf48b9095a6914a0844bec4439763bb0c9138 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 28 May 2022 23:15:40 +0200
+Subject: [PATCH] lib/tls/CMakeLists.txt: fix build without threads
+
+openssl can be built without threads resulting in the following build
+failure:
+
+-- Looking for HMAC_CTX_new
+-- Looking for HMAC_CTX_new - not found
+
+[...]
+
+In file included from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets.h:661,
+ from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:140,
+ from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-misc.c:28:
+/home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets/lws-genhash.h:85:18: error: field 'ctx' has incomplete type
+ 85 | HMAC_CTX ctx;
+ | ^~~
+
+To fix this build failure, don't unconditionally add pthread if openssl
+has been found through pkg-config as openssl.pc will contain the
+appropriate dependencies (i.e. -lpthread but also -lz or -latomic)
+
+Fixes:
+ - http://autobuild.buildroot.org/results/2ae9e3249b6fcc9e6c30e7783e264fc6599e61df
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/warmcat/libwebsockets/commit/c83cf48b9095a6914a0844bec4439763bb0c9138]
+---
+ lib/tls/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/tls/CMakeLists.txt b/lib/tls/CMakeLists.txt
+index 559be9abb..a2b78c252 100644
+--- a/lib/tls/CMakeLists.txt
++++ b/lib/tls/CMakeLists.txt
+@@ -311,7 +311,7 @@ endif()
+ if (UNIX AND NOT (${CMAKE_SYSTEM_NAME} MATCHES "QNX"))
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_DL_LIBS})
+ endif()
+-if ((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT (${CMAKE_SYSTEM_NAME} MATCHES "QNX"))
++if ((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT ((${CMAKE_SYSTEM_NAME} MATCHES "QNX") OR PC_OPENSSL_FOUND))
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} pthread)
+ endif()
+
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches
2022-07-16 21:16 [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Fabrice Fontaine
2022-07-16 21:16 ` [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads Fabrice Fontaine
@ 2022-07-17 7:15 ` Yann E. MORIN
2022-08-08 14:36 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2022-07-17 7:15 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Fabrice, All,
On 2022-07-16 23:16 +0200, Fabrice Fontaine spake thusly:
> Fix wrong patch number added by commit
> 2097e1ba3904be8f7cd388fe1d16a099da83ef99
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Series of two patches applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> ...tch => 0002-cmake-remove-duplicate-LwsCheckRequirements.patch} | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> rename package/libwebsockets/{0001-cmake-remove-duplicate-LwsCheckRequirements.patch => 0002-cmake-remove-duplicate-LwsCheckRequirements.patch} (100%)
>
> diff --git a/package/libwebsockets/0001-cmake-remove-duplicate-LwsCheckRequirements.patch b/package/libwebsockets/0002-cmake-remove-duplicate-LwsCheckRequirements.patch
> similarity index 100%
> rename from package/libwebsockets/0001-cmake-remove-duplicate-LwsCheckRequirements.patch
> rename to package/libwebsockets/0002-cmake-remove-duplicate-LwsCheckRequirements.patch
> --
> 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] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches
2022-07-16 21:16 [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Fabrice Fontaine
2022-07-16 21:16 ` [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads Fabrice Fontaine
2022-07-17 7:15 ` [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Yann E. MORIN
@ 2022-08-08 14:36 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2022-08-08 14:36 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix wrong patch number added by commit
> 2097e1ba3904be8f7cd388fe1d16a099da83ef99
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads
2022-07-16 21:16 ` [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads Fabrice Fontaine
@ 2022-08-08 14:37 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2022-08-08 14:37 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following openssl build failure without threads raised since
> bump to version 4.3.1 in commit 3a9cf51ab38b6a3a095241b8e87eab7e5b5bd617 and
> https://github.com/warmcat/libwebsockets/commit/471dbf5280b2d0770cdf2803642586cee37a335d:
> In file included from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets.h:661,
> from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:140,
> from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-misc.c:28:
> /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets/lws-genhash.h:85:18: error: field 'ctx' has incomplete type
> 85 | HMAC_CTX ctx;
> | ^~~
> Fixes:
> - http://autobuild.buildroot.org/results/2ae9e3249b6fcc9e6c30e7783e264fc6599e61df
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-08 14:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 21:16 [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Fabrice Fontaine
2022-07-16 21:16 ` [Buildroot] [PATCH 2/2] package/libwebsockets: fix openssl build without threads Fabrice Fontaine
2022-08-08 14:37 ` Peter Korsgaard
2022-07-17 7:15 ` [Buildroot] [PATCH 1/2] package/libwebsockets: renumber patches Yann E. MORIN
2022-08-08 14:36 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.