[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#862883: Port from libnm-glib/libnm-util to libnm



Source: kde-runtime
Version: 4:16.08.3-2
Severity: normal
User: pkg-utopia-maintainers@lists.alioth.debian.org
Usertags: libnm

Hi,

the libnm-glib/libnm-util libraries have been deprecated upstream in
favour of libnm.

Your package declares a Build-Depends on network-manager-dev and
libnm-util-dev.

>From a cursory glance this is is used in
solid-networkstatus/kded/CMakeLists.txt
and in solid-networkstatus/kded/networkmanagerstatus.cpp, which uses the
NetworkManager.h header file for a couple of defines and the
NM_CHECK_VERSION macro.


Please consider porting this over to libnm.
libnm provides an API similar to libnm-glib/libnm-util [1], specifically
for your case it also provides NetworkManager.h, just under a different
path. You can get the correct include paths by using pkg-config and
libnm.pc.

Since libnm was introduced in network-manager 1.0, you can also drop the
explicit version checks in networkmanagerstatus.cpp via
NM_CHECK_VERSION(0,8,992) and simply assume you have a version >= 1.0.

Regards,
Michael

[1] https://developer.gnome.org/libnm/stable/


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information


Reply to: