delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/29/19:51:59

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=kfTRo/TJ0onB0CKo/oC29alqJKXS95zWcuZ/4EisRUi
+z6b/6hoazt8kGrigP8k5sEoeJ2Kwz0EISPEUutu83B9A58n4F2BcRxJnlAuZTyI
a75tpXWpVua14TJo3xL7a5oSNpAphKBju6DWSs8iXP/wZ9/J70mhx0CNjzz6LeBg
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=asChNyBxw4EpY/iozfZeXJyGpAU=; b=cEu/37RZLfrGnlgp6
Mdjvzzkmg8vy714uf1E7iF/NiblVomzpIBN1r9ViD/gOHz9HMJ9mFflqZXRLHrAl
PTpBQVnrIbnaeSvf3xxZn3RNkd4haYDRyji/ekuoj99NXpJ2LSP8UHKHiCyUvY3L
APqGoqMo/Coy0JBaphwm0jpGeE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_YG autolearn=ham version=3.3.1
X-Received: by 10.50.57.76 with SMTP id g12mr2404910igq.81.1369871501529; Wed, 29 May 2013 16:51:41 -0700 (PDT)
Message-ID: <51A6948B.3000807@users.sourceforge.net>
Date: Wed, 29 May 2013 18:51:39 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Attn: Yaakov [Was: Re: cygutils Postinstall Script Errors With Exit Code 128]
References: <CAHiT=DFj=y4PS5d_mj0erWpB-uCieE+KWh3T=J4wnuSOij5hJA AT mail DOT gmail DOT com> <51A684AA DOT 2060904 AT cwilson DOT fastmail DOT fm>
In-Reply-To: <51A684AA.2060904@cwilson.fastmail.fm>

Sorry for missing this before.

On 2013-05-29 17:43, Charles Wilson wrote:
> Known issue, waiting for cygport fix.  cygutils relies on cygport
> auto-generating the postinstall scripts which invoke those tools.
> Cygport does this because the install package contains the following two
> files:
>
> /usr/share/applications/cygstart.desktop
> /usr/share/mime/packages/cygutils.xml
>
> ...and it generates the postinstall script unconditionally (e.g. I can't
> turn it off) and the generated postinstall scripts themselves call the
> tools unconditionally.  Cygport also automatically adds the packages
> which contain those tools to the requires: field of the setup.hint,
> so...under normal circumstances, everything should be fine.

Right, because packages providing those kind of files usually need those 
commands to be run in order for them to take effect; see below.

> However, at user request I've manually removed the requires: line,
> because the addition of these two files to the cygutils package
> shouldn't have the effect of pulling *PERL* into the Base category. I
> assumed we'd live with the semi-brokenness for a few days, until...

Perl?  I thought it was Python, due to a false positive in the 
dependency detection with glib2.0, which I fixed on sourceware.

But now that you mention it, is cygutils *supposed* to be in Base?  It 
is marked category: Utils, but seems to be pulled into Base only because 
of cygwin-doc (which *is* in Base, oddly enough; shouldn't it just be 
Doc?) listing it as a dependency.

> ...I'm waiting for Yaakov to say whether this should be "fixed" in
> cygport [1], or if I should override all the auto-generation stuff by
> manually creating an explicit postinstall script (with suitable tool
> existence checks) and setup.hint.

The "problem" here is that cygutils is not primarily a desktop-oriented 
package.  Most packages providing XDG menu and mime entries *are*, so 
these dependencies not only mandatory, but quite modest by those 
standards.  I added these files because it allows better integration 
between desktop file managers 
(Nautilus/Caja/Thunar/PCManFM/Dolphin/etc.) and Windows, e.g. making it 
easy to launch an EXE/MSI installer from one's Downloads folder. 
However, most people use cygutils outside of the desktop, so 
particularly if its pulled into Base, these deps would be more than the 
bare-minimal system.

If cygutils should be in Base, the "solution" is probably one of the 
following:

* provide these files (and postinstall scripts) in a 'cygutils-x11' 
subpackage;

* OR move them to another package (not sure which yet) which will 
already be installed in desktop scenarios, and adding cygutils as a 
dependency thereto.

For now, should we go with the first option?


Yaakov


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019