summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-02 07:37:59 +0100
committerThomas Haller <thaller@redhat.com>2020-01-07 13:17:47 +0100
commitd964decbbd925b1cc8fa2eafe03678253db33ac8 (patch)
tree053081608f23f9f464fba55ef33c6c7475435430 /po
parent7bbccab4f207fb3aa59cf8aa56fa029f3d74a3d9 (diff)
downloadNetworkManager-d964decbbd925b1cc8fa2eafe03678253db33ac8.tar.gz
libnm/keyfile: build keyfile code as separate GPL licensed internal library
Keyfile support was initially added under GPL-2.0+ license as part of core. It was moved to "libnm-core" in commit 59eb5312a5d6 ('keyfile: merge branch 'th/libnm-keyfile-bgo744699''). "libnm-core" is statically linked with by core and "libnm". In the former case under terms of GPL-2.0+ (good) and in the latter case under terms of LGPL-2.1+ (bad). In fact, to this day, "libnm" doesn't actually use the code. The linker will probably remove all the GPL-2.0+ symbols when compiled with gc-sections or LTO. Still, linking them together in the first place makes "libnm" only available under GPL code (despite the code not actually being used). Instead, move the GPL code to a separate static library "shared/nm-keyfile/libnm-keyfile.la" and only link it to the part that actually uses the code (and which is GPL licensed too). This fixes the license violation. Eventually, it would be very useful to be able to expose keyfile handling via "libnm". However that is not straight forward due to the licensing conflict. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/381
Diffstat (limited to 'po')
-rw-r--r--po/POTFILES.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0279f865fa..d48d92a00e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -56,8 +56,6 @@ libnm-core/nm-crypto-gnutls.c
libnm-core/nm-crypto-nss.c
libnm-core/nm-connection.c
libnm-core/nm-dbus-utils.c
-libnm-core/nm-keyfile-utils.c
-libnm-core/nm-keyfile.c
libnm-core/nm-setting-6lowpan.c
libnm-core/nm-setting-8021x.c
libnm-core/nm-setting-adsl.c
@@ -138,6 +136,8 @@ libnm/nm-vpn-plugin-old.c
libnm/nm-vpn-service-plugin.c
data/org.freedesktop.NetworkManager.policy.in.in
shared/nm-glib-aux/nm-shared-utils.c
+shared/nm-keyfile/nm-keyfile-utils.c
+shared/nm-keyfile/nm-keyfile.c
shared/nm-libnm-core-aux/nm-libnm-core-aux.c
src/NetworkManagerUtils.c
src/main.c