GNU bug report logs - #62496
For network-manager-applet's nm-connection-editor, libnma needs to be installed

Previous Next

Package: guix;

Reported by: "P. p. phalantha" <ningyuan.sg <at> gmail.com>

Date: Tue, 28 Mar 2023 07:17:03 UTC

Severity: important

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62496 in the body.
You can then email your comments to 62496 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#62496; Package guix. (Tue, 28 Mar 2023 07:17:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "P. p. phalantha" <ningyuan.sg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 28 Mar 2023 07:17:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "P. p. phalantha" <ningyuan.sg <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: For network-manager-applet's nm-connection-editor,
 libnma needs to be installed
Date: Mon, 27 Mar 2023 18:19:12 +0000
[Message part 1 (text/plain, inline)]
Hi all,

I was trying to add a WPA/WPA2 Enterprise (PEAP w/ CA cert) network via
nm-connection-editor. However, each time I finished the form and clicked
"Save," nm-connection-editor would crash and the network would consequently
not be saved.

Invoking nm-connection-editor from the command line and repeating these
steps gave the informative error message:

```
(nm-connection-editor:1751): GLib-GIO-ERROR **: 02:02:58.502: Settings
schema 'org.gnome.nm-applet.eap' is not installed
Trace/breakpoint trap
```

I found a fix via the installation of libnma, thanks to a 2012 thread on
LinuxQuestions.org:
https://www.linuxquestions.org/questions/slackware-14/network-manager-applet-1-16-0-i586-1-package-is-missing-%27org-gnome-nm-applet%27-schema-4175670946/.
After the installation of libnma I was able to successfully add the network.

I understand libnma is already a dependency of nm-connection-editor. I do
not know enough to say why it has to be additionally installed separately,
but I hope someone else does. The steps to reproduce is in the first
paragraph above.

Best regards,
Ning
[Message part 2 (text/html, inline)]

Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 29 Mar 2023 13:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#62496; Package guix. (Wed, 29 Mar 2023 13:38:01 GMT) Full text and rfc822 format available.

Message #10 received at 62496 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "P. p. phalantha" <ningyuan.sg <at> gmail.com>
Cc: 62496 <at> debbugs.gnu.org
Subject: Re: bug#62496: For network-manager-applet's nm-connection-editor,
 libnma needs to be installed
Date: Wed, 29 Mar 2023 15:37:37 +0200
[Message part 1 (text/plain, inline)]
Hello,

"P. p. phalantha" <ningyuan.sg <at> gmail.com> skribis:

> Invoking nm-connection-editor from the command line and repeating these
> steps gave the informative error message:
>
> ```
> (nm-connection-editor:1751): GLib-GIO-ERROR **: 02:02:58.502: Settings
> schema 'org.gnome.nm-applet.eap' is not installed
> Trace/breakpoint trap
> ```
>
> I found a fix via the installation of libnma, thanks to a 2012 thread on
> LinuxQuestions.org:
> https://www.linuxquestions.org/questions/slackware-14/network-manager-applet-1-16-0-i586-1-package-is-missing-%27org-gnome-nm-applet%27-schema-4175670946/.
> After the installation of libnma I was able to successfully add the network.

I experienced this problem just today and your bug report was helpful!

Actually, both libnma and network-manager-applet provide the relevant
schema file, but they’re different:

--8<---------------cut here---------------start------------->8---
$ find $(guix build libnma) -name \*nm-applet\*
/gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
$ diff -u /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
--- /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
+++ /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <schemalist>
-  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="nm-applet">
+  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="libnma">
     <key name="disable-connected-notifications" type="b">
       <default>false</default>
       <summary>Disable connected notifications</summary>
@@ -37,4 +37,16 @@
       <description>Set to FALSE to disable displaying the applet in the notification area.</description>
     </key>
   </schema>
+  <schema id="org.gnome.nm-applet.eap">
+    <key name="ignore-ca-cert" type="b">
+      <default>false</default>
+      <summary>Ignore CA certificate</summary>
+      <description>Set this to true to disable warnings about CA certificates in EAP authentication.</description>
+    </key>
+    <key name="ignore-phase2-ca-cert" type="b">
+      <default>false</default>
+      <summary>Ignore CA certificate</summary>
+      <description>Set this to true to disable warnings about CA certificates in phase 2 of EAP authentication.</description>
+    </key>
+  </schema>
 </schemalist>
--8<---------------cut here---------------end--------------->8---

The one in libnma has the extra “.eap” thing.

The attached hack works, but it looks like something’s wrong, maybe
related to <https://issues.guix.gnu.org/62513>?

Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 0efb98b97c..aac847710d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8921,9 +8921,18 @@ (define-public network-manager-applet
                 "1lswxfxjfbiknspwli8d65i0bnyfazzcnrqckaw0s44zkm7bh5lm"))))
     (build-system meson-build-system)
     (arguments
-     `(#:glib-or-gtk? #t
-       #:configure-flags
-       '("-Dappindicator=yes")))
+     (list #:glib-or-gtk? #t
+           #:configure-flags #~'("-Dappindicator=yes")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'copy-gsettings-schema
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (define schema
+                     "share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml")
+
+                   (delete-file (string-append #$output "/" schema))
+                   (symlink (search-input-file inputs schema)
+                            (string-append #$output "/" schema)))))))
     (native-inputs
      (list gettext-minimal
            `(,glib "bin") ; for glib-compile-resources, etc.

Information forwarded to bug-guix <at> gnu.org:
bug#62496; Package guix. (Thu, 30 Mar 2023 20:12:02 GMT) Full text and rfc822 format available.

Message #13 received at 62496 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: "P. p. phalantha" <ningyuan.sg <at> gmail.com>, 62496 <at> debbugs.gnu.org
Subject: Re: bug#62496: For network-manager-applet's nm-connection-editor,
 libnma needs to be installed
Date: Thu, 30 Mar 2023 16:11:44 -0400
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello,
>
> "P. p. phalantha" <ningyuan.sg <at> gmail.com> skribis:
>
>> Invoking nm-connection-editor from the command line and repeating these
>> steps gave the informative error message:
>>
>> ```
>> (nm-connection-editor:1751): GLib-GIO-ERROR **: 02:02:58.502: Settings
>> schema 'org.gnome.nm-applet.eap' is not installed
>> Trace/breakpoint trap
>> ```
>>
>> I found a fix via the installation of libnma, thanks to a 2012 thread on
>> LinuxQuestions.org:
>> https://www.linuxquestions.org/questions/slackware-14/network-manager-applet-1-16-0-i586-1-package-is-missing-%27org-gnome-nm-applet%27-schema-4175670946/.
>> After the installation of libnma I was able to successfully add the network.
>
> I experienced this problem just today and your bug report was helpful!
>
> Actually, both libnma and network-manager-applet provide the relevant
> schema file, but they’re different:
>
> $ find $(guix build libnma) -name \*nm-applet\*
> /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
> $ diff -u /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
> --- /gnu/store/9hl2p2xzlkkwibankp8604ngha880yn2-network-manager-applet-1.30.0/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
> +++ /gnu/store/hh0mq79nqhcwkpx7v68dibcv9lbha7sn-libnma-1.10.2/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml	1970-01-01 01:00:01.000000000 +0100
> @@ -1,6 +1,6 @@
>  <?xml version="1.0" encoding="UTF-8"?>
>  <schemalist>
> -  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="nm-applet">
> +  <schema id="org.gnome.nm-applet" path="/org/gnome/nm-applet/" gettext-domain="libnma">
>      <key name="disable-connected-notifications" type="b">
>        <default>false</default>
>        <summary>Disable connected notifications</summary>
> @@ -37,4 +37,16 @@
>        <description>Set to FALSE to disable displaying the applet in the notification area.</description>
>      </key>
>    </schema>
> +  <schema id="org.gnome.nm-applet.eap">
> +    <key name="ignore-ca-cert" type="b">
> +      <default>false</default>
> +      <summary>Ignore CA certificate</summary>
> +      <description>Set this to true to disable warnings about CA certificates in EAP authentication.</description>
> +    </key>
> +    <key name="ignore-phase2-ca-cert" type="b">
> +      <default>false</default>
> +      <summary>Ignore CA certificate</summary>
> +      <description>Set this to true to disable warnings about CA certificates in phase 2 of EAP authentication.</description>
> +    </key>
> +  </schema>
>  </schemalist>
>
> The one in libnma has the extra “.eap” thing.
>
> The attached hack works, but it looks like something’s wrong, maybe
> related to <https://issues.guix.gnu.org/62513>?
>
> Ludo’.
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 0efb98b97c..aac847710d 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -8921,9 +8921,18 @@ (define-public network-manager-applet
>                  "1lswxfxjfbiknspwli8d65i0bnyfazzcnrqckaw0s44zkm7bh5lm"))))
>      (build-system meson-build-system)
>      (arguments
> -     `(#:glib-or-gtk? #t
> -       #:configure-flags
> -       '("-Dappindicator=yes")))
> +     (list #:glib-or-gtk? #t
> +           #:configure-flags #~'("-Dappindicator=yes")
> +           #:phases
> +           #~(modify-phases %standard-phases
> +               (add-after 'install 'copy-gsettings-schema
> +                 (lambda* (#:key inputs #:allow-other-keys)
> +                   (define schema
> +                     "share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml")
> +
> +                   (delete-file (string-append #$output "/" schema))
> +                   (symlink (search-input-file inputs schema)
> +                            (string-append #$output "/" schema)))))))
>      (native-inputs
>       (list gettext-minimal
>             `(,glib "bin") ; for glib-compile-resources, etc.
>

I've reverted to the previously working version on master, but we should
figure out what's up with this change in recent releases.  It may affect
1.42 as well (which is supposedly the current stable release).

Leaving this open.  Thanks for investigating.

-- 
Thanks,
Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#62496; Package guix. (Thu, 04 May 2023 08:06:03 GMT) Full text and rfc822 format available.

Message #16 received at 62496 <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>, Ludovic Courtès <ludo <at> gnu.org>
Cc: "P. p. phalantha" <ningyuan.sg <at> gmail.com>, 62496 <at> debbugs.gnu.org
Subject: Re: bug#62496: For network-manager-applet's nm-connection-editor,
 libnma needs to be installed
Date: Thu, 04 May 2023 10:05:25 +0200
[Message part 1 (text/plain, inline)]
Hi everyone,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> I've reverted to the previously working version on master, but we should
> figure out what's up with this change in recent releases.  It may affect
> 1.42 as well (which is supposedly the current stable release).
>
> Leaving this open.  Thanks for investigating.

The patchset I sent in [1] should resolve this, I've been happily
running with it.

[1] mid:cover.1682758525.git.dev <at> jpoiret.xyz
    (https://issues.guix.gnu.org/issue/63154#msgid-6cdf50a2776493d030c9afd84b73edd1a9f1fa05)
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sun, 07 May 2023 13:11:02 GMT) Full text and rfc822 format available.

Notification sent to "P. p. phalantha" <ningyuan.sg <at> gmail.com>:
bug acknowledged by developer. (Sun, 07 May 2023 13:11:02 GMT) Full text and rfc822 format available.

Message #21 received at 62496-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Josselin Poiret <dev <at> jpoiret.xyz>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 "P. p. phalantha" <ningyuan.sg <at> gmail.com>, 62496-done <at> debbugs.gnu.org
Subject: Re: bug#62496: For network-manager-applet's nm-connection-editor,
 libnma needs to be installed
Date: Sun, 07 May 2023 09:09:53 -0400
Hi,

Josselin Poiret <dev <at> jpoiret.xyz> writes:

> Hi everyone,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
>> I've reverted to the previously working version on master, but we should
>> figure out what's up with this change in recent releases.  It may affect
>> 1.42 as well (which is supposedly the current stable release).
>>
>> Leaving this open.  Thanks for investigating.
>
> The patchset I sent in [1] should resolve this, I've been happily
> running with it.

Installed, thank you!

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 05 Jun 2023 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.