* [Buildroot] [PATCH] package/network-manager: support libnss instead of gnutls
@ 2022-05-27 11:36 John Keeping
2022-09-18 20:54 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: John Keeping @ 2022-05-27 11:36 UTC (permalink / raw)
To: buildroot; +Cc: John Keeping
NetworkManager supports compiling against either NSS or GnuTLS and in
fact upstream defaults to NSS if both are available and no choice is
specified. Providing a choice can shrink images slightly if some other
package is already pulling in NSS but GnuTLS is not otherwise required.
Since a crypto provider is required and to maintain backwards
compatibility, select GnuTLS when NSS is not selected.
In keeping with the upstream default, choose NSS when both libraries are
available.
Signed-off-by: John Keeping <john@metanate.com>
---
package/network-manager/Config.in | 2 +-
package/network-manager/network-manager.mk | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/package/network-manager/Config.in b/package/network-manager/Config.in
index 1370c81c9c..36bde4a297 100644
--- a/package/network-manager/Config.in
+++ b/package/network-manager/Config.in
@@ -10,7 +10,7 @@ config BR2_PACKAGE_NETWORK_MANAGER
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_WCHAR # libglib2
select BR2_PACKAGE_DBUS
- select BR2_PACKAGE_GNUTLS
+ select BR2_PACKAGE_GNUTLS if !BR2_PACKAGE_LIBNSS
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBNDP
help
diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
index 81d6eedf0f..e87b0e3c7a 100644
--- a/package/network-manager/network-manager.mk
+++ b/package/network-manager/network-manager.mk
@@ -9,7 +9,7 @@ NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).4
NETWORK_MANAGER_SOURCE = NetworkManager-$(NETWORK_MANAGER_VERSION).tar.xz
NETWORK_MANAGER_SITE = https://download.gnome.org/sources/NetworkManager/$(NETWORK_MANAGER_VERSION_MAJOR)
NETWORK_MANAGER_INSTALL_STAGING = YES
-NETWORK_MANAGER_DEPENDENCIES = host-pkgconf udev gnutls libglib2 \
+NETWORK_MANAGER_DEPENDENCIES = host-pkgconf udev libglib2 \
host-intltool libndp
NETWORK_MANAGER_LICENSE = GPL-2.0+ (app), LGPL-2.1+ (libnm)
NETWORK_MANAGER_LICENSE_FILES = COPYING COPYING.LGPL CONTRIBUTING.md
@@ -30,7 +30,6 @@ NETWORK_MANAGER_CONF_OPTS = \
--disable-tests \
--disable-qt \
--disable-more-warnings \
- --with-crypto=gnutls \
--with-iptables=/usr/sbin/iptables \
--disable-ifupdown \
--without-nm-cloud-setup
@@ -71,6 +70,14 @@ else
NETWORK_MANAGER_CONF_OPTS += --disable-concheck
endif
+ifeq ($(BR2_PACKAGE_LIBNSS),y)
+NETWORK_MANAGER_DEPENDENCIES += libnss
+NETWORK_MANAGER_CONF_OPTS += --with-crypto=nss
+else
+NETWORK_MANAGER_DEPENDENCIES += gnutls
+NETWORK_MANAGER_CONF_OPTS += --with-crypto=gnutls
+endif
+
ifeq ($(BR2_PACKAGE_LIBPSL),y)
NETWORK_MANAGER_DEPENDENCIES += libpsl
NETWORK_MANAGER_CONF_OPTS += --with-libpsl
--
2.36.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/network-manager: support libnss instead of gnutls
2022-05-27 11:36 [Buildroot] [PATCH] package/network-manager: support libnss instead of gnutls John Keeping
@ 2022-09-18 20:54 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2022-09-18 20:54 UTC (permalink / raw)
To: John Keeping; +Cc: buildroot
>>>>> "John" == John Keeping <john@metanate.com> writes:
> NetworkManager supports compiling against either NSS or GnuTLS and in
> fact upstream defaults to NSS if both are available and no choice is
> specified. Providing a choice can shrink images slightly if some other
> package is already pulling in NSS but GnuTLS is not otherwise required.
> Since a crypto provider is required and to maintain backwards
> compatibility, select GnuTLS when NSS is not selected.
> In keeping with the upstream default, choose NSS when both libraries are
> available.
> Signed-off-by: John Keeping <john@metanate.com>
Sorry for the slow response. In the mean time the network-manager
package has moved to meson, so I rewrote the patch to use the meson
equivalent and committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-18 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27 11:36 [Buildroot] [PATCH] package/network-manager: support libnss instead of gnutls John Keeping
2022-09-18 20:54 ` Peter Korsgaard
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.