From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129708 invoked by alias); 24 Mar 2018 00:57:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 129657 invoked by uid 89); 24 Mar 2018 00:57:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=canada, Canada, catalog, HContent-Transfer-Encoding:8bit X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 24 Mar 2018 00:57:46 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id zXV8egMMAXziTzXV9eDZCn; Fri, 23 Mar 2018 18:57:44 -0600 X-Authority-Analysis: v=2.3 cv=X6B81lbe c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=qGCch4uaLe6taRZq9x4A:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: setup-x86_64.exe v2.889 doesn't select additionally downloaded packages when installing from local directory To: cygwin@cygwin.com References: <8571f617c5a740608e267364827e7733@merl.com> <2adead6b-07d0-e457-0191-5b9bac7c2e8f@dronecode.org.uk> <92c3950f-5f52-43a2-8427-83bc4cb6dc2c@cornell.edu> <87efkawxob.fsf@Rainer.invalid> From: Brian Inglis Message-ID: Date: Sat, 24 Mar 2018 01:05:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfG+DBiqtFd2EIz/n9wlcWSzPh982Kh+hgPNkJv2MGB0i6OstiVGiK6egLQG4G9JCtTjbVR+/M3rcZcfEXOo/aCqinK5prXB68dpV/bcNgipUtT8PEx8m V7Zlu4iu37Dnh0N+o7McsutcEfyRdzJDZwMojjZlJM13rWq3eGygcyGlpxkU+j9s51155FAJfBhVwQ== X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00388.txt.bz2 On 2018-03-23 10:59, Ken Brown wrote: > On 3/23/2018 12:42 PM, Achim Gratz wrote: >> Ken Brown writes: >>>> I think there's no actual dependency of libfontconfig-common on >>>> xmlcatalog, but we lack a triggering mechanism to say "run this >>>> script when this other package is installed" >>> >>> /etc/postinstall/fontconfig_dtd.sh could check whether >>> /etc/postinstall/libxml2.sh exists.  If so, it could run it and then >>> add '.done' so it isn't run again. >> >> While this seems to maybe solve this particular problem, I really don't >> think that it is a good idea to have postinstall scripts run other >> postinstall scripts and then deactivate them behind the back of >> setup.exe.  Please let's not go there, > > I agree.  That was a bad idea. > >> if there is a general need to >> coordinate among postinstall scripts let's try to solve that within >> setup (the stratified postinstall concept does allow for something like >> that, it's just not yet fully specified or implemented). > > I don't think a general need has been demonstrated.  This is the first case I > can recall seeing. > > I do think that this case should be fixed, one way or another, in > /etc/postinstall/fontconfig_dtd.sh.  That script assumes, on the basis of [ -x > /usr/bin/xmlcatalog ], that the catalog /etc/xml/catalog has already been created. Cygwin [/usr?]/sbin/create_etc_xml_catalog.sh script provided by libxml2 and run by both postinstall scripts if present: $ cat /sbin/create_etc_xml_catalog.sh if [ ! -f /etc/xml/catalog ] && [ -x /usr/bin/xmlcatalog ] ; then /bin/mkdir -p /etc/xml /usr/bin/xmlcatalog --noout --create /etc/xml/catalog fi $ cat /etc/postinstall/libxml2.sh [ -x /sbin/create_etc_xml_catalog.sh ] && /sbin/create_etc_xml_catalog.sh $ cat /etc/postinstall/fontconfig_dtd.sh [ -x /sbin/create_etc_xml_catalog.sh ] && /sbin/create_etc_xml_catalog.sh if [ -x /usr/bin/xmlcatalog ] ; then /usr/bin/xmlcatalog --noout --add "system" "fonts.dtd" \ /usr/share/xml/fontconfig/fonts.dtd /etc/xml/catalog fi -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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