delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/21/11:56:10

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46LFuAqZ2088170
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vEDqS7sO
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 598E43858424
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1721577369;
bh=FfZ4xJharMt74He+Qd9cMHtOWdRHsrxwxbFw/+cKI3w=;
h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=vEDqS7sOM5Ff8eMrR2qT3RUGe7Cgil9EIGvpb+NhqVx+YyRyGnz3D4Jau8i/OwOv9
qdmDjSBakqN0xsbfZ6ueEU/5jQ/Vc+n3D5ya23EwaFuiyJh3U0gDf1rRC3VJGYnxkW
u3qyoSzU8AFb1gTi/6ufVQRqfqfJyBrPQk1G6dBI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42CAF386075D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42CAF386075D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721577311; cv=none;
b=THXdiDsQEJA/NywGT1zRPbH+JRA6eUqRYcRRMwYPJQaXzrp1F5ESXiaWhXNWCbqfYID1DQbYCBtK6DrUB1eY5WszciptpzuRB6aCBNMeqqFgJdqAy1y4/sSQ9yXQ7L5KifVBwGquUmeTWH3g+Pcku3fTplDbohMLfKnDPKH9aII=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1721577311; c=relaxed/simple;
bh=uHuWliDuTH+DKYOcZdZbI6lwOXg/DFxHHnJvwPVrloQ=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=hf2SOvgj5sUHc6U43wSZznvpNzYpix/NJGUrT4CD1gxnzp47J6so1CnNayzVgJ95CbBAmop7FYBhicui95Ii+N7kMm7NjzG4Buh1G5Sp2gCYxZvV3GHFfFSJFIcYgmqJH7bMjMJRQehKx1iqKF9z+jbPdopX/9kghjCDqc3lJ4E=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-SNCR-Rigid: 669441A600CFFE0D
X-Originating-IP: [86.143.43.103]
X-OWM-Source-IP: 86.143.43.103
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeftddrheehgdelhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhvegjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeevvdekgfffteetueehgfdugefgkeevleejudduheevuedtveejfeevvdevvdfgvdenucfkphepkeeirddugeefrdegfedruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtlegnpdhinhgvthepkeeirddugeefrdegfedruddtfedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopegurghvihgusehtrghrihguvghsrdgtohhmpdhrvghvkffrpehhohhsthekiedqudegfedqgeefqddutdefrdhrrghnghgvkeeiqddugeefrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhurhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfep
ifeupdfovfetjfhoshhtpegsthhprhgurhhgohdttdek
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-VadeSecure-score: verdict=clean score=0/300, class=clean
Message-ID: <93d297e5-1896-4a66-9d6e-a8b87b9b1cd0@dronecode.org.uk>
Date: Sun, 21 Jul 2024 16:55:06 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Aborting Cygwin setup in unattended modes
To: David Allsopp <david AT tarides DOT com>
References: <CAJQQdJgYG-4LP4gJ-4mmy8gk3yD9CY8wThn=RRBod7uRFi-GAA AT mail DOT gmail DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <CAJQQdJgYG-4LP4gJ-4mmy8gk3yD9CY8wThn=RRBod7uRFi-GAA@mail.gmail.com>
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 22/06/2024 07:45, David Allsopp via Cygwin wrote:
> If Cygwin's setup requires input (for example, to select a mirror),
> with --quiet-mode hidden it simply terminates (there's no apparent
> exit status or message, though).
> 
> With --quiet-mode noinput, Cygwin setup sits at the appropriate
> dialog, but it's of course non-responsive.
> 
> Would it be possible in these situations for Cygwin to abort,
> preferably with a non-zero exit code?
> 
> The background to this was running Cygwin setup in GitHub Actions (so
> UI not visible), _without_ specifying --site, where the Cygwin
> installation had been restored by actions/cache but not the registry
> setting in HKLM\SOFTWARE\Cygwin\setup meaning that setup could not
> find setup.rc and consequently determine the last-used mirror. The GUI
> therefore invisibly froze at mirror selection.
> 
> That issue has obviously been fixed, but it would seem sensible that
> Cygwin's setup doesn't ever display a dialog _requiring_ input where
> all that input has been disabled!

Thanks for reporting this!

Oh, this is a weird one:

The '--quiet-mode' implentation is all rather ad-hoc, and so there's 
been no comprehensive audit of the setup code to ensure that all the 
possible places where we potentially stop for interaction are instead 
handled automatically.

But, this is a deliberate choice in some ancient logic, which 
deliberately drops back into attended mode, just in this one specific 
place (when there are no package repository site URLs specified).

Since this seems counter-intuitive and completely unhelpful, I've 
applied a change as you suggest, so we'll stop with an error instead.


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019