How to test code changes for NetworkManager-openconnect

I’m trying to test out changes I’ve made to the NetworkManager-openconnect codebase. I’ve made some changes to the code, compiled them and installed (using make install).

I’m on Ubuntu 24.04 and I’ve uninstalled the packages network-manager-openconnect and network-manager-openconnect-gnome. Now I want to use my compiled changes instead. How can I do this? It doesn’t seem to be automatically picked up, so I’m missing options in the New VPN Dialog in Gnome.

Guess: you installed into the default installation prefix /usr/local instead of /usr? You will probably need to build with --prefix=/usr for your plugins to be noticed.

(Of course, installing into /usr on a non-throwaway system is highly inadvisable, so consider doing this via Debian packaging instead of doing so directly.)

Yes, I did not configure --prefix. I did now, however, it still not showing up even though I’ve reloaded NetworkManager.

Steps i’ve taken:

  1. ./autogen.sh
  2. ./configure --with-gtk4 --prefix=/usr
  3. make
  4. sudo make install
  5. sudo systemctl restart NetworkManager.service

Any ideas?

I’m curious about the Debian packaging. I’ll investigate myself, but please if you have a moment, could you give me pointers?

Not sure if it was correct but I copied the debian directory from .obs to the root of the project. Pretty sure that’s not correct, but changing libwebkit2gtk-4.0-dev to libwebkit2gtk-4.1-dev in all the files and then running dpkg-buildpackage -us -uc in the root created the deb files in the directory under root (i.e. outside the directory).

I could install these and the option showed up in the GNOME VPN Manager! :smiley:

I’ll test my changes soon.

What is the correct process when building the deb files?

Here’s the first merge request Add hostname to response to fix Cisco auth (!593) · Merge requests · OpenConnect VPN projects / OpenConnect · GitLab
Yes, it’s not for the GNOME project, but it is first of two. One for the GNOME project.

Here’s the second merge request Add Version String Option (!72) · Merge requests · GNOME / NetworkManager-openconnect · GitLab
I need some help with the localization parts.