Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/2] libssh2: add support for new package libssh2
Date: Fri, 30 Aug 2013 06:55:21 +0300	[thread overview]
Message-ID: <20130830035521.GX3773@tarshish> (raw)
In-Reply-To: <1377815546-3125-2-git-send-email-rjbarnet@rockwellcollins.com>

Hi Ryan,

On Thu, Aug 29, 2013 at 05:32:25PM -0500, Ryan Barnett wrote:
> Adding new package - libssh2 - under
> Target packages > Libraries > Crypto > libssh2
> 
> libssh2 is a client-side C library implementing the SSH2 protocol.
> 
> For more information on this package - see their website:
> http://www.libssh2.org/
> 
> Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
> ---

[...]

> +# libssh2 must use either libgcrypt or OpenSSL
> +ifeq ($(BR2_PACKAGE_OPENSSL),y)
> +LIBSSH2_DEPENDENCIES += openssl
> +LIBSSH2_CONF_OPT += --with-openssl --without-libgcrypt
> +endif

You should probably use 'else' here. What if both BR2_PACKAGE_OPENSSL and 
BR2_PACKAGE_LIBGCRYPT ares selected? You end up with

LIBSSH2_CONF_OPT ~= --with-openssl --without-libgcrypt --with-libgcrypt \
    --without-openssl

which is not what you want. You might also want to reverse the order since 
libgcrypt is considered the default.

baruch

> +ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
> +LIBSSH2_DEPENDENCIES += libgcrypt
> +LIBSSH2_CONF_OPT += --with-libgcrypt --without-openssl
> +endif
> +
> +# Add zlib support if enabled
> +ifeq ($(BR2_PACKAGE_ZLIB),y)
> +LIBSSH2_DEPENDENCIES += zlib
> +LIBSSH2_CONF_OPT += --with-libz
> +else
> +LIBSSH2_CONF_OPT += --without-libz
> +endif
> +
> +$(eval $(autotools-package))

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2013-08-30  3:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 22:32 [Buildroot] [PATCH v2 0/2] Add support for libssh2 in buildroot Ryan Barnett
2013-08-29 22:32 ` [Buildroot] [PATCH v2 1/2] libssh2: add support for new package libssh2 Ryan Barnett
2013-08-30  3:55   ` Baruch Siach [this message]
2013-08-29 22:32 ` [Buildroot] [PATCH v2 2/2] libcurl: add support for compiling with libssh2 Ryan Barnett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130830035521.GX3773@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox