From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#35941: Newt installer failure when wifi name is #f Date: Tue, 28 May 2019 12:00:42 +0200 Message-ID: <87blzmkiet.fsf@ambrevar.xyz> References: <87h89fj6p3.fsf@ambrevar.xyz> <87sgsz9bv8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYvj-0008Oj-OD for bug-guix@gnu.org; Tue, 28 May 2019 06:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYvi-000809-M9 for bug-guix@gnu.org; Tue, 28 May 2019 06:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVYvi-0007zx-Il for bug-guix@gnu.org; Tue, 28 May 2019 06:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVYvi-00060r-DL for bug-guix@gnu.org; Tue, 28 May 2019 06:02:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:43952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYud-0007IA-Gj for bug-guix@gnu.org; Tue, 28 May 2019 06:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYuY-0006ah-IM for bug-guix@gnu.org; Tue, 28 May 2019 06:00:55 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:58005) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVYuY-0006XV-CL for bug-guix@gnu.org; Tue, 28 May 2019 06:00:50 -0400 In-Reply-To: <87sgsz9bv8.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mathieu Othacehe Cc: 35941@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Mathieu Othacehe 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: =2D-8<---------------cut here---------------start------------->8--- G wifi_d... =2D-8<---------------cut here---------------end--------------->8--- In full: =2D-8<---------------cut here---------------start------------->8--- # connmanctl services boitealternative_2.4G wifi_d... =2D-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: =2D-8<---------------cut here---------------start------------->8--- for s in $(connmanctl services | awk '{print $NF}'); do ... =2D-8<---------------cut here---------------end--------------->8--- Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlztBsoACgkQm9z0l6S7 zH+ZIggAlcus89s4CiuY3fjcUgRmVZxOi/CmoTOgL86Awj0YqO3bwh5Q31fnR16T GG6M8g8chlXzfoAdyo0Z4eHKsakuAl8TOlnjlbwWqXbNZFP8GxpVoGw20L1RNsAK C3AOV3AdNilspegyehHIqV57sAobZOe7r6IOL2qlHlps21ft3ieIavD0Z04X0yKs B3hBGzeQZPVDQ4t0sqkHTIgQGs0WBgIwVAqA/VJSThc2tM11N7EBf1NdPMKBx3/m IDMVtQTmCNLXt409lvjk9pYWnWWznhKU4DdsD+aeEnFq6+1sNJEHEvjnEoQJ4clf lxQbW5hpE8tVcRi16EQLdSOKKMZVgA== =pPdg -----END PGP SIGNATURE----- --=-=-=--