All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl
@ 2019-06-08 21:57 Fabrice Fontaine
  2019-06-08 22:17 ` Pierre-Jean Texier
  2019-06-09 21:22 ` Arnout Vandecappelle
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-06-08 21:57 UTC (permalink / raw)
  To: buildroot

Since bump to version 2.1.10 in commit
3c8e79db8375f83a8e6a1d58ade697447903b6b0, openssl detection is broken.
Add a patch to fix it otherwise libwebsock fails to build

Fixes:
 - http://autobuild.buildroot.org/results/be32afa364a6b387195cdb5166fb23e9610451a7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ..._openssl.m4-fix-detection-of-openssl.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch

diff --git a/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch b/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch
new file mode 100644
index 0000000000..0724135df8
--- /dev/null
+++ b/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch
@@ -0,0 +1,36 @@
+From 0374b55942e533a3c3997439481a8d05d6c8f729 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 8 Jun 2019 23:44:37 +0200
+Subject: [PATCH] m4/libevent_openssl.m4: fix detection of openssl
+
+Since commit 506df426dbeb0187bbd3654bd286b4100628fb16, OPENSSL_INCS is
+added to CPPFLAGS without any white space, as a result openssl detection
+fails on:
+configure:10395: checking openssl/ssl.h usability
+configure:10395: /home/fabrice/buildroot-test/buildroot/output/host/bin/riscv32-linux-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64-I/home/fabrice/buildroot-test/buildroot/output/host/bin/../riscv32-buildroot-linux-gnu/sysroot/usr/include  conftest.c >&5
+<command-line>:0:0: warning: "_FILE_OFFSET_BITS" redefined
+<command-line>:0:0: note: this is the location of the previous definition
+<command-line>:0:23: error: division by zero in #if
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/libevent/libevent/pull/830]
+---
+ m4/libevent_openssl.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4
+index 7b458134..19811981 100644
+--- a/m4/libevent_openssl.m4
++++ b/m4/libevent_openssl.m4
+@@ -40,7 +40,7 @@ case "$enable_openssl" in
+ 	;;
+     esac
+     CPPFLAGS_SAVE=$CPPFLAGS
+-    CPPFLAGS+=$OPENSSL_INCS
++    CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
+     AC_CHECK_HEADERS([openssl/ssl.h], [], [have_openssl=no])
+     CPPFLAGS=$CPPFLAGS_SAVE
+     AC_SUBST(OPENSSL_INCS)
+-- 
+2.20.1
+
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl
  2019-06-08 21:57 [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl Fabrice Fontaine
@ 2019-06-08 22:17 ` Pierre-Jean Texier
  2019-06-09 21:22 ` Arnout Vandecappelle
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Jean Texier @ 2019-06-08 22:17 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

Le 08/06/2019 ? 23:57, Fabrice Fontaine a ?crit?:
> Since bump to version 2.1.10 in commit
> 3c8e79db8375f83a8e6a1d58ade697447903b6b0, openssl detection is broken.
> Add a patch to fix it otherwise libwebsock fails to build

Indeed.
I had not tested openssl configuration after bump to version 2.1.10.

Thanks for the fix.

> 
> Fixes:
>   -http://autobuild.buildroot.org/results/be32afa364a6b387195cdb5166fb23e9610451a7
> 
> Signed-off-by: Fabrice Fontaine<fontaine.fabrice@gmail.com>
> ---

Tested-by: Pierre-Jean Texier <pjtexier@koncepto.io>

-- 
Best regards,
Pierre-Jean Texier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl
  2019-06-08 21:57 [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl Fabrice Fontaine
  2019-06-08 22:17 ` Pierre-Jean Texier
@ 2019-06-09 21:22 ` Arnout Vandecappelle
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2019-06-09 21:22 UTC (permalink / raw)
  To: buildroot



On 08/06/2019 23:57, Fabrice Fontaine wrote:
> Since bump to version 2.1.10 in commit
> 3c8e79db8375f83a8e6a1d58ade697447903b6b0, openssl detection is broken.
> Add a patch to fix it otherwise libwebsock fails to build
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/be32afa364a6b387195cdb5166fb23e9610451a7
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 Regards,
 Arnout

> ---
>  ..._openssl.m4-fix-detection-of-openssl.patch | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch
> 
> diff --git a/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch b/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch
> new file mode 100644
> index 0000000000..0724135df8
> --- /dev/null
> +++ b/package/libevent/0002-m4-libevent_openssl.m4-fix-detection-of-openssl.patch
> @@ -0,0 +1,36 @@
> +From 0374b55942e533a3c3997439481a8d05d6c8f729 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 8 Jun 2019 23:44:37 +0200
> +Subject: [PATCH] m4/libevent_openssl.m4: fix detection of openssl
> +
> +Since commit 506df426dbeb0187bbd3654bd286b4100628fb16, OPENSSL_INCS is
> +added to CPPFLAGS without any white space, as a result openssl detection
> +fails on:
> +configure:10395: checking openssl/ssl.h usability
> +configure:10395: /home/fabrice/buildroot-test/buildroot/output/host/bin/riscv32-linux-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64-I/home/fabrice/buildroot-test/buildroot/output/host/bin/../riscv32-buildroot-linux-gnu/sysroot/usr/include  conftest.c >&5
> +<command-line>:0:0: warning: "_FILE_OFFSET_BITS" redefined
> +<command-line>:0:0: note: this is the location of the previous definition
> +<command-line>:0:23: error: division by zero in #if
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://github.com/libevent/libevent/pull/830]
> +---
> + m4/libevent_openssl.m4 | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4
> +index 7b458134..19811981 100644
> +--- a/m4/libevent_openssl.m4
> ++++ b/m4/libevent_openssl.m4
> +@@ -40,7 +40,7 @@ case "$enable_openssl" in
> + 	;;
> +     esac
> +     CPPFLAGS_SAVE=$CPPFLAGS
> +-    CPPFLAGS+=$OPENSSL_INCS
> ++    CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
> +     AC_CHECK_HEADERS([openssl/ssl.h], [], [have_openssl=no])
> +     CPPFLAGS=$CPPFLAGS_SAVE
> +     AC_SUBST(OPENSSL_INCS)
> +-- 
> +2.20.1
> +
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-09 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-08 21:57 [Buildroot] [PATCH 1/1] package/libevent: fix build with openssl Fabrice Fontaine
2019-06-08 22:17 ` Pierre-Jean Texier
2019-06-09 21:22 ` Arnout Vandecappelle

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.