DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BHDGGqT1272967
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BHDGGqT1272967
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=Bi9rF+k1
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AB174BA2E3B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1765977375;
	bh=exJLaAIzjkyGSmjmSvbvJPjh5JBHvuW48i3Wjwz7XXo=;
	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=Bi9rF+k1oCOK9Y41dT4f2xw0UqgaT8WL09X0IxIoz11hUvqApLPIYCgiMr9B0t+8e
	 n9yPUEWH8Zx2kXhGV85xrVyDaePi3bZIY1MjKKaD7gO0WuDJmB+JQPxps6HY038SQy
	 3EiZiaVpftT8p0Vl0JYDP+Yp1dpkLLUe2A308av4=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F6224BA2E1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F6224BA2E1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765977354; cv=none;
 b=wv9/GNXp926/3Qkb1L59I8R7rhWsPjcBbJf5gnGbFOJlf6FM3oA679dEk5GilKK2LSOwLgbAvuVBcimYsvW7UdtAxx+MCbmrSv14y7Z3vIWaX5DHITp9MtIthF62g8CXM8MuDtD8yxXY/Kj4NURzr+yeOXtJuEGCgu7X8z41Wms=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1765977354; c=relaxed/simple;
 bh=gGExWDt8UrYazHu8T5UxvDhPdIE5ATtFQYPGguMhTys=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=bFzgwrTCdj+++TmEOVzU/NzY9/10DTMte5RDNmaCOVIJnIArbQTs2Pdnlgn3WX3YxEoqbvLkAX6BTErsEV4GMw1WuxpiI6CHv8iZPA3EqqBM4p0joEWn081uoNmnbGYc67KLV5vETuP8ALrZRmK1K9hMw3F3Gy3PjfhG0UTv878=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F6224BA2E1E
X-SNCR-Rigid: 68CA1EB0092B94FC
X-Originating-IP: [86.143.185.36]
X-OWM-Source-IP: 86.143.185.36
X-OWM-Env-Sender: jon.turney@dronecode.org.uk
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegvdeiiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfuvfhfhfevjggtgfesthejredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepfeeiiefggfetgeeifeeuueffveeuueelhedtffeiteefgeevfeehvdfgtdehvddvnecuffhomhgrihhnpegtohhnshhtrghnthdrtghomhenucfkphepkeeirddugeefrddukeehrdefieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtlegnpdhinhgvthepkeeirddugeefrddukeehrdefiedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekiedqudegfedqudekhedqfeeirdhrrghnghgvkeeiqddugeefrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhurhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpegsthhprhgurhhgohdtuddupdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtgho
 mhdprhgtphhtthhopehsohhmihgrnhdtkeesghhmrghilhdrtghomh
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-VadeSecure-score: verdict=clean score=0/300, class=clean
Message-ID: <d280428d-8580-4749-bdb7-b78b2bf81337@dronecode.org.uk>
Date: Wed, 17 Dec 2025 13:15:50 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Setup not accepting multiple pkgs on the commandline anymore?
To: Soren <somian08@gmail.com>
References: <CAGB_HuSmfu0+z7R4T2=ofHhrL_yLZfxDj5goeU_WYRF13GStrg@mail.gmail.com>
Content-Language: en-US
Cc: cygwin@cygwin.com
In-Reply-To: <CAGB_HuSmfu0+z7R4T2=ofHhrL_yLZfxDj5goeU_WYRF13GStrg@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On 16/12/2025 18:22, Soren via Cygwin wrote:
> Hello Jon, Cygwinstas,
> I am attempting to operate setup.exe by commandline arguments and what I'd
> like to have happen, doesn't. In advance, sorry to bore readers if this is
> an often-discussed issue or whatever. The point I want to make is that
> `--packages' does not seem to work as how it's documented.
> 
> First I tried building this pipeline (I am not a shell genius, but I get by
> ...anyway, improvement suggestions welcome):
> 
> cygcheck -e 'perl-pod-*' | sed -ne 's/\s:.\+//p' | xargs | sed -ne 's/
> /,/gp' |
>    tee Documents/script-data/CygwinPodDists.lst
> 
> Tmpfile Documents/script-data/CygwinPodDists.lst now contains:
> 
> perl-Pod-Coverage,perl-Pod-Coverage-TrustPod,perl-Pod-Escapes,perl-Pod-Eventual,perl-Pod-LaTeX,perl-Pod-Markdown,perl-Pod-Parser,perl-Pod-Perldoc,perl-Pod-Plainer
> 
> ...which ought to be valid arguments for --packages
> 
> However, what I intended to have happen does not. Even when I simplify it
> to offer only a single package name it does not do the right thing:
> 
> $ "/cygdrive/c/Program Files/setup-x86_64.exe" -q --download --root
> C:\ix\cygwin  --local-package-dir "C:/Users/soren/cygDL.dir" --site
> https://cygwin.mirror.constant.com --include-source --packages
> "perl-Pod-Eventual"
> 
> What DOES it do? It downloads all (AFAICT) of base cygwin!:
> $ find cygDL.dir/ -type f
> cygDL.dir/https%3a%2f%2fcygwin.mirror.constant.com
> %2f/noarch/release/base-cygwin/base-cygwin-3.8-2-src.tar.xz
> cygDL.dir/https%3a%2f%2fcygwin.mirror.constant.com
> %2f/noarch/release/base-cygwin/base-cygwin-3.8-2.tar.xz
> cygDL.dir/https%3a%2f%2fcygwin.mirror.constant.com
> %2f/noarch/release/base-files/base-files-4.3-3-src.tar.zst
> cygDL.dir/https%3a%2f%2fcygwin.mirror.constant.com
> %2f/noarch/release/base-files/base-files-4.3-3.tar.zst
> ... etc etc ...
> 
> Is setup in fact trying to fulfill all the dependency prerequisits for
> "perl-Pod-Eventual"?!? As a write this, that just occured to me. Sure
> enough:

Yeah, specifying '--packages foo' doesn't mean "only install foo", 
because that would probably be useless, but "add foo to installation."

What you'll get is the union of:

* all base packages
* foo
* the recursive dependencies of foo

This hopefully results in 'foo' working.

Of course, setup shouldn't download and install things which are already 
installed, but if the root and local package directory specified are 
empty, what you describe is expected.

All of which isn't to say there isn't a bug here, or there's something 
less surprising we could do, because this code isn't too clever, but 
more details are required to make that determination.

> And couldn't setup print SOMETHING to the console to mark the operation of
> fetching each package, so that the user has some idea of what it's doing?
> That would be really sweet.
  Unfortunately, setup disconnects from the terminal when it elevates 
for administrator privileges.

Maybe this is a misfeature, but I suspect it's unavoidable.

You can use -B/--no-admin, or run in an already elevated session to 
avoid that. Adding -v/--verbose will produce lots of pointless debug output.


-- 
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
