DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 45PEtq012320478
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=ZJVF07C6
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CCA33870876
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1719327350;
	bh=nJ/CC+Mxr54qsIN71GhtYCVo9cTK7wV/jvT3AH0dpPg=;
	h=To:Cc:Subject:In-Reply-To:Date:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=ZJVF07C6p9Npcchu2/n0H0pSxYknzVinJO6pLwsd0bvl3V2cCXzCEnvGZVLsLxwUC
	 X/h1TG1BXcRoosgn0IJi1Z64Bw9L/4IUgD7iTwQtrlk8mCE2+hMvh/JQgF25kwubca
	 Hr9Olo4cQJlCTJjZew084z4mFDU1PwDaOFnSmMAw=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B554385DDC6
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3B554385DDC6
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719327317; cv=none;
 b=aCe7ExsRmrgbmFSooCl5XqtC3HJ6sXtN40u/PLVG0olXNGNUvyrIpNgySLTx+6dHKvC+okh6lLU5X2zOKBlqMnpCruoRoUPkk/0/Inz8mZ6zatjSWfY6wEs89Y6YTAlJD6rLkoLRqTMWNfgLcS+RHmZ0FKc3LC2QUq/K2klOPL8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1719327317; c=relaxed/simple;
 bh=Pi2hLt0kDKpetmjCrZcswXlK4G65bZmIKW9fYIY+W3k=;
 h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;
 b=xzJzjTbqK/mza2F17AHTsVm8wDtTjgWXD/6d0FVjB9LWruU+YT9co4J3BipKW74QYC82WKprajx60zXj8GQAVF9Ak6dFjHcKluw142FC84ecYjiM+jO2Z/Q+DZMjVBN845wDaW1dxa0NwLGx4PfJzsBqLCYJ7y2iZBhVgJhOVdQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719327311; x=1719932111;
 h=mime-version:message-id:date:in-reply-to:subject:cc:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=Aa8/PEvf1xglsdg+iw+TuvPwjdCCNM9chmGYSCL/t4w=;
 b=RPgz6fs9KeqcAGSRtx5WPlLLl2fbnGFYVDPOxa2fGKXPS5GsiebdK5kLV9kq4+/wM/
 Ig7Amk1iJX9Wprf1sMwBnsqcbivVc7zMyhvRywsGgwCoaRjiImJbL585h3Zwm+sHJdju
 0gIj8fxHwem0qA/EIPQaYiKBLT/XztMY1HOXjpjAhUieEl8qwlRVbqiRCfceqLV6ZQjD
 PpZVW4c3mNVy7hVeN6e9/Ol7tVjscmMKUgOcUCftaMOGeQtVarlqSRkrc4FKkPLFqrDy
 tOEDu0a84DTxrZqlrFaq6fxyGOCjUe6Dx7DzYbFZWwM9XbI2Plju+QdvJVd7n3tCJzQY
 stlw==
X-Gm-Message-State: AOJu0YxVNqZUrSNEqpdpGgpeV+XCKuRnHrSlgBDTWfOOrn2i6q2nddUu
 ESE4FoG4Vry5NCjjHcQawvmoKmntUQAKAWQM0HDWpvNsLb49WIJu5yzCoQ==
X-Google-Smtp-Source: AGHT+IHW5r4v1A4/6yenOZzKaldqkw1YaAQQTKevMdALx1phOcqrF5ICiCCXrejBvyj645iNe6AEuQ==
X-Received: by 2002:a05:6871:3324:b0:259:862f:b898 with SMTP id
 586e51a60fabf-25cf03e224fmr10142842fac.5.1719327311183; 
 Tue, 25 Jun 2024 07:55:11 -0700 (PDT)
To: Stromeko@nexgo.de
Cc: cygwin@cygwin.com
Subject: Re: setup: --prune-install appears to be broken
In-Reply-To: <87le2z5xv7.fsf@>
Date: Tue, 25 Jun 2024 11:55:09 -0300
Message-ID: <8734p18436.fsf@gmail.com>
MIME-Version: 1.0
X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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@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: David McFarland via Cygwin <cygwin@cygwin.com>
Reply-To: David McFarland <corngood@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>


> You are misunderstanding what prune-install does: it ensures that only
> the exact list of groups/packages that you give it for installation
> (plus their dependencies) is installed when it finishes and you
> literally said you want to end up with no packages at all.

That's not what it's doing though. When run on an empty root, it
installs Base (the set of packages in category "Base"), and when run
again, it does nothing (i.e. leaves Base installed'), even if other
packages were installed.

I actually think what it _should_ do is leave Base installed, by
treating all Base packages as implicitly referenced:

      bool uninstall = (!(wanted  || base) && (deleted || PruneInstallOption))

So we uninstall packages if they are neither wanted nor Base, and either
explicitly deleted or --prune-install.

However, the bigger problem is that none of this is actually working,
because of that "Can't happen.  No packagemeta for base" error.

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