www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/06/01/14:36:18

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 651IaH7g3761795
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 651IaH7g3761795
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=ghODywLT
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEB9F4BA23C5
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1780338976;
bh=ynXjgjTSVGsALWwq0SJZ0B9qOBS8/y+KyTkxVns4eqc=;
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=ghODywLTtjDzS+xZkq0Q/FQ31dz8v4tOlfzKz9yDlo3FrsaHEOTW0QIxhZS8woixM
iArOR5+oM6vaMEwV/48PO4mUzizI+DS3YtU9cRbYLHyHZ8HL4y3Vn5YXE9Ak8+Vg03
zB2nWA2wdurm7OldWEVxrKVTAK7Qo0UDMOBS0n6c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C50614BA2E09
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C50614BA2E09
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780338924; cv=none;
b=A/ZLppDZ4UPlcpCuaNUCqsedTwJESHTSPwzJq6KrvJC8VuYUtywQJs27yFPblJDf7yrzKO51+gSMQoXQm5JM8kBLYXw5AN0rjNINI4TV4Y0Bb2r+cLIX1gGfn5NeelXe4+AeZ5RQA9h25oDuxdFbZTRH+fSEEdRIQYgDKACwZig=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1780338924; c=relaxed/simple;
bh=prRuEDvmi+/4+E59gFLMlqhiO4vzlmnpgkRFHsWx4TU=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=ibvAf13/SMyMHUsOwHTd1l3SnnicemCFyiJY4ntQGTbmGLkt5Jtf9p/9tctbgftCziTwnJzwX31oWEFWIzEuMi9874EYe/7vkMsfQWzAqo5iSx5BRIkkxsTX6lHmQAVQDTqk0MnRLj3LR0LpmCl0zuKukwTKUWB/ZRIrGEYywlg=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C50614BA2E09
X-SNCR-Rigid: 6A0659D0016C44D8
X-Originating-IP: [83.105.142.8]
X-OWM-Source-IP: 83.105.142.8
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-RazorGate-Vade: dmFkZTFdxpb+8Uf6d3u5lRM5amXMQIgRBB8fr6XAtoVakMPtFF6qrO9dZzt9gi2eu+y9k0br+j4uofswr/HnarPGtgEl/Ax0IJPLryc8iqvYQIprp01jbzpUtNClPzUuteq5Ix3F3XrccHp35hhjdeu+G2PHKGeWbnWo8JxwdVJJ1VCOJf9nDkafBDJpYNPcV24Cp1C0jI2FpIZ1tk/3pvJmvqGTer1rURgpRMpJ0RMmjx/JVUDIsYEG/kL7BCX2uluonY6hXVWvzsZISuucIBViJKxiEjxFdNinAOHzmQoUtWjzUrXvbcZJwhOhuWhELQk9DlV9IGJpcAV1pkV7pjD2yby2afGI9HI3/ljEkD5Al10bHR9rLkV1HkMT8ZnDWRzvrClknleljL7QXtU10MdWteDseqTZOI/vN/LQV4iiyUPvyWQQZ2sNoy4PDaBirBxpaTtaxrhVQArAtMz3fr8B8BxGBuyXOt9cItbPZ/U7OWX3GnYieb+sNHfF3C/OL5wxoiHqMMZD3/IpaJWlmx8Mw4lKNewVqfAMhUzOgbRo+6skwfW3sLKamZN1X7imXxa7g4Ziy4NbqwEd++YmYA3NXJ9VKfIqJbx8I0OgUSq1cE+wnkHTnKTq0U/HlOFMpd3+oO4kPvS5LJMqaunuHHXosf7KpDis5S5YDp80V3326jM2yQ
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-VadeSecure-score: verdict=clean score=0/300, class=clean
Message-ID: <a1a3f035-debb-4089-89af-c9ac324413e6@dronecode.org.uk>
Date: Mon, 1 Jun 2026 19:35:21 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Using the setup application commandline: multiple -P arguments
possible?
To: Soren <somian08 AT gmail DOT com>
References: <CAGB_HuTeTfz_J33zfks_5447LDwYnoos+tAjmRgnvie346d1oQ AT mail DOT gmail DOT com>
<8fbbd780-b500-47d1-a4d5-0deecc570779 AT gmail DOT com>
<CAGB_HuQukwaGYzGAbi04ut=-Hc6Wa+OFxtYR=jE__C6tqsDtaA AT mail DOT gmail DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <CAGB_HuQukwaGYzGAbi04ut=-Hc6Wa+OFxtYR=jE__C6tqsDtaA@mail.gmail.com>
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 01/06/2026 17:49, Soren via Cygwin wrote:
> Previously, many days ago, we had the following exchange:
> 
> [Soren]
>>> I am puzzled as to how I can ask setup-x86_64.exe to install multiple
> packages in a single run.
>>> I've tried this: using multiple -P <arg> flags, but it seems that only
> the
>>> first package thus specified is noticed by setup.

Hmm... the code does claim to handle multiple -P options.

>>>
>>> I've thought of trying these:
>>>    -P 'package1,package2,package3,[...]'
> 
> [Marco]
>> this works for me, without need of ' in my bat file
[...]>
> Running setup from the commandline still isn't providing me with obedience
> to the -P option. I just tried (running from a bash shell in minTty):
> 
>   cygstart C:/ix/cygwin/setup-x86_64 -vdnN -P perl-Alien-Build
> perl-CPAN-Meta-YAML perl-CPAN-Reporter

Sorry to hear this is giving you trouble.

I know that the parsing for this option is maybe a bit janky and could 
use some improvement, but it can be made to work.

Firstly: -P is followed by a single string, so you should use the syntax 
Marco confirmed as working, i.e. package names separated by only a comma.

If you can point out where our documentation suggests space-separated 
names can work, I'll get that fixed.

(There's obviously some bug adding to the confusion here as the 
non-options 'perl-CPAN-Meta-YAML' and 'perl-CPAN-Reporter' are being 
silently ignored by setup.)

> None of the named packages appeared in setup. Now, I did what I could
> think of to check whether setup behavior was happening because the
> pkgs were already installed.
> 
> perl-Alien-Build  was already installed, so was perl-CPAN-Reporter.
> perl-CPAN-Meta-YAML was *not* installed on the system already.
> 
> When I tried placing just perl-CPAN-Meta-YAML as the only argument, in
> setup it didn't appear. I seem to be going backwards rather than
> making forward progress.
> I surely would be appreciative if anyone could help me with how to run
> setup from the commandline.

> $ ./setup-x86_64 -vdnN -P perl-Alien-Build,perl-CPAN-Meta-YAML,perl-CPAN-Reporter

checking /var/log/setup.log.full afterwards (or drop cygstart and add -B 
so you can see the output of setup)

[...]
> package: perl-Alien-Build version:
> package: perl-CPAN-Meta-YAML version:
> package: perl-CPAN-Reporter version:
> Added manual package perl-Alien-Build
> Added manual package perl-CPAN-Meta-YAML
> Added manual package perl-CPAN-Reporter
[...]

> $ ./setup-x86_64 -vdnN -P perl-Alien-Build -P perl-CPAN-Meta-YAML -P perl-CPAN-Reporter

Likewise, also seems to add the requested packages.

> Oh, and I STILL cannot Shift-Ins to paste into minTTY.

One email thread, one issue, please.


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