diff options
| -rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for-libgcrypt.patch | 41 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.6.bb | 10 |
2 files changed, 48 insertions, 3 deletions
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 0000000000..bb95eaaa47 --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-add-pkg-config-for-libgcrypt.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From a9261fee4a41045c42e0d292237cee532e11982c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Adrian <adrian.freihofer@gmail.com> | ||
| 3 | Date: Thu, 27 Nov 2014 15:43:26 +0100 | ||
| 4 | Subject: [PATCH] add pkg config for libgcrypt | ||
| 5 | |||
| 6 | --- | ||
| 7 | configure.ac | 18 +++++++----------- | ||
| 8 | 1 file changed, 7 insertions(+), 11 deletions(-) | ||
| 9 | |||
| 10 | diff --git a/configure.ac b/configure.ac | ||
| 11 | index 94b0758..654a015 100644 | ||
| 12 | --- a/configure.ac | ||
| 13 | +++ b/configure.ac | ||
| 14 | @@ -480,17 +480,13 @@ if test x"$ac_crypto" = xnss; then | ||
| 15 | with_nss=yes | ||
| 16 | elif test x"$ac_crypto" = xgnutls; then | ||
| 17 | PKG_CHECK_MODULES(GNUTLS, [gnutls >= 1.2]) | ||
| 18 | - AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no) | ||
| 19 | - if test x"$LIBGCRYPT_CONFIG" = xno; then | ||
| 20 | - AC_MSG_ERROR([gnutls explicitly requested but gcrypt not found on system]) | ||
| 21 | - else | ||
| 22 | - AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have libgnutls]) | ||
| 23 | - LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` | ||
| 24 | - LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` | ||
| 25 | - AC_SUBST(LIBGCRYPT_CFLAGS) | ||
| 26 | - AC_SUBST(LIBGCRYPT_LIBS) | ||
| 27 | - with_gnutls=yes | ||
| 28 | - fi | ||
| 29 | + AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have libgnutls]) | ||
| 30 | + PKG_CHECK_MODULES(LIBGCRYPT, [libgcrypt >= 1.1.42], [ | ||
| 31 | + AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.]) | ||
| 32 | + with_gnutls=yes | ||
| 33 | + ], [ | ||
| 34 | + AC_MSG_ERROR([gnutls explicitly requested but gcrypt not found on system]) | ||
| 35 | + ]) | ||
| 36 | else | ||
| 37 | AC_MSG_ERROR([Please choose either 'nss' or 'gnutls' for certificate and crypto operations]) | ||
| 38 | fi | ||
| 39 | -- | ||
| 40 | 1.9.1 | ||
| 41 | |||
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 afe5eb82a7..de1d34035e 100644 --- a/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.6.bb +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.6.bb | |||
| @@ -7,13 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b \ | |||
| 7 | file://docs/api/html/license.html;md5=51d7fb67bde992e58533a8481cee070b \ | 7 | file://docs/api/html/license.html;md5=51d7fb67bde992e58533a8481cee070b \ |
| 8 | " | 8 | " |
| 9 | 9 | ||
| 10 | DEPENDS = "libnl dbus dbus-glib libgudev wireless-tools nss util-linux libndp" | 10 | DEPENDS = "libnl dbus dbus-glib libgudev wireless-tools util-linux libndp" |
| 11 | 11 | ||
| 12 | inherit gnomebase gettext systemd | 12 | inherit gnomebase gettext systemd |
| 13 | 13 | ||
| 14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
| 15 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ | 15 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ |
| 16 | file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ | 16 | file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ |
| 17 | file://0002-add-pkg-config-for-libgcrypt.patch \ | ||
| 17 | " | 18 | " |
| 18 | SRC_URI[md5sum] = "00f5f9ec69725a9f9b99366853c6f73e" | 19 | SRC_URI[md5sum] = "00f5f9ec69725a9f9b99366853c6f73e" |
| 19 | SRC_URI[sha256sum] = "38ea002403e3b884ffa9aae25aea431d2a8420f81f4919761c83fb92648254bd" | 20 | SRC_URI[sha256sum] = "38ea002403e3b884ffa9aae25aea431d2a8420f81f4919761c83fb92648254bd" |
| @@ -26,7 +27,6 @@ EXTRA_OECONF = " \ | |||
| 26 | --disable-ifnet \ | 27 | --disable-ifnet \ |
| 27 | --disable-ifcfg-suse \ | 28 | --disable-ifcfg-suse \ |
| 28 | --with-netconfig \ | 29 | --with-netconfig \ |
| 29 | --with-crypto=nss \ | ||
| 30 | --disable-more-warnings \ | 30 | --disable-more-warnings \ |
| 31 | --with-dhclient=${base_sbindir}/dhclient \ | 31 | --with-dhclient=${base_sbindir}/dhclient \ |
| 32 | --with-iptables=${sbindir}/iptables \ | 32 | --with-iptables=${sbindir}/iptables \ |
| @@ -34,7 +34,9 @@ EXTRA_OECONF = " \ | |||
| 34 | --with-dnsmasq=${bindir}/dnsmasq \ | 34 | --with-dnsmasq=${bindir}/dnsmasq \ |
| 35 | " | 35 | " |
| 36 | 36 | ||
| 37 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}" | 37 | PACKAGECONFIG ??= "nss \ |
| 38 | ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)} \ | ||
| 39 | " | ||
| 38 | PACKAGECONFIG[systemd] = " \ | 40 | PACKAGECONFIG[systemd] = " \ |
| 39 | --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \ | 41 | --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \ |
| 40 | --without-systemdsystemunitdir, \ | 42 | --without-systemdsystemunitdir, \ |
| @@ -46,6 +48,8 @@ PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,cons | |||
| 46 | PACKAGECONFIG[concheck] = "--with-libsoup=yes,--with-libsoup=no,libsoup-2.4" | 48 | PACKAGECONFIG[concheck] = "--with-libsoup=yes,--with-libsoup=no,libsoup-2.4" |
| 47 | PACKAGECONFIG[modemmanager] = "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager" | 49 | PACKAGECONFIG[modemmanager] = "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager" |
| 48 | PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp" | 50 | PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp" |
| 51 | PACKAGECONFIG[nss] = "--with-crypto=nss,,nss" | ||
| 52 | PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls libgcrypt" | ||
| 49 | 53 | ||
| 50 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests ${PN}-bash-completion" | 54 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests ${PN}-bash-completion" |
| 51 | 55 | ||
