From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) by sourceware.org (Postfix) with ESMTPS id CC3023857C50 for ; Thu, 10 Sep 2020 14:40:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CC3023857C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id GNkOk2DwY195BGNkPktqQA; Thu, 10 Sep 2020 08:40:25 -0600 X-Authority-Analysis: v=2.4 cv=Wfqy12tX c=1 sm=1 tr=0 ts=5f5a3ad9 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=UR7SLoAHSwG4Xo3NiecA:9 a=xEvxokZUgCbspzmD:21 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com Subject: Re: postinstall: fontconfig abnormal exit To: cygwin@cygwin.com References: <106370283.20200908171659@yandex.ru> <782011494.20200910083521@yandex.ru> From: Brian Inglis Autocrypt: addr=Brian.Inglis@SystematicSw.ab.ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: <5a2fdf46-93c8-048b-cadb-cb9d9212c716@SystematicSw.ab.ca> Date: Thu, 10 Sep 2020 08:40:24 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfG40FCraQhHVcKqGlo6xwC8KnVrUAh+dukcxTNpIXNOq/kCw8tfsDVOxHb4TSuhQs1lbm5aVtgVHZi7JpK+Id7ERN+hxMAo+xjbCX1QSA9zHhnA0FPzU MTJe2H228dcj/j8bSlsGgVq9k2UQZOuFmC9KGVJW5WMMMm8XO38R5y0mISH/LL/iBJFxY0K7uJJEYjgxDucY09Y/jmdiALT4vGw= X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 14:40:29 -0000 On 2020-09-10 04:57, Fergus Daly via Cygwin wrote: >>>> Sorry if this has been asked 4 million times already. > >>> $ head /etc/postinstall/{fontconfig_dtd,libxml2}.* >> ==> /etc/postinstall/fontconfig_dtd.sh.done <== >>> if [ -x /usr/bin/xmlcatalog ] ; then >> /usr/bin/xmlcatalog --noout --add "system" "fonts.dtd" >> /usr/share/xml/fontconfig/fonts.dtd /etc/xml/catalog >> fi > ==>> /etc/postinstall/libxml2.sh.done <== >>> if test ! -f /etc/xml/catalog; then >> /bin/mkdir -p /etc/xml >> /usr/bin/xmlcatalog --noout --create /etc/xml/catalog >> fi >>> $ llgo /{etc/xml/,usr/bin/xml}catalog /usr/share/xml/fontconfig/fonts.dtd >> /etc/postinstall/{fontconfig_dtd,libxml2}.* > >> Thank you! > > Out of interest: > Is this something that would usually be achieved during setup, as in other instances of > .sh -> .sh.done, but has just fallen off? > Or (say) would it be achieved if I appended some specific package using setup -P? > Or .. .. ? Each of the postinstall scripts are installed as part of a package to perform some aspect of installation that can not be done statically during the package build as it may depend on dynamic aspects of each user's installation. The Cygwin Setup program will normally rename the non-permanent (not starting [0z][p-t]_...) postinstall scripts with suffix .done after successful execution, so failure of the postinstall script is the usual reason they are not suffixed, and that should be captured in /var/log/setup.log and /var/log/setup.log.full at the end of each Setup run, and may be checked using: $ fgrep -B1 'abnormal exit: exit code=' /var/log/setup.log* showing e.g. -- /var/log/setup.log-2015/10/18 07:27:14 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ texlive-collection-basic.sh" /var/log/setup.log:2015/10/18 07:27:26 abnormal exit: exit code=2 -- /var/log/setup.log-2016/03/10 17:33:13 running: C:\usr\local\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir. dash" /var/log/setup.log:2016/03/10 17:33:14 abnormal exit: exit code=127 -- /var/log/setup.log-2016/03/10 17:33:14 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ zp_fontconfig_cache_1.sh" /var/log/setup.log:2016/03/10 17:33:33 abnormal exit: exit code=3 -- /var/log/setup.log-2016/06/05 03:53:59 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ zp_fontconfig_cache_1.sh" /var/log/setup.log:2016/06/05 03:54:33 abnormal exit: exit code=1 -- /var/log/setup.log-2017/04/20 21:34:32 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/postinstalltest.sh" /var/log/setup.log:2017/04/20 21:34:32 abnormal exit: exit code=2 -- /var/log/setup.log-2017/09/07 18:49:13 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/cygwin-doc.sh" /var/log/setup.log:2017/09/07 18:49:13 abnormal exit: exit code=2 -- /var/log/setup.log-2017/09/08 23:16:33 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/preremove/cygwin-doc.sh" /var/log/setup.log:2017/09/08 23:16:34 abnormal exit: exit code=1 -- /var/log/setup.log-2017/09/27 23:29:55 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/preremove/rsnapshot.sh" /var/log/setup.log:2017/09/27 23:29:55 abnormal exit: exit code=1 -- -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.]