Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes
@ 2018-07-23 20:06 Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 1/3] perl-net-ssh2: add missing dependency on zlib Thomas De Schampheleire
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2018-07-23 20:06 UTC (permalink / raw)
  To: buildroot

These are three related fixes to perl-net-ssh2 detected in order to fix
autobuild issue
http://autobuild.buildroot.net/results/6ee18e7dd17f168c52f79e49cb5e94cf3aa3df1a/

Best regards,
Thomas

Thomas De Schampheleire (3):
  perl-net-ssh2: add missing dependency on zlib
  perl-net-ssh2: avoid build system inspecting host paths
  perl-net-ssh2: add support for libgcrypt crypto backend

 package/perl-net-ssh2/Config.in        |  9 ++++++++-
 package/perl-net-ssh2/perl-net-ssh2.mk | 10 +++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

-- 
2.16.4

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

* [Buildroot] [PATCH 1/3] perl-net-ssh2: add missing dependency on zlib
  2018-07-23 20:06 [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas De Schampheleire
@ 2018-07-23 20:06 ` Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 2/3] perl-net-ssh2: avoid build system inspecting host paths Thomas De Schampheleire
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2018-07-23 20:06 UTC (permalink / raw)
  To: buildroot

perl-net-ssh2 requires zlib. When using the openssl backend to libssh2, this
dependency is implicit via openssl, but when using the libgcrypt backend the
dependency is missing.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
---
 package/perl-net-ssh2/Config.in        | 1 +
 package/perl-net-ssh2/perl-net-ssh2.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/perl-net-ssh2/Config.in b/package/perl-net-ssh2/Config.in
index 07c42ee5b1..8f359b7015 100644
--- a/package/perl-net-ssh2/Config.in
+++ b/package/perl-net-ssh2/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PERL_NET_SSH2
 	bool "perl-net-ssh2"
 	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBSSH2
+	select BR2_PACKAGE_ZLIB
 	help
 	  Support for the SSH 2 protocol via libssh2.
 
diff --git a/package/perl-net-ssh2/perl-net-ssh2.mk b/package/perl-net-ssh2/perl-net-ssh2.mk
index 6d84deb284..b174fa6210 100644
--- a/package/perl-net-ssh2/perl-net-ssh2.mk
+++ b/package/perl-net-ssh2/perl-net-ssh2.mk
@@ -9,6 +9,6 @@ PERL_NET_SSH2_SOURCE = Net-SSH2-$(PERL_NET_SSH2_VERSION).tar.gz
 PERL_NET_SSH2_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SA/SALVA
 PERL_NET_SSH2_LICENSE = Artistic or GPL-1.0+
 PERL_NET_SSH2_LICENSE_FILES = README
-PERL_NET_SSH2_DEPENDENCIES = libssh2
+PERL_NET_SSH2_DEPENDENCIES = libssh2 zlib
 
 $(eval $(perl-package))
-- 
2.16.4

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

* [Buildroot] [PATCH 2/3] perl-net-ssh2: avoid build system inspecting host paths
  2018-07-23 20:06 [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 1/3] perl-net-ssh2: add missing dependency on zlib Thomas De Schampheleire
@ 2018-07-23 20:06 ` Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 3/3] perl-net-ssh2: add support for libgcrypt crypto backend Thomas De Schampheleire
  2018-07-25 21:04 ` [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2018-07-23 20:06 UTC (permalink / raw)
  To: buildroot

During investigation of adding gcrypt support in perl-net-ssh2, it became
clear that its build system is trying to find libraries via host search
paths, i.e. /usr/lib64/ etc.

This can be avoided by explicitly passing a 'lib' and 'inc' path.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
---
 package/perl-net-ssh2/perl-net-ssh2.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/perl-net-ssh2/perl-net-ssh2.mk b/package/perl-net-ssh2/perl-net-ssh2.mk
index b174fa6210..77d39edef5 100644
--- a/package/perl-net-ssh2/perl-net-ssh2.mk
+++ b/package/perl-net-ssh2/perl-net-ssh2.mk
@@ -10,5 +10,9 @@ PERL_NET_SSH2_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SA/SALVA
 PERL_NET_SSH2_LICENSE = Artistic or GPL-1.0+
 PERL_NET_SSH2_LICENSE_FILES = README
 PERL_NET_SSH2_DEPENDENCIES = libssh2 zlib
+# build system will use host search paths by default
+PERL_NET_SSH2_CONF_OPTS += \
+	lib="$(STAGING_DIR)/usr/lib" \
+	inc="$(STAGING_DIR)/usr/include"
 
 $(eval $(perl-package))
-- 
2.16.4

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

* [Buildroot] [PATCH 3/3] perl-net-ssh2: add support for libgcrypt crypto backend
  2018-07-23 20:06 [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 1/3] perl-net-ssh2: add missing dependency on zlib Thomas De Schampheleire
  2018-07-23 20:06 ` [Buildroot] [PATCH 2/3] perl-net-ssh2: avoid build system inspecting host paths Thomas De Schampheleire
@ 2018-07-23 20:06 ` Thomas De Schampheleire
  2018-07-25 21:04 ` [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2018-07-23 20:06 UTC (permalink / raw)
  To: buildroot

Fix usage of libgcrypt as crypto backend to libssh2, when building
perl-net-ssh2. In order to achieve that, we need to use 'depends on' the
libssh2 backends, which means the user will first need to enable libssh2 and
one of the supported backends, before being able to enable perl-net-ssh2.

Fixes
http://autobuild.buildroot.net/results/6ee18e7dd17f168c52f79e49cb5e94cf3aa3df1a/

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
---
 package/perl-net-ssh2/Config.in        | 8 +++++++-
 package/perl-net-ssh2/perl-net-ssh2.mk | 4 ++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/package/perl-net-ssh2/Config.in b/package/perl-net-ssh2/Config.in
index 8f359b7015..4dfd6e1dd3 100644
--- a/package/perl-net-ssh2/Config.in
+++ b/package/perl-net-ssh2/Config.in
@@ -1,12 +1,18 @@
 config BR2_PACKAGE_PERL_NET_SSH2
 	bool "perl-net-ssh2"
 	depends on !BR2_STATIC_LIBS
-	select BR2_PACKAGE_LIBSSH2
+	depends on BR2_PACKAGE_LIBSSH2_OPENSSL || BR2_PACKAGE_LIBSSH2_LIBGCRYPT
 	select BR2_PACKAGE_ZLIB
 	help
 	  Support for the SSH 2 protocol via libssh2.
 
+	  Note: only the OpenSSL and Libgcrypt backends of libssh2 are
+	  supported.
+
 	  https://metacpan.org/release/Net-SSH2
 
 comment "perl-net-ssh2 needs a toolchain w/ dynamic library"
 	depends on BR2_STATIC_LIBS
+
+comment "perl-net-ssh2 needs libssh2 with OpenSSL or Libgcrypt backend"
+	depends on !(BR2_PACKAGE_LIBSSH2_OPENSSL || BR2_PACKAGE_LIBSSH2_LIBGCRYPT)
diff --git a/package/perl-net-ssh2/perl-net-ssh2.mk b/package/perl-net-ssh2/perl-net-ssh2.mk
index 77d39edef5..ebd5803826 100644
--- a/package/perl-net-ssh2/perl-net-ssh2.mk
+++ b/package/perl-net-ssh2/perl-net-ssh2.mk
@@ -15,4 +15,8 @@ PERL_NET_SSH2_CONF_OPTS += \
 	lib="$(STAGING_DIR)/usr/lib" \
 	inc="$(STAGING_DIR)/usr/include"
 
+ifeq ($(BR2_PACKAGE_LIBSSH2_LIBGCRYPT),y)
+PERL_NET_SSH2_CONF_OPTS += gcrypt
+endif
+
 $(eval $(perl-package))
-- 
2.16.4

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

* [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes
  2018-07-23 20:06 [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas De Schampheleire
                   ` (2 preceding siblings ...)
  2018-07-23 20:06 ` [Buildroot] [PATCH 3/3] perl-net-ssh2: add support for libgcrypt crypto backend Thomas De Schampheleire
@ 2018-07-25 21:04 ` Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-07-25 21:04 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 23 Jul 2018 22:06:25 +0200, Thomas De Schampheleire wrote:

> Thomas De Schampheleire (3):
>   perl-net-ssh2: add missing dependency on zlib
>   perl-net-ssh2: avoid build system inspecting host paths
>   perl-net-ssh2: add support for libgcrypt crypto backend

All three patches applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2018-07-25 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 20:06 [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas De Schampheleire
2018-07-23 20:06 ` [Buildroot] [PATCH 1/3] perl-net-ssh2: add missing dependency on zlib Thomas De Schampheleire
2018-07-23 20:06 ` [Buildroot] [PATCH 2/3] perl-net-ssh2: avoid build system inspecting host paths Thomas De Schampheleire
2018-07-23 20:06 ` [Buildroot] [PATCH 3/3] perl-net-ssh2: add support for libgcrypt crypto backend Thomas De Schampheleire
2018-07-25 21:04 ` [Buildroot] [PATCH 0/3] perl-net-ssh2 fixes Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox