From unknown Sun Jun 22 11:41:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34249@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154879144520890 (code B ref -1); Tue, 29 Jan 2019 19:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2019 19:50:45 +0000 Received: from localhost ([127.0.0.1]:50839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZPB-0005Qs-8m for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZP8-0005Qf-NH for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:39611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goZP3-0008Ru-DJ for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP1-0005jc-K2 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goZP0-0008Pq-V8 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:35 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:33446 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP0-0008P7-PM for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:34 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 9957316AB0 for ; Tue, 29 Jan 2019 19:50:32 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 54ed99a9 for ; Tue, 29 Jan 2019 19:50:31 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 19:50:31 +0000 Message-Id: <20190129195031.21496-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.71.249.129 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Often guix package will report something like the following when performi= ng operations, for example: guix package -i hello ... building /gnu/store/wiwqmbi66gcr27dac3qqgrc8imyp1344-profile.drv... -117 packages in profile Now there aren't -117 packages in this profile, it's just the spinner run= ning in to the output from Guix package. I'm not sure if this is a proper solu= tion for this issue, but it does work. * guix/scripts/package.scm (build-and-use-profile): Erase the spinner bef= ore output. --- guix/scripts/package.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index a633d2ee6d..4db0e72e9b 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -159,6 +159,7 @@ hooks\" run when building the profile." (switch-symlinks profile (basename name)) (unless (string=3D? profile %current-profile) (register-gc-root store name)) + (display "\r") ; erase the spinner (format #t (N_ "~a package in profile~%" "~a packages in profile~%" count) --=20 2.20.1 From unknown Sun Jun 22 11:41:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 34249@debbugs.gnu.org Received: via spool by 34249-submit@debbugs.gnu.org id=B34249.154879301323301 (code B ref 34249); Tue, 29 Jan 2019 20:17:01 +0000 Received: (at 34249) by debbugs.gnu.org; 29 Jan 2019 20:16:53 +0000 Received: from localhost ([127.0.0.1]:50860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZoT-00063l-1L for submit@debbugs.gnu.org; Tue, 29 Jan 2019 15:16:53 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:43042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZoR-00063d-Ck for 34249@debbugs.gnu.org; Tue, 29 Jan 2019 15:16:51 -0500 Received: from localhost (178.113.197.111.wireless.dyn.drei.com [178.113.197.111]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 673633360A52; Tue, 29 Jan 2019 21:16:49 +0100 (CET) Date: Tue, 29 Jan 2019 21:16:45 +0100 From: Danny Milosavljevic Message-ID: <20190129211645.08cdbd2d@scratchpost.org> In-Reply-To: <20190129195031.21496-1-mail@cbaines.net> References: <20190129195031.21496-1-mail@cbaines.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/+_25j54UL0uNnK5L8QuMW7w"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/+_25j54UL0uNnK5L8QuMW7w Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Christopher, > diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm > index a633d2ee6d..4db0e72e9b 100644 > --- a/guix/scripts/package.scm > +++ b/guix/scripts/package.scm > @@ -159,6 +159,7 @@ hooks\" run when building the profile." > (switch-symlinks profile (basename name)) > (unless (string=3D? profile %current-profile) > (register-gc-root store name)) > + (display "\r") ; erase the spinner In order to actually erase it, might want to do (display "\r\x1b[K") instea= d. --Sig_/+_25j54UL0uNnK5L8QuMW7w Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxQtK0ACgkQ5xo1VCww uqVntQf/Tx5FHuumIXxvv3wmKU1JMmmO9phMtvxc+JRDPSdERRhEvw+feEz/OY/9 AxUp62UbsJJQAxswu0XH9rrun2pqK8/Jz7K96WHXZWmXbIIRijn64z3nPXfT32WN q/w6+bkgvYyJ9+rQkXBXRFfBTgQD9EbQ/2sf0dvpGNHMOuF6bFsbBVE87fZeEHAU YzjKOWX10cb1oh5WRExYQgIhRRiXxFbVs9FTmp1oqcPIQ2DuDIF6cTG2aGfnTbSL 8fxIWPi1npSSr/t9KUgWIVTBWtFtBX6DbfBG+gUvBnc3r0LOtptcTCl1v8Yee17e YMPq2mlZGsgFRTppvejc9irte66Y5g== =wSMA -----END PGP SIGNATURE----- --Sig_/+_25j54UL0uNnK5L8QuMW7w-- From unknown Sun Jun 22 11:41:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 22:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Cc: Christopher Baines , 33470@debbugs.gnu.org, 34249@debbugs.gnu.org Received: via spool by 34249-submit@debbugs.gnu.org id=B34249.15488019708338 (code B ref 34249); Tue, 29 Jan 2019 22:47:04 +0000 Received: (at 34249) by debbugs.gnu.org; 29 Jan 2019 22:46:10 +0000 Received: from localhost ([127.0.0.1]:50945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goc8w-0002A1-7M for submit@debbugs.gnu.org; Tue, 29 Jan 2019 17:46:10 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:34952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goc8s-00027J-F9; Tue, 29 Jan 2019 17:46:08 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CD75C8F64; Tue, 29 Jan 2019 23:46:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DsW5Ihxx24Wj; Tue, 29 Jan 2019 23:46:05 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id A6FC95E5A; Tue, 29 Jan 2019 23:46:04 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190129195031.21496-1-mail@cbaines.net> <20190129211645.08cdbd2d@scratchpost.org> Date: Tue, 29 Jan 2019 23:46:03 +0100 In-Reply-To: <20190129211645.08cdbd2d@scratchpost.org> (Danny Milosavljevic's message of "Tue, 29 Jan 2019 21:16:45 +0100") Message-ID: <8736pbm6ac.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Danny Milosavljevic skribis: > Hi Christopher, >> diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm >> index a633d2ee6d..4db0e72e9b 100644 >> --- a/guix/scripts/package.scm >> +++ b/guix/scripts/package.scm >> @@ -159,6 +159,7 @@ hooks\" run when building the profile." >> (switch-symlinks profile (basename name)) >> (unless (string=3D? profile %current-profile) >> (register-gc-root store name)) >> + (display "\r") ; erase the spinner > > In order to actually erase it, might want to do (display "\r\x1b[K") inst= ead. And to do that, you can use (erase-current-line port). Though actually I think this should be done in =E2=80=98print-build-event= =E2=80=99 in (guix status). Probably something like the patch below, but I haven=E2=80= =99t been able to quickly reproduce the initial problem. Could you give it a spin (ah ha!) and report back? If it doesn=E2=80=99t solve the issue, we should strace the thing to see wh= y it keeps spinning after everything is =E2=80=9Cdone=E2=80=9D basically. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/status.scm b/guix/status.scm index e3375816c5..7a330525b0 100644 --- a/guix/status.scm +++ b/guix/status.scm @@ -465,8 +465,14 @@ addition to build events." (_ (spin! port)))))) - (unless print-log? - (display "\r" port)) ;erase the spinner + (define erase-current-line* + (if (isatty?* port) + (lambda (port) + (erase-current-line port) + (force-output port)) + (const #t))) + + (erase-current-line* port) ;clear the spinner (match event (('build-started drv . _) (let ((properties (derivation-properties --=-=-=-- From unknown Sun Jun 22 11:41:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christopher Baines Subject: bug#34249: closed (Re: [bug#34249] [PATCH] guix package: Avoid spinner at end of output.) Message-ID: References: <87o97p5a6w.fsf@cbaines.net> <20190129195031.21496-1-mail@cbaines.net> X-Gnu-PR-Message: they-closed 34249 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 34249@debbugs.gnu.org Date: Wed, 06 Feb 2019 13:17:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1549459023-10505-1" This is a multi-part message in MIME format... ------------=_1549459023-10505-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34249: [PATCH] guix package: Avoid spinner at end of output. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34249@debbugs.gnu.org. --=20 34249: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34249 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1549459023-10505-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34249-done) by debbugs.gnu.org; 6 Feb 2019 13:16:29 +0000 Received: from localhost ([127.0.0.1]:34137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grN40-0002i5-PL for submit@debbugs.gnu.org; Wed, 06 Feb 2019 08:16:29 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:37292 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grN3w-0002ho-H0; Wed, 06 Feb 2019 08:16:25 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 1204816BBB; Wed, 6 Feb 2019 13:16:24 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id e30ea1e8; Wed, 6 Feb 2019 13:16:23 +0000 (UTC) References: <20190129195031.21496-1-mail@cbaines.net> <20190129211645.08cdbd2d@scratchpost.org> <8736pbm6ac.fsf@gnu.org> User-agent: mu4e 1.0; emacs 26.1 From: Christopher Baines To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. In-reply-to: <8736pbm6ac.fsf@gnu.org> Date: Wed, 06 Feb 2019 13:16:23 +0000 Message-ID: <87o97p5a6w.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34249-done Cc: 34249-done@debbugs.gnu.org, 33470-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Danny Milosavljevic skribis: > >> Hi Christopher, >>> diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm >>> index a633d2ee6d..4db0e72e9b 100644 >>> --- a/guix/scripts/package.scm >>> +++ b/guix/scripts/package.scm >>> @@ -159,6 +159,7 @@ hooks\" run when building the profile." >>> (switch-symlinks profile (basename name)) >>> (unless (string=3D? profile %current-profile) >>> (register-gc-root store name)) >>> + (display "\r") ; erase the spinner >> >> In order to actually erase it, might want to do (display "\r\x1b[K") ins= tead. > > And to do that, you can use (erase-current-line port). > > Though actually I think this should be done in =E2=80=98print-build-event= =E2=80=99 in > (guix status). Probably something like the patch below, but I haven=E2= =80=99t > been able to quickly reproduce the initial problem. > > Could you give it a spin (ah ha!) and report back? > > If it doesn=E2=80=99t solve the issue, we should strace the thing to see = why it > keeps spinning after everything is =E2=80=9Cdone=E2=80=9D basically. > > Thanks, > Ludo=E2=80=99. > > diff --git a/guix/status.scm b/guix/status.scm > index e3375816c5..7a330525b0 100644 > --- a/guix/status.scm > +++ b/guix/status.scm > @@ -465,8 +465,14 @@ addition to build events." > (_ > (spin! port)))))) > > - (unless print-log? > - (display "\r" port)) ;erase the spinner > + (define erase-current-line* > + (if (isatty?* port) > + (lambda (port) > + (erase-current-line port) > + (force-output port)) > + (const #t))) > + > + (erase-current-line* port) ;clear the spinner > (match event > (('build-started drv . _) > (let ((properties (derivation-properties I've tried out the change you pushed here [1], and it looks good to me :) I can't see anything odd in the output now. 1: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D7473bce207af8463= 12d5167a398f5f20bbf3e896 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlxa3idfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XcCKg//UcAy3A+7uwHp/2CeCUdXeDldJWZhDeDIcIs+sw8dRbz49GCsyaWdZSDm +1qBkE3rB94dffrrcsZbnDQWYy8kM6QtDb4nU7dIz5lz5FVeU6oYwXihSpFEx3BK F4/gL+414ts9qonjJ+1bId+Mh0LEX6J0LosWvqwZfqgJVftsFMytoiPPsFyrZMzX UyONnu6kBewgv3LYVIp2XyHgTjPUUx6Pfbvj4d7UY9jzx4+O7iFx1pdesGMNaVlG g0Kcu0nrX1JpoLBbJ1SVfxdQ+1oyjgJFEtINmnlJC94WNeANi+l+hjpYUNXSmUPz ZEV8EDRWvFh4xm4RlWWMU/dblKkalu7qEItRYthA1nQgSfbEe0O2Dg7R17LMXd96 9ebwzSZ15CwpylU9e/b8Ga+tvTBJDthxZejs/YRWq0tYHTHdyrewz+A9PpMiw3Vb Bs8UTCaco+KwqDVf9Fk21WS+OhxSap9zum3rEG1IK9dBLq+wfv+IQSWFX4RNBpBu bhH/uHASLYoWMmf5FOhQrGlht91DUd859G+fEagaMUMJaxhtVjnGRi5/Ru3ZPHil AlXM6xfRZ2m9fJux/n76rtS6WNO9ZIWFpTsleFWh3gr9fFCQtrPYyjaWSRLNP/qa PzgX2TaoNxgcIFGq5GIyEtGbEhlAdF3Udqoap9pdZV+GCUkdOvY= =b28M -----END PGP SIGNATURE----- --=-=-=-- ------------=_1549459023-10505-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Jan 2019 19:50:45 +0000 Received: from localhost ([127.0.0.1]:50839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZPB-0005Qs-8m for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZP8-0005Qf-NH for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:39611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goZP3-0008Ru-DJ for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP1-0005jc-K2 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goZP0-0008Pq-V8 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:35 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:33446 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP0-0008P7-PM for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:34 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 9957316AB0 for ; Tue, 29 Jan 2019 19:50:32 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 54ed99a9 for ; Tue, 29 Jan 2019 19:50:31 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] guix package: Avoid spinner at end of output. Date: Tue, 29 Jan 2019 19:50:31 +0000 Message-Id: <20190129195031.21496-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.71.249.129 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Often guix package will report something like the following when performi= ng operations, for example: guix package -i hello ... building /gnu/store/wiwqmbi66gcr27dac3qqgrc8imyp1344-profile.drv... -117 packages in profile Now there aren't -117 packages in this profile, it's just the spinner run= ning in to the output from Guix package. I'm not sure if this is a proper solu= tion for this issue, but it does work. * guix/scripts/package.scm (build-and-use-profile): Erase the spinner bef= ore output. --- guix/scripts/package.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index a633d2ee6d..4db0e72e9b 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -159,6 +159,7 @@ hooks\" run when building the profile." (switch-symlinks profile (basename name)) (unless (string=3D? profile %current-profile) (register-gc-root store name)) + (display "\r") ; erase the spinner (format #t (N_ "~a package in profile~%" "~a packages in profile~%" count) --=20 2.20.1 ------------=_1549459023-10505-1-- From unknown Sun Jun 22 11:41:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Feb 2019 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 34249-done@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , 33470-done@debbugs.gnu.org Received: via spool by 34249-done@debbugs.gnu.org id=D34249.154946354925658 (code D ref 34249); Wed, 06 Feb 2019 14:33:02 +0000 Received: (at 34249-done) by debbugs.gnu.org; 6 Feb 2019 14:32:29 +0000 Received: from localhost ([127.0.0.1]:34195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grOFY-0006fl-VO for submit@debbugs.gnu.org; Wed, 06 Feb 2019 09:32:29 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grOFX-0006fa-J1; Wed, 06 Feb 2019 09:32:28 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549463535; cv=none; d=zoho.com; s=zohoarc; b=Z3o9O9gpMO8JXLfmkheJulN0Phh2+22xL5R2Gd7ChnEHQRARUPHxF5LUVv1ebNX/i94+ZTXqnh5sd7tMR6PX1z2DfDIsSnl66qDfiwjHdHkYULTfooQxc08EvX5Lih3qwwW1a3YGRS/puujcF93OdKyT/5ORnD8agz3sMsugnHM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549463535; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=Ug+gvd/vWTDFVw22TFRaQcNi3ikcKlU3QRwnqMDoeBY=; b=jE2mUIu1SDAhlGLLjJ4IpCXj1JMfjGAXlw+MYiFRihVAgNzbizfkBkcSekSXDT0efEJAfp805Ie1WmivnIUgERDs1C4CldztEj+WiOEcaL3JJHMlsxxFDfC/fV943RlNAzJkpFiTczXyF2+WJlkAUthsuK30CZlQg2hm0ITkGbg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549463535; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=595; bh=Ug+gvd/vWTDFVw22TFRaQcNi3ikcKlU3QRwnqMDoeBY=; b=fBeVFYQ7N9OKAvJiWr8KpFuDH8QP/Iqk1p2J67ixBfQHmImr3rq4rTGvAZJuW+hv TAZiadyfLqFbAnqf9ms3+QWFau4FyrzljKUvXnakqafTahkBl2TuYOKGVvdxVnpf47j TivLrVfVZbYpHFIVtN8edwjtwhSaKruyB7GUyGDQ= Received: from localhost (141.80.247.165 [141.80.247.165]) by mx.zohomail.com with SMTPS id 1549463533027111.06160771795749; Wed, 6 Feb 2019 06:32:13 -0800 (PST) References: <20190129195031.21496-1-mail@cbaines.net> <20190129211645.08cdbd2d@scratchpost.org> <8736pbm6ac.fsf@gnu.org> <87o97p5a6w.fsf@cbaines.net> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus In-reply-to: <87o97p5a6w.fsf@cbaines.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 06 Feb 2019 15:32:09 +0100 Message-ID: <87zhr9f0nq.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Christopher Baines writes: > I've tried out the change you pushed here [1], and it looks good to me > :) I can't see anything odd in the output now. > > 1: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D7473bce207af84= 6312d5167a398f5f20bbf3e896 With this change I see that there are now two empty lines between =E2=80=9Cdownloading=E2=80=9D lines. The updating line flickers, too. I wonder if maybe too much is deleted. I can=E2=80=99t give specifics, but= it did seem a little weird when I observed the output on my i686 machine. -- Ricardo From unknown Sun Jun 22 11:41:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] bug#33470: bug#34249: [PATCH] guix package: Avoid spinner at end of output. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 16:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: 33470-done@debbugs.gnu.org, 34249-done@debbugs.gnu.org, Christopher Baines , 33470@debbugs.gnu.org Received: via spool by 34249-done@debbugs.gnu.org id=D34249.154955577113231 (code D ref 34249); Thu, 07 Feb 2019 16:10:04 +0000 Received: (at 34249-done) by debbugs.gnu.org; 7 Feb 2019 16:09:31 +0000 Received: from localhost ([127.0.0.1]:38563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grmF1-0003RF-Bb for submit@debbugs.gnu.org; Thu, 07 Feb 2019 11:09:31 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:40836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grmEy-0003Qr-Oh; Thu, 07 Feb 2019 11:09:29 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 34501CDBB; Thu, 7 Feb 2019 17:09:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qHxKboyxzN-5; Thu, 7 Feb 2019 17:09:26 +0100 (CET) Received: from ribbon (unknown [IPv6:2001:660:6102:320:e120:2c8f:8909:cdfe]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 38092CDB9; Thu, 7 Feb 2019 17:09:26 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190129195031.21496-1-mail@cbaines.net> <20190129211645.08cdbd2d@scratchpost.org> <8736pbm6ac.fsf@gnu.org> <87o97p5a6w.fsf@cbaines.net> <87zhr9f0nq.fsf@elephly.net> Date: Thu, 07 Feb 2019 17:09:25 +0100 In-Reply-To: <87zhr9f0nq.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 06 Feb 2019 15:32:09 +0100") Message-ID: <87r2cj37ii.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi! Ricardo Wurmus skribis: > Christopher Baines writes: > >> I've tried out the change you pushed here [1], and it looks good to me >> :) I can't see anything odd in the output now. >> >> 1: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D7473bce207af8= 46312d5167a398f5f20bbf3e896 > > With this change I see that there are now two empty lines between > =E2=80=9Cdownloading=E2=80=9D lines. The updating line flickers, too. > > I wonder if maybe too much is deleted. I can=E2=80=99t give specifics, b= ut it > did seem a little weird when I observed the output on my i686 machine. Indeed, I noticed it too. I believe that 024d5275c5cd72c0121b4f70d64c63f859a68f17 fixes it. Let me know! Thanks, Ludo=E2=80=99.