mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/network-manager: make crypto library optional
The network-manager package currently pulls in either gnutls or libnss, neither of which are very common and it might be the only reason why they are present on a system. However, most of NetworkManager works just fine without any cryptography support, it only seems to be used in test cases and 802.1X support code. Remove the dependency but use a library if it is present. Note that this changes the default behavior. If network-manager was the only package pulling in gnutls, it won't do this anymore and use the "null" backend. Add a note about this to the manual. Signed-off-by: Florian Larysch <fl@n621.de> Tested-by: Marcus Hoffmann <buildroot@bubu1.eu> Reviewed-by: Marcus Hoffmann <buildroot@bubu1.eu> [Marcus: Change buildroot version to 2026.02 in migrating.adoc] Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
committed by
Marcus Hoffmann
parent
130b5a124c
commit
7aa2c23f42
@@ -242,3 +242,8 @@ If you want to provide such libraries either:
|
||||
- Serve it by adding the library to your overlay.
|
||||
- Install the libraries from your project with NPM and bundle with a JavaScript
|
||||
bundler.
|
||||
|
||||
In 2026.02, the network-manager package stopped selecting the gnutls package as
|
||||
a cryptography backend automatically. Manually enable the gnutls or libnss
|
||||
package if you require features that depend on a cryptography backend, such as
|
||||
certificate-based authentication.
|
||||
|
||||
@@ -10,7 +10,6 @@ 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 if !BR2_PACKAGE_LIBNSS
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBNDP
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
|
||||
@@ -80,9 +80,11 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
||||
NETWORK_MANAGER_DEPENDENCIES += libnss
|
||||
NETWORK_MANAGER_CONF_OPTS += -Dcrypto=nss
|
||||
else
|
||||
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
NETWORK_MANAGER_DEPENDENCIES += gnutls
|
||||
NETWORK_MANAGER_CONF_OPTS += -Dcrypto=gnutls
|
||||
else
|
||||
NETWORK_MANAGER_CONF_OPTS += -Dcrypto=null
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPSL),y)
|
||||
|
||||
Reference in New Issue
Block a user