DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57DGhYBX2085990
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 57DGhYBX2085990
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=Gz9kdErB
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E3183858D39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1755103413;
	bh=8MpaVRXYFYCAW77pLmC3eN6ODUjy/QWtr0oO4IW0i9U=;
	h=Date:Subject:References:Cc:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=Gz9kdErBfUCMfGfsCnYGCdboSnZE83EpqdMefGxhk7OaLe+OcrzfPnZZRjcfEeJxQ
	 5DnQB1NhGiUQ+L+rxqPqBY1uVNDsk1ETZwBetoCDJG7KdGBamK3CXsnO1VGfVrK1eR
	 uyNtDFReUlwxghJs2i0LGmd1rHM+sHk+kmJcf0VQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C6063858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8C6063858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755103358; cv=none;
 b=vqX8FSv1qOw7fMVaDkXYXEvTRE75bjITdtL07KOYITkjyZjOGmf5IgeF5FgUXAC+4iZJn1GQVlQYDOkikL1x24FjjzxmdrEDKdyUpDMSmGi08AcGczVgx8fzm85LTjinAaWRq2+oU23OFMqyCmsNmU6OnopLAnQVptQnRM/N3IY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1755103358; c=relaxed/simple;
 bh=U0QUjOqRCsVqyyzNxr0rqFO83Y991eQqbZ0y8FUQGvk=;
 h=Message-ID:Date:MIME-Version:Subject:From;
 b=LSblPAJ+Bc4TY14fH4Arturm98hU7PGrmOoY1EDREok+etTVdLdlXf3o/PsU4V3Q0sv0oAbDIv2WE1tb39gYdUmwPidXVJd07mym6Bx1uqtnV6kHuILer77CuY0sGgBVdJVeVuyEm26VLGAlDRzk/9dJ0r1XAV8eMlZCdQS7s4I=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C6063858D20
X-SNCR-Rigid: 6864BBE20493968A
X-Originating-IP: [86.144.41.51]
X-OWM-Source-IP: 86.144.41.51
X-OWM-Env-Sender: jon.turney@dronecode.org.uk
X-VadeSecure-score: verdict=clean score=30/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddufeekjedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecumhhishhsihhnghcuvffquchfihgvlhguucdlfedtmdenucfjughrpefkffggfgfufhfhvegjtgfgsehtkeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeuteejkeelvdduleduffeuvdeluedtfeegveevfeehjedvleffvefhudduteeuhfenucfkphepkeeirddugeegrdeguddrhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudeggedrgedurdehuddpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekiedqudeggedqgeduqdehuddrrhgrnhhgvgekiedqudeggedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotddtkedpnhgspghrtghpthhtohepuddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhm
X-RazorGate-Vade-Verdict: clean 30
X-RazorGate-Vade-Classification: clean
Message-ID: <ed79f187-6e4a-4ca0-ae48-3652820e7f22@dronecode.org.uk>
Date: Wed, 13 Aug 2025 17:42:34 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: possible setup bug in /etc/setup/installed.db contents
References: <aa3c86d6-519a-d401-0cb4-ce9ddb1d91b6@jdrake.com>
 <428bac49-d577-46fc-9c1c-3d43767c8609@SystematicSW.ab.ca>
Content-Language: en-US
Cc: cygwin@cygwin.com
In-Reply-To: <428bac49-d577-46fc-9c1c-3d43767c8609@SystematicSW.ab.ca>
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-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57DGhYBX2085990

On 13/08/2025 06:57, Brian Inglis via Cygwin wrote:
> On 2025-08-12 23:28, Jeremy Drake via Cygwin wrote:
>> At least a non-obvious behavior.  It seems that packages explicitly
>> selected via the `-P` command line argument are recorded in
>> /etc/setup/installed.db with `0` in the 3rd column, where packages
>> explicitly selected via the GUI are recorded with a `1` in that column.
> 
> Possibly because setup in that mode can not decide whether each package 
> is really a dependency or selection?

No, I think this is just a bug.

If the package is listed in after a '-P' option, it's been "explicitly 
selected by the user", so this flag should be set to record that.

(In fact, I have a vague memory of fixing something like this once already)

> Do we need a pick fragment e.g. -P pkg=ver#[01] or option --pick[=]{0|1}?
I'd consider a patch for the second form, an explicit 
'--record-use-picks-(enable|disable)' option, although it seems a bit 
excessive.


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

