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

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDDD738754AB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1599915392;
bh=wNZZarcxJ1MqsMMxLEWaTSMte6l7c2yMjuIV9sv+IuI=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=QVtIFGaTCW29arYqZhao8gi/blHyF+w5GNorny/DEInrMRHp23E4pZ+MpYl53jAEN
IUrIX2YPcjUmHa3WQ/alPFj79lmTOAjU7/nnAklWxb1eiYoSFd4iTkYsXNHb9mVmdI
4nHC32YU26IZui4CK5w53qdjBSbakW42d5IRGnoI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 024A4385701E
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=CmDdMoOyIlBZhIWT1W3UduSU7t2R1lxmFqHzxQ3qPZhnzWHJO+d66+L08b91l9NQmzVVE1cdzEPtmtoCPSXh6mhloLLvCkwkXZb6dRydaNXeITL+C9MoknhXDH1kV/4rUIPsn+dt6iozqeG4RI5X+SMIcWCStVlCZfFVr6nvqSRao9wt+Ksd9PuPtupAgzwR+g+6EtVqShV4ZUWlDpVqlE8Hh9iVL0HYCCr2gkm8UtsfCCZK07iqL31O28VVmBh3iCoZjJxHuIpvquIPaFJExePWsco74alb5ZM8JMlDjFrlUvJMy5GyBf0Ketsfjj7q4SfKlQAH5FM/63frPkNAXg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=K/vmffzn/3lHvYnWVJtMuhTNwKMPM8Wz7CzTUkiAyuE=;
b=Jat9wRSfABF5qnMqsBQtVFSCEBaL6st9TIc/IFnsJRbyIrVCI0G64+SjEx1ZJtsUTTr0Ozujb1WQUQhxVTcMuAfNvGa9GWLxYEQik/hDH1oT1cUm4mGpFxYUy/+nJvxeHoZZY9woS1xG0uNUDqc8wIIByLcMZuH4Dfthm3A1XrjzZvug/X3l/x0a/ruSmFnLWmgpAearzzCEfVHM6wKQNFZN/ppsF5qh7eUnJrETrzW4ovXW5RQm3gHHl0kfVY8UQDVIQMo3vrxyb0WR7tVZzP5BJ1yJxNpyGJoDLcYonRu+/EoS0bYpWBXxqldgkA9BZxnjr42AoqYbc/WAKlMaaw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: postinstall: fontconfig abnormal exit
To: cygwin AT cygwin DOT com
References: <DB6PR03MB3013DDDB803E3E4B8EF8E935A4290 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<DB6PR03MB30139A2A8B7ABC69F6F4CEC2A4290 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<DB6PR03MB301312724F0DFF66AF9E796DA4270 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<782011494 DOT 20200910083521 AT yandex DOT ru>
<DB6PR03MB3013D1FD4D925B12A4022E98A4270 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<5a2fdf46-93c8-048b-cadb-cb9d9212c716 AT SystematicSw DOT ab DOT ca>
<20200910230426 DOT 5811f3e8 AT quarternote>
<VI1PR03MB3022EBE68767183BCA4889ECA4240 AT VI1PR03MB3022 DOT eurprd03 DOT prod DOT outlook DOT com>
<DB7PR02MB39967134A1C1169A8A406BE8E7240 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
<8f40571c-1a37-8e4b-f1bd-ecf40175d0d7 AT gmail DOT com>
<179bbaf0-02b4-1c63-0083-5fa2a8833ea9 AT cornell DOT edu>
<06e9cf44-8cc8-267e-12b3-e8a866a01c80 AT gmail DOT com>
<ee4d59c7-00d3-a2e6-fa13-04622ed8391f AT cornell DOT edu>
<87h7s45a4c DOT fsf AT Rainer DOT invalid>
<3305b90c-41f2-7377-092d-0f151a83da1c AT cornell DOT edu>
<abb3d78e-7679-db16-e219-7e32b04942c0 AT SystematicSw DOT ab DOT ca>
Message-ID: <9c515b79-42e2-5a9b-1996-9281f3c2b0e8@cornell.edu>
Date: Sat, 12 Sep 2020 08:56:24 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.0
In-Reply-To: <abb3d78e-7679-db16-e219-7e32b04942c0@SystematicSw.ab.ca>
X-ClientProxiedBy: CH2PR18CA0038.namprd18.prod.outlook.com
(2603:10b6:610:55::18) To MN2PR04MB6176.namprd04.prod.outlook.com
(2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [2604:6000:b407:7f00:ad88:231:3482:1c42]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: c77cb02d-4245-48de-786c-08d8571b4264
X-MS-TrafficTypeDiagnostic: MN2PR04MB6046:
X-Microsoft-Antispam-PRVS: <MN2PR04MB6046E7489E0979FCA6FBA7C9D8250 AT MN2PR04MB6046 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 8publOIpPF2JnOcbmsMeQK7sCCfFddFNfVynC9d84c+YG2eMTK65VsnzEw+Dfug9fQ0RjK1M8AGiqReoBHLKVSo/ZsVZFeQFlMf86zUjmiYkUXNOGlHT+27hdcj8UVLMviU8yokagBaVPvcS87GFiC9HonhiAU0IS3LRyf+5+1np9x/KPlk4MtAslcb7f1Ph1qcYyR5T4uagIxQ5BaKx8z1DfPD2DWqOhS14iwcHFtuCCpc5/4kxjNbTJnPA1gtwBd2qgXU5QtannnGISeqf9Q56c3Z3mW1JR8zNa7WKb7I05m+91qRl2QfgirFEShjwbUcMhkfQ17GI8orqyNlH1AR6Ff+QLk5WrBX5xH4jKUpr0ci7ErhSjeRuHwuEX44A1EbkDpGIaHHduqKBgz1YCWdPtFJ3l653+PygSk1NqyAFPRGiQNssoHkOeT36PUq9INYNj5DjV2T5FL5pZ/ORiq9qlUZ/IA64Wv45b1o6z50=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(346002)(39860400002)(136003)(376002)(396003)(366004)(66556008)(31696002)(66946007)(2616005)(2906002)(83380400001)(786003)(8676002)(36756003)(6486002)(316002)(8936002)(66476007)(86362001)(52116002)(53546011)(5660300002)(16526019)(966005)(478600001)(31686004)(186003)(75432002)(6916009)(43740500002)(460985005);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: 2CMKcpDw7VgGKHaxbWy16akV4bJhuImdUdD4XjWf8Gu2ypiNv4N8imjGWw2xuA6/rAsOPwVeYR9ZCLyNr61EZ9rBqF8TYTzr8JAndiHOK3U4d6GVbFF4hNxNnfvNJivANfkxTvHjNlkSwaHB1Dfr+sVNSRYM5/1PLGoDuqUfT1x4IMPsFA/16y3/LmnPG2f3wD8dbQ9J1x4L+rWVKyODxxTzqrx7Ye6o9wlrfT/O42ax2j8SDVAvhOx4ITSciSToM6T20QFJiznCVLTHmM0ITYDShgPPfJyFH7dXZgenPDcqx0loemXn3pVkIRKn7HoIDy00zqtOnXRDO7eoOpoG+ZKgBYVEedDi1HMAETvicw9ONXgL8i10MMAKiFdohKiuirTyCjOQl55gA1MeIE6g4PGuwlfkxu/Rga25Ue1fY5tZzEhbb4phk3oRYCdrp42kXbUJHKKQDkWgZjwEn/3mQ130Vh15vlZc4koAX10ev/uHGn+uSQ9sHyhNVuphva3bvTIoMivNRbCpgEZbFzrPX2rtSzgcXXr4pkLrA0s4FVDSW+KY+Ne3wq5h/LC3cssbtS7ImAYzWsIVJcjvMRKwd5eebruMvcX5mARUNWwjdKilS4X1moPmmu10JSwfkFa5Uawo/+i9KTCgO4FvygAjUNo4uU8VCIwabOW60pjDmOxw3BGnnpKXeZEc4OjofHzbnLcMe6EO4WKiymtgLF6YzA==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: c77cb02d-4245-48de-786c-08d8571b4264
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2020 12:56:26.5247 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: RrUm+LRTU7zjjylWGDlSYgO1iBnvLXNbdgCIIxtTlpQRjUcH3tziPffRpWqpPfJsjGH8ch0crvQRj3brZldxXA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6046
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=no 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>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 08CCuxCv018586

On 9/12/2020 1:18 AM, Brian Inglis wrote:
> On 2020-09-11 15:13, Ken Brown via Cygwin wrote:
>> On 9/11/2020 4:30 PM, Achim Gratz wrote:
>>> Ken Brown via Cygwin writes:
>>>> Unfortunately, this doesn't yet fix the problem with
>>>> fontconfig_dtd.sh.  The latter will now succeed if it is run after
>>>> libxml2.sh, but not if it is run first.  I'm not aware of any way to
>>>> force setup to run one postinstall script before another.
>>>
>>> Multiple ways:
>>>
>>> 1. Make the libxml postinstall script sort lexically before any others
>>> that depend on it.  Obviously this is brittle, but it might work in this
>>> particular instance (autorebase does this).
>>>
>>> 2.  Make the libxml catalog creation a perpetual postinstall script with
>>> prefix "0p_".  That only works if it doesn't depend on other postinstall
>>> scripts having their work completed.
>>>
>>> 3. Implement and use the stratified postinstall concept originally
>>> outlined at:
>>> https://sourceware.org/legacy-ml/cygwin-apps/2014-12/msg00148.html
>>>
>>> 4. Use the package dependency order to order the postinstall script
>>> activation.  With libzypp we should have the correct information, we'd
>>> just need to somehow make the packagemeta iterator use it.  That still
>>> won't work if we have dependency loops.
>>>
>>> 5. (Try to) Run any failed postinstalls again in setup and bail only if
>>> the number of fails does not decrease from the last iteration.
>>>
>>> At the time it was deemed too complicated and so we only use the "end"
>>> strata for the perpetual postinstall scripts.  As said then, there would
>>> need to be some serious discussion on how to coordinate the strata
>>> assignments.
>>
>> There's no dependency relation between libxml2 and libfontconfig-common, so #4
>> wouldn't fix the problem.  And some of the other suggestions would require work
>> on setup.exe that someone would have to do.  The current problem is simple to
>> fix and shouldn't have to wait for that.
>>
>> I like your idea of using perpetual postinstall scripts.  I think the way to do
>> it is probably to make fontconfig_dtd.sh perpetual with prefix "zp_".  That way
>> if libfontconfig-common is installed without libxml2 but then libxml2 is
>> installed later, the xmlcatalog command gets run.  We would have to check that
>> no harm is done if that xmlcatalog command gets run more than once.
> 
> As libxml2 supplies /usr/bin/xmlcatalog, that postinstall script should both
> conditionally create the catalog and only if just created, also conditionally
> add fonts.dtd,

No, the libxml2 postinstall script shouldn't add fonts.dtd.  That should be 
added only when/if fontconfig is installed.  So it's an appropriate task for a 
fontconfig postinstall script.

> [TL;DR: We do not want to add more permanent postinstall scripts unless essential!

Making fontconfig_dtd.sh perpetual may or may not be essential, but it's the 
best way I can think of to solve the problem of this bug report.  Can you 
propose a better way?

> Permanent postinstall scripts can greatly extend the run time of the Cygwin
> Setup program, when fontconfig, man-db, or tex just seem to decide sometimes for
> some reason that another whole new world of fonts, man pages, or whatever has
> appeared that they have to reprocess,

If you see a perpetual postinstall script doing something time-consuming that 
you think is unnecessary, please make a bug report.

> pushing the Setup run time and service
> (cron) downtime to hours

I've never seen this.  Please give details.

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