All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Adrian Freihofer <adrian.freihofer@gmail.com>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH V2 07/17] networkmanager: support gnutls and nss
Date: Wed, 18 Nov 2015 08:33:20 +0100	[thread overview]
Message-ID: <CA+chaQf8ZY2=RF_vjMf_G+DUnW4vVAVkU9+Cw91KpmK9u72k-w@mail.gmail.com> (raw)
In-Reply-To: <1447796692.2296.21.camel@gmail.com>

OK, will apply both fix-ups before next jenkins build.

On Tue, Nov 17, 2015 at 10:44 PM, Adrian Freihofer <
adrian.freihofer@gmail.com> wrote:

> On Mon, 2015-11-16 at 22:34 +0100, Martin Jansa wrote:
> > On Wed, Nov 11, 2015 at 08:48:10PM +0100, Adrian Freihofer wrote:
> > > Signed-off-by: Adrian Freihofer <adrian.freihofer@gmail.com>
> > > ---
> > >  .../0002-add-pkg-config-for-libgcrypt.patch        | 41
> ++++++++++++++++++++++
> > >  .../networkmanager/networkmanager_1.0.6.bb         | 14 ++++++--
> > >  2 files changed, 52 insertions(+), 3 deletions(-)
> > >  create mode 100644
> meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for
> > > -libgcrypt.patch
> > >
> > > diff --git
> a/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for-libgcrypt.patch
> > >
> b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for-libgcrypt.patch
> > > new file mode 100644
> > > index 0000000..bb95eaa
> > > --- /dev/null
> > > +++
> b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for-libgcrypt.patch
> > > @@ -0,0 +1,41 @@
> > > +From a9261fee4a41045c42e0d292237cee532e11982c Mon Sep 17 00:00:00 2001
> > > +From: Adrian <adrian.freihofer@gmail.com>
> > > +Date: Thu, 27 Nov 2014 15:43:26 +0100
> > > +Subject: [PATCH] add pkg config for libgcrypt
> > > +
> > > +---
> > > + configure.ac | 18 +++++++-----------
> > > + 1 file changed, 7 insertions(+), 11 deletions(-)
> > > +
> > > +diff --git a/configure.ac b/configure.ac
> > > +index 94b0758..654a015 100644
> > > +--- a/configure.ac
> > > ++++ b/configure.ac
> > > +@@ -480,17 +480,13 @@ if test x"$ac_crypto" = xnss; then
> > > +   with_nss=yes
> > > + elif test x"$ac_crypto" = xgnutls; then
> > > +   PKG_CHECK_MODULES(GNUTLS, [gnutls >= 1.2])
> > > +-  AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
> > > +-  if test x"$LIBGCRYPT_CONFIG" = xno; then
> > > +-    AC_MSG_ERROR([gnutls explicitly requested but gcrypt not found
> on system])
> > > +-  else
> > > +-    AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have libgnutls])
> > > +-    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
> > > +-    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
> > > +-    AC_SUBST(LIBGCRYPT_CFLAGS)
> > > +-    AC_SUBST(LIBGCRYPT_LIBS)
> > > +-    with_gnutls=yes
> > > +-  fi
> > > ++  AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have libgnutls])
> > > ++  PKG_CHECK_MODULES(LIBGCRYPT, [libgcrypt >= 1.1.42], [
> > > ++      AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is
> available.])
> > > ++      with_gnutls=yes
> > > ++    ], [
> > > ++      AC_MSG_ERROR([gnutls explicitly requested but gcrypt not found
> on system])
> > > ++    ])
> > > + else
> > > +   AC_MSG_ERROR([Please choose either 'nss' or 'gnutls' for
> certificate and crypto operations])
> > > + fi
> > > +--
> > > +1.9.1
> > > +
> > > diff --git a/meta-oe/recipes-connectivity/networkmanager/
> networkmanager_1.0.6.bb b/meta-oe/recipes
> > > -connectivity/networkmanager/networkmanager_1.0.6.bb
> > > index d529b4a..3a59f83 100644
> > > --- a/meta-oe/recipes-connectivity/networkmanager/
> networkmanager_1.0.6.bb
> > > +++ b/meta-oe/recipes-connectivity/networkmanager/
> networkmanager_1.0.6.bb
> > > @@ -6,13 +6,14 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=cbbffd568227ada506640fe950a4823b \
> > >
> file://libnm-util/COPYING;md5=1c4fa765d6eb3cd2fbd84344a1b816cd \
> > >
> file://docs/api/html/license.html;md5=51d7fb67bde992e58533a8481cee070b"
> > >
> > > -DEPENDS = "libnl dbus dbus-glib libgudev wireless-tools nss
> util-linux libndp"
> > > +DEPENDS = "libnl dbus dbus-glib libgudev wireless-tools util-linux
> libndp"
> > >
> > >  inherit gnomebase gettext systemd
> > >
> > >  SRC_URI = " \
> > >
> ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz
> \
> > >
> file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \
> > > +    file://0002-add-pkg-config-for-libgcrypt.patch \
> > >  "
> > >
> > >  SRC_URI[md5sum] = "00f5f9ec69725a9f9b99366853c6f73e"
> > > @@ -26,7 +27,6 @@ EXTRA_OECONF = " \
> > >      --disable-ifnet \
> > >      --disable-ifcfg-suse \
> > >      --with-netconfig \
> > > -    --with-crypto=nss \
> > >      --disable-more-warnings \
> > >      --with-dhclient=${base_sbindir}/dhclient \
> > >      --with-iptables=${sbindir}/iptables \
> > > @@ -34,7 +34,13 @@ EXTRA_OECONF = " \
> > >      --with-dnsmasq=${bindir}/dnsmasq \
> > >  "
> > >
> > > -PACKAGECONFIG ??=
> "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}"
> > > +# If you need a different configuration for networkmanager, add lines
> similar to
> > > +# the following example to your local.conf or distro config
> > > +# PACKAGECONFIG_remove_pn-networkmanager = "nss"
> > > +# PACKAGECONFIG_append_pn-networkmanager = " gnutls modemmanager ppp"
> > > +PACKAGECONFIG ??= "nss \
> > > +
> ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}
> \
> > > +"
> > >  PACKAGECONFIG[systemd] = " \
> > >      --with-systemdsystemunitdir=${systemd_unitdir}/system
> --with-session-tracking=systemd --enable-polkit, \
> > >      --without-systemdsystemunitdir, \
> > > @@ -46,6 +52,8 @@ PACKAGECONFIG[bluez5] =
> "--enable-bluez5-dun,--disable-bluez5-dun,bluez5"
> > >  PACKAGECONFIG[concheck] =
> "--with-libsoup=yes,--with-libsoup=no,libsoup-2.4"
> > >  PACKAGECONFIG[modemmanager] =
> "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager"
> > >  PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp"
> > > +PACKAGECONFIG[nss] = "--with-crypto=nss,,nss"
> >
> > won't it detect nss when available in sysroot?
>
> Why is nss available in sysroot if not because of networkmanager depends
> on it?
>
> >
> > > +PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls
> libgcrypt,gnutls libgcrypt"
> >
> > Why do you need to add gnutls and libgcrypt manually to RDEPENDS?
>
> Your are right. Should be:
> +PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls libgcrypt"
> May you apply another fixup for me? (Sorry, I can't see a way how I could
> do this task.)
>
> >
> > >
> > >  PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests
> ${PN}-bash-completion"
> > >
> > > --
> > > 2.4.3
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


  reply	other threads:[~2015-11-18  7:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 19:48 [meta-oe][PATCH V2 00/17] network/modemmanager updates Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 01/17] libqmi: update to 1.12.6 Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 02/17] modemmanager: Update to 1.4.12 Adrian Freihofer
2015-11-16 21:23   ` Martin Jansa
2015-11-18 14:33     ` Martin Jansa
2015-11-11 19:48 ` [meta-oe][PATCH V2 03/17] modemmanager: Add PACKAGECONFIGs Adrian Freihofer
2015-11-16 21:23   ` Martin Jansa
2015-11-17 21:29     ` Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 04/17] modemmanager: add dbus config Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 05/17] modemmanager: Start always Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 06/17] networkmanager: Update to 1.0.6 Adrian Freihofer
2015-11-16 21:29   ` Martin Jansa
2015-11-11 19:48 ` [meta-oe][PATCH V2 07/17] networkmanager: support gnutls and nss Adrian Freihofer
2015-11-16 21:34   ` Martin Jansa
2015-11-17 21:44     ` Adrian Freihofer
2015-11-18  7:33       ` Martin Jansa [this message]
2015-11-11 19:48 ` [meta-oe][PATCH V2 08/17] networkmanager: add fedora bugfix patches Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 09/17] networkmanager: Add package for nmtui Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 10/17] networkmanager: run dispatcher Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 11/17] networkmanager: PACKAGECONFIG for ifupdown netconfig Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 12/17] networkmanager: PACKAGECONFIG for dhclient Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 13/17] networkmanager: PACKAGECONFIG for dnsmasq Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 14/17] networkmanager: PACKAGECONFIG for wifi Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 15/17] networkmanager: package for adsl plugin Adrian Freihofer
2015-11-11 19:56   ` Martin Jansa
2015-11-11 19:48 ` [meta-oe][PATCH V2 16/17] networkmanager: use bluetooth from distro Adrian Freihofer
2015-11-11 19:48 ` [meta-oe][PATCH V2 17/17] networkmanager: add openvpn plugin Adrian Freihofer

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='CA+chaQf8ZY2=RF_vjMf_G+DUnW4vVAVkU9+Cw91KpmK9u72k-w@mail.gmail.com' \
    --to=martin.jansa@gmail.com \
    --cc=adrian.freihofer@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 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.