* [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend
@ 2018-03-20 18:46 Baruch Siach
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Baruch Siach @ 2018-03-20 18:46 UTC (permalink / raw)
To: buildroot
The libssh2.pc file did not contain the needed info for static link with
libssh2. Add a patch fixing that.
Fixes (qemu):
http://autobuild.buildroot.net/results/634/6346b25be2844f9ef722e52040ac1b43d9c38899/
Cc: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
.../0002-acinclude.m4-add-mbedtls-to-LIBS.patch | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch
diff --git a/package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch b/package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch
new file mode 100644
index 000000000000..76e08c51a937
--- /dev/null
+++ b/package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch
@@ -0,0 +1,31 @@
+From f4846473f0f0ec313f8ed7ff4cd9f59c1741465d Mon Sep 17 00:00:00 2001
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Tue, 20 Mar 2018 20:21:53 +0200
+Subject: [PATCH] acinclude.m4: add mbedtls to LIBS
+
+This is useful for static builds so that the Libs.private field in
+libssh2.pc contains correct info for the benefit of pkg-config users.
+Static link with libssh2 requires this information.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Upstream status: https://github.com/libssh2/libssh2/pull/242
+
+ acinclude.m4 | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index c0e89a1a0c98..02c70845d27c 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -441,6 +441,7 @@ m4_case([$1],
+ [mbedtls], [
+ LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
+ AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
++ LIBS="$LIBS $LIBMBEDCRYPTO"
+ found_crypto="$1"
+ support_clear_memory=yes
+ ])
+--
+2.16.2
+
--
2.16.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency
2018-03-20 18:46 [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Baruch Siach
@ 2018-03-20 18:46 ` Baruch Siach
2018-03-24 19:41 ` Romain Naour
` (2 more replies)
2018-03-24 20:40 ` [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 3 replies; 7+ messages in thread
From: Baruch Siach @ 2018-03-20 18:46 UTC (permalink / raw)
To: buildroot
Make sure that qemu uses libssh2 when libssh2 is enabled, for build
consistency.
Cc: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/qemu/qemu.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 345ef526681a..c3a7e7738ee6 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -212,6 +212,13 @@ else
QEMU_OPTS += --disable-tools
endif
+ifeq ($(BR2_PACKAGE_LIBSSH2),y)
+QEMU_OPTS += --enable-libssh2
+QEMU_DEPENDENCIES += libssh2
+else
+QEMU_OPTS += --disable-libssh2
+endif
+
# Override CPP, as it expects to be able to call it like it'd
# call the compiler.
define QEMU_CONFIGURE_CMDS
--
2.16.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
@ 2018-03-24 19:41 ` Romain Naour
2018-03-24 20:40 ` Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Romain Naour @ 2018-03-24 19:41 UTC (permalink / raw)
To: buildroot
Hi Baruch,
Le 20/03/2018 ? 19:46, Baruch Siach a ?crit?:
> Make sure that qemu uses libssh2 when libssh2 is enabled, for build
> consistency.
>
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Best regards,
Romain
> ---
> package/qemu/qemu.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
> index 345ef526681a..c3a7e7738ee6 100644
> --- a/package/qemu/qemu.mk
> +++ b/package/qemu/qemu.mk
> @@ -212,6 +212,13 @@ else
> QEMU_OPTS += --disable-tools
> endif
>
> +ifeq ($(BR2_PACKAGE_LIBSSH2),y)
> +QEMU_OPTS += --enable-libssh2
> +QEMU_DEPENDENCIES += libssh2
> +else
> +QEMU_OPTS += --disable-libssh2
> +endif
> +
> # Override CPP, as it expects to be able to call it like it'd
> # call the compiler.
> define QEMU_CONFIGURE_CMDS
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend
2018-03-20 18:46 [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Baruch Siach
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
@ 2018-03-24 20:40 ` Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2018-03-24 20:40 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> The libssh2.pc file did not contain the needed info for static link with
> libssh2. Add a patch fixing that.
> Fixes (qemu):
> http://autobuild.buildroot.net/results/634/6346b25be2844f9ef722e52040ac1b43d9c38899/
> Cc: Matt Weber <matthew.weber@rockwellcollins.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
2018-03-24 19:41 ` Romain Naour
@ 2018-03-24 20:40 ` Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2018-03-24 20:40 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> Make sure that qemu uses libssh2 when libssh2 is enabled, for build
> consistency.
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend
2018-03-20 18:46 [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Baruch Siach
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
2018-03-24 20:40 ` [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Peter Korsgaard
@ 2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2018-04-06 16:58 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> The libssh2.pc file did not contain the needed info for static link with
> libssh2. Add a patch fixing that.
> Fixes (qemu):
> http://autobuild.buildroot.net/results/634/6346b25be2844f9ef722e52040ac1b43d9c38899/
> Cc: Matt Weber <matthew.weber@rockwellcollins.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
2018-03-24 19:41 ` Romain Naour
2018-03-24 20:40 ` Peter Korsgaard
@ 2018-04-06 16:58 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2018-04-06 16:58 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> Make sure that qemu uses libssh2 when libssh2 is enabled, for build
> consistency.
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-04-06 16:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 18:46 [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Baruch Siach
2018-03-20 18:46 ` [Buildroot] [PATCH 2/2] qemu: add libssh2 optional dependency Baruch Siach
2018-03-24 19:41 ` Romain Naour
2018-03-24 20:40 ` Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard
2018-03-24 20:40 ` [Buildroot] [PATCH 1/2] libssh2: fix pkg-config info for mbedtls backend Peter Korsgaard
2018-04-06 16:58 ` 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.