From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/3] gnutls: add support for openssl compatibility
Date: Mon, 27 Jan 2014 10:48:19 +0100 [thread overview]
Message-ID: <20140127094819.GC14916@pengutronix.de> (raw)
In-Reply-To: <1390655905-29427-2-git-send-email-alex.aring@gmail.com>
On Sat, Jan 25, 2014 at 02:18:24PM +0100, Alexander Aring wrote:
> This patch adds a openssl compatibility option to gnutls and install the
> gnutls openssl compatibility library if enabled.
>
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> ---
> There are two issues and I am not sure if it's still okay.
> 1:
> Packages which needs GNUTLS_OPENSSL need to select GNUTLS and GNUTLS_OPENSSL.
> Is there a way to select GNUTLS if GNUTLS_OPENSSL is selected? I get some
> trouble if I make a select GNUTLS in GNUTLS_OPENSSL because the if GNUTLS
> above.
We have that elsewhere as well. It's just not possible with kconfig.
> 2:
> The default is to generate the gnutls openssl compatibility library but this
> wasn't installed before. Now the default is --disable--openssl-compatibility
> and only install the library if it enabled. I think this should not make
> trouble in other package which used gnutls.
Hmm, you've added a dependency to openssl here. So I assume, that the
default is to build it _if_ openssl is available, right?
Anyways, It doesn't make the situation worse, so the options is just fine
as it is.
> rules/gnutls.in | 15 +++++++++++++--
> rules/gnutls.make | 5 +++++
> 2 files changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/rules/gnutls.in b/rules/gnutls.in
> index 10a181e..3a5bd3a 100644
> --- a/rules/gnutls.in
> +++ b/rules/gnutls.in
> @@ -1,10 +1,11 @@
> ## SECTION=networking
>
> -config GNUTLS
> +menuconfig GNUTLS
> tristate
> select LIBGCRYPT
> select LIBTASN1
> - prompt "gnutls"
> + select OPENSSL if GNUTLS_OPENSSL
> + prompt "gnutls "
> help
> GnuTLS is a secure communications library implementing the SSL,
> TLS and DTLS protocols and technologies around them.
> @@ -13,3 +14,13 @@ config GNUTLS
> APIs to parse and write X.509, PKCS #12, OpenPGP and other required
> structures. It is aimed to be portable and efficient with focus on
> security and interoperability.
> +
> +if GNUTLS
> +
> +config GNUTLS_OPENSSL
> + bool
> + prompt "openssl compatibility"
> + help
> + Enables the OpenSSL compatibility support.
> +
> +endif
> diff --git a/rules/gnutls.make b/rules/gnutls.make
> index b64a36c..08923ae 100644
> --- a/rules/gnutls.make
> +++ b/rules/gnutls.make
> @@ -38,6 +38,7 @@ GNUTLS_CONF_OPT := \
> --with-libgcrypt \
> --with-libgcrypt-prefix=$(PTXDIST_SYSROOT_TARGET)/usr \
> --without-p11-kit \
> + --$(call ptx/endis, PTXCONF_GNUTLS_OPENSSL)-openssl-compatibility \
> --disable-guile
>
> # ----------------------------------------------------------------------------
> @@ -55,6 +56,10 @@ $(STATEDIR)/gnutls.targetinstall:
>
> @$(call install_lib, gnutls, 0, 0, 0644, libgnutls)
>
> +ifdef PTXCONF_GNUTLS_OPENSSL
> + @$(call install_lib, gnutls, 0, 0, 0644, libgnutls-openssl)
> +endif
> +
> @$(call install_finish, gnutls)
>
> @$(call touch)
> --
> 1.8.5.3
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2014-01-27 9:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 13:18 [ptxdist] [PATCH 1/3] inetutils: add misiing depends on !BUSYBOX_TFTPD Alexander Aring
2014-01-25 13:18 ` [ptxdist] [PATCH 2/3] gnutls: add support for openssl compatibility Alexander Aring
2014-01-27 9:48 ` Michael Olbrich [this message]
2014-01-27 10:06 ` Alexander Aring
2014-01-25 13:18 ` [ptxdist] [PATCH 3/3] iputils: add new package iputils Alexander Aring
2014-01-25 13:49 ` Robert Schwebel
2014-01-25 13:54 ` Alexander Aring
2014-01-25 14:00 ` Robert Schwebel
2014-01-25 14:01 ` Alexander Aring
2014-01-25 13:48 ` [ptxdist] [PATCH 1/3] inetutils: add misiing depends on !BUSYBOX_TFTPD Robert Schwebel
2014-01-25 13:50 ` Alexander Aring
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=20140127094819.GC14916@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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