emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#35941: closed (Newt installer failure when wifi na


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#35941: closed (Newt installer failure when wifi name is #f)
Date: Wed, 29 May 2019 09:47:07 +0000

Your message dated Wed, 29 May 2019 11:46:04 +0200
with message-id <address@hidden>
and subject line Re: bug#35941: Newt installer failure when wifi name is #f
has caused the debbugs.gnu.org bug report #35941,
regarding Newt installer failure when wifi name is #f
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
35941: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35941
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Newt installer failure when wifi name is #f Date: Tue, 28 May 2019 10:59:04 +0200
I've tried the installer today and it failed at the wifi selection,
printing a stack trace which allowed me to investigate.  Since I could
not save it (shouldn't we dump it to a file by the way?), I've noted
down the following, roughly:

--8<---------------cut here---------------start------------->8---
In /gnu/installer/newt/wifi.scm:
  204: (run-wifi-page)
       (filter ...:145 (service)...
       (#<<service> name: "foo" type: "wifi" path: "wifi_d..." ...)
  147: (_ #<<service name: #f ...)
       (string-null? #f)
--8<---------------cut here---------------end--------------->8---

Apparently it fails because a wifi service name is #f.

I can think of two fixes (untested).  In wifi.scm:

--8<---------------cut here---------------start------------->8---
@@ -144,6 +144,7 @@ of <service-item> records present in LISTBOX."
   (let ((services (connman-services)))
     (filter (lambda (service)
               (and (string=? (service-type service) "wifi")
+                   (service-name service)
                    (not (string-null? (service-name service)))))
             services)))
--8<---------------cut here---------------end--------------->8---
 
Or, more directly in connman.scm:

--8<---------------cut here---------------start------------->8---
@@ -108,7 +108,8 @@
 (define-record-type* <service>
   service make-service
   service?
-  (name            service-name) ; string
+  (name            service-name
+                   (default ""))
   (type            service-type) ; string
   (path            service-path) ; string
   (strength        service-strength) ; integer
--8<---------------cut here---------------end--------------->8---

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#35941: Newt installer failure when wifi name is #f Date: Wed, 29 May 2019 11:46:04 +0200 User-agent: mu4e 1.2.0; emacs 26.2
> LGTM!  (Please add a “Fixes …” line to the commit log for future
> reference.)

Done and pushed.

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]