X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:cc:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ucRFpUV+ctrmtitM NTijZaGXp3F1fGVv4wW+vA9YPwOIZoKe3KED/OaKC6AVB0rvvCiJJLmC7wsDpQl3 40RMw4aWd5cdlPyP7ft+nJKML33Tpl8xUEAMu3IFo//FfKW9G8h1qKj9enkpGwFn n/6U6k0l36XsaZi9pcKAyTrqLTg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:cc:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=NjGkf3/lJf/r+8TNcLpz0C rWCYA=; b=uXPQ/RWVy4IW+T7rzvUjN9UQiz0rY3ulqYOzxJqsN8i/VLwKwo2qHP z/mNHdcoQatieUoB3p3YkbzwQLnReszHQrz+kOG8fxyVCc496OT2N8f+ZuUS8q8A BGerX5xpSWYjN8F3I3aiyHVtaodjZDhX8dETWvf+5QD+gQNA4kB7c= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=upset, H*Ad:D*gmx.com, Hx-spam-relays-external:ESMTPA X-HELO: out1-smtp.messagingengine.com X-ME-Sender: From: Jon Turney Subject: Re: Dependency issues in setup.ini. To: The Cygwin Mailing List Cc: "Sam Edge (Cygwin)" References: <505405e4-5a2f-8d6b-f012-404bd7d69009 AT gmx DOT com> Message-ID: Date: Mon, 2 Oct 2017 14:25:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <505405e4-5a2f-8d6b-f012-404bd7d69009@gmx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 29/09/2017 21:16, Sam Edge (Cygwin) wrote: > Hi all. > > I've been developing a Python package that can interrogate and > manipulate local package caches (the directories where setupXXX.exe > keeps its downloads) and installation databases (from Cygwin > /etc/setup/installed.db files) with a mind to pruning, merging and > reporting in the spiript of Michael A. Chase's 'clean_setup' utility but > as a scriptable tool set rather than a stand-alone utility. > > It's not production ready yet but it's already flagged up some issues. > > For example we have lots of dependency loops in the 'requires' fields in > setup.ini - even to the point that some packages depend upon themselves! Cycles in the dependency graph are unfortunately a real thing (although all cycles which exist may not be correct or unavoidable) cygwin-debuginfo depending on itself is simply a bug in cygport [1], as it makes all debuginfo packages unconditionally depend on cygwin-debuginfo calm permits this as a historical exception, any other package with a self-dependency should be rejected. [1] https://github.com/cygwinports/cygport/commit/65cc501f3bea06bcd69326649646568fa5a94092 > And also we have some dependency omissions. For example, mintty doesn't > depend upon anything - it has no requires field. Surely, every binary > package should depend at least upon 'cygwin'? Again, this is because of historical reasons. For reasons lost in the mists of time, packaging used to suppress any dependency on 'cygwin' from requires: in the setup.hint, and then upset would add it back for every single package in setup.ini. Nowadays, we treat the 'cygwin' dependency the same as any other (i.e. any package containing an exe or dll linked to the cygwin DLL should have a 'cygwin' dependency) I believe the maintainer of mintty is still using an old version of cygport, which has the historical behaviour, hence this dependency is missing. Practically, this shouldn't cause problems, as the cygwin package is in the base category, and so should always be present. > Is this a known issue or should I report in more detail? Specific problems should be reported to the cygwin-apps list. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple