possible setup bug in /etc/setup/installed.db contents
Jon Turney
jon.turney@dronecode.org.uk
Wed Aug 13 16:42:34 GMT 2025
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.
More information about the Cygwin
mailing list