unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: 35941@debbugs.gnu.org
Subject: bug#35941: Newt installer failure when wifi name is #f
Date: Tue, 28 May 2019 12:00:42 +0200	[thread overview]
Message-ID: <87blzmkiet.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87sgsz9bv8.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

Mathieu Othacehe <m.othacehe@gmail.com> writes:

> Hey Pierre,
>
> You can find the backtrace in /tmp/last-installer-error file.
>
> About the bug itself, it has been reported here:
> https://issues.guix.gnu.org/issue/35622
>
> Both patches seems fine to me,

As Danny pointed out, my connman patch might not work.

> but I'd like to understand why the regex
> fails. Could you run this command and report the result:
>
> --8<---------------cut here---------------start------------->8---
> for s in $(connmanctl services | cut -c 25- | grep wifi) ; do connmanctl service $s ; done
> --8<---------------cut here---------------end--------------->8---

It doesn't know `connmanctl service` :/

Anyways, `connmanctl services | cut -c 25-` makes it clear.  This one
line is different:

--8<---------------cut here---------------start------------->8---
G wifi_d...
--8<---------------cut here---------------end--------------->8---

In full:

--8<---------------cut here---------------start------------->8---
# connmanctl services

boitealternative_2.4G wifi_d...
--8<---------------cut here---------------end--------------->8---

The "cut -c ..." is not what you want because connman does not truncate
the wifi name at column 25.

If all you want is the last string, maybe the following would work
better:

--8<---------------cut here---------------start------------->8---
for s in $(connmanctl services | awk '{print $NF}'); do ...
--8<---------------cut here---------------end--------------->8---

Cheers!

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2019-05-28 10:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28  8:59 bug#35941: Newt installer failure when wifi name is #f Pierre Neidhardt
2019-05-28  9:15 ` Danny Milosavljevic
2019-05-28  9:46   ` Pierre Neidhardt
2019-05-28  9:17 ` Mathieu Othacehe
2019-05-28 10:00   ` Pierre Neidhardt [this message]
2019-05-28 10:02   ` Pierre Neidhardt
2019-05-28 15:19 ` Ludovic Courtès
2019-05-28 17:51   ` Pierre Neidhardt
2019-05-29  7:50     ` Mathieu Othacehe
2019-05-29  9:03       ` Ludovic Courtès
2019-05-29  9:46         ` bug#35620: " Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blzmkiet.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=35941@debbugs.gnu.org \
    --cc=m.othacehe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).