delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/08/12:14:57

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 35B6F385702E
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca
X-Authority-Analysis: v=2.3 cv=ecemg4MH c=1 sm=1 tr=0
a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17
a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=Ed7FdIT4gc43trk-okQA:9
a=rlRi44M78gB0swPA:21 a=kxoo1MZRRG4vkaFL:21 a=QEXdDO2ut3YA:10
a=SMqUYNgkm0QA:10 a=sRI3_1zDfAgwuvI8zelB:22
Subject: Re: postinstall: fontconfig abnormal exit
To: cygwin AT cygwin DOT com
References: <DB6PR03MB3013DDDB803E3E4B8EF8E935A4290 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<106370283 DOT 20200908171659 AT yandex DOT ru>
<DB6PR03MB30139A2A8B7ABC69F6F4CEC2A4290 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT 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: <29071b8b-f06c-a627-f9e7-c24e3bdcc21b@SystematicSw.ab.ca>
Date: Tue, 8 Sep 2020 10:14:08 -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: <DB6PR03MB30139A2A8B7ABC69F6F4CEC2A4290@DB6PR03MB3013.eurprd03.prod.outlook.com>
X-CMAE-Envelope: MS4wfE3S29TultT1DyH6dq4sLeu09PsKiZzT+MZ6H6UPWMmrMBtwxChbMP2ajdbtG6vX3K5nnqrXpZzYVOtQ3bqUAI/bFf3aL3LD/atiQnZPehYwrUO4hKOu
drzau4oKM9Tn0HpB/7nPptg49Z7JF3sGjZH/2a6znwMf/gRbU9fDdMHngyiWRuWdGRkd3hz6kASpRA==
X-Spam-Status: No, score=-7.7 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 2020-09-08 09:18, Fergus Daly via Cygwin wrote:
>> Greetings, Fergus Daly!
> 
>>> Sorry if this has been asked 4 million times already.
>>> During postinstall, both at ground-zero installation and at every update
>>> thereafter, and for both Cygwin-32 and -64,
>>> (both using the appropriate setup-x86[_64].exe) I get:
>>> running: {pathToCygwin}\bin\bash.exe --norc --noprofile "/etc/postinstall/fontconfig_dtd.sh"
>>> abnormal exit: exit code=2
>>> Is there something that can be done to address this "error", if that is
>>> what it is, or is it just a quirk of setup?
> 
>> Run the same command manually and see where it's failing.
>> IIRC (as this has been raised before), the problem is that a certain
>> file/directory not exists.
>> Check the mailing list archive?
> 
> Thank you for this advice.
> 
> 1
> For a long time (years) I have included an empty file
> /etc/X11/fontpath.d/thisisafile
> in my architecture as a workaround to address some installation problem,
> the nature of which I have completely forgotten.
> Having incorporated this dummy file, I should then re-install some package,
> but precisely which one I have regrettably also forgotten.   
> 
> 2
> This kind suggestion came from Ken Brown. By a strange coincidence, less than a week ago,
> https://cygwin.com/pipermail/cygwin/2020-September/246128.html,
> I lamented the lack of ease with which one may search this archive. I just searched in a limited way
> to try to discover the problem for which Ken's workaround provided the cure, but without success.
> 
> 3
> I also just now added "fontconfig" to my setup using "setup -P fontconfig" and then also ran the command
> fc-cache -v
> at the bash prompt, and whilst achieving a raft of checks, this has not addressed the original postinstall error
> message. 
> I did not really think it would, guessing that if the fontconfig package were to successfully address such a
> basic (and recurrent) fault, then it would necessarily have been included in Base.
> 
> So: nil progress, but thank you for your suggestion.
$ cygcheck -f /etc/postinstall/fontconfig_dtd.sh
libfontconfig-common-2.13.1-1
$ cygcheck -f /usr/bin/xmlcatalog
libxml2-2.9.10-1
$ cygcheck -f /usr/share/xml/fontconfig/fonts.dtd
libfontconfig-common-2.13.1-1
$ 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}.*
-rw-r--r-- 1  152 Jul 28  2019 /etc/postinstall/fontconfig_dtd.sh.done
-rw-r--r-- 1  118 Mar 25  2019 /etc/postinstall/libxml2.sh.done
-rw-r--r-- 1 1.2K Jul 30  2019 /etc/xml/catalog
-rwxr-xr-x 1  18K Aug 15 10:35 /usr/bin/xmlcatalog*
-rw-r--r-- 1 7.1K Jul 28  2019 /usr/share/xml/fontconfig/fonts.dtd

So check the existence of all the files and all the postinstall scripts,
re-execute the latter if necessary, re-install packages if necessary to make
repairs, and ensure the postinstall scripts are renamed with .done appended when
successfully completed.

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

- Raw text -


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