X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 159BD39874BB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1599858813;
	bh=WoWNAs6hu2I+uBCrIm677n+onCoYMV7MHk6fvkestXA=;
	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=j659lMaSjpyVab0mGS74n1qmVSxA5byKPqXYIFeCRt4JJG6+37JmEuAdV8YDlrMD9
	 ZoFcLD8Y4y5W+bm73B+zta/X2oRz1wuVd4kCnxF81yEWV9SgQeQQ2TDjy8JM9n101i
	 TELKgXnb6owhzK3Bs63r5IHxezZXdHrfO1AjSx/U=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ED6D8398751A
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=QNVTO/+QaO04BRLcpNI8fSBQPypGKGxZoE+uamRf1/v21+v4AvpVPzBtXYnfV0P2EJv9u5bYrV86qRM3Ef8fdFGH2OadyEnkNC9DxJiTrm+Icre7H3BHcpkdHNyXfTlsNzVBhXUuoPXeODf6pYTV/52me7wiroVBvnVUMFg1SKvdD7qOy1juHGGzrgUyTNQvqSfmyGP1bj41Wd+kLXLTdmb9DP1/FrrMWOFeg0PhQlTZfDJ4btioDJc4NW3DnXDDhK07y02FRqT74MCKRHGwb0pl6cdX5kA9nRN3XSnaYy6znOslifAK8FJ5FyFFD8wRioPz3Dky1Ll27X2V7LgL+A==
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=48wPfmiw7aXed/AyROMFv6ijCEhW5ZXgRMVK8Fa6YE0=;
 b=kKg+/cFZsukzSjLbLQ0dpo4cn2NngMCq9w8pM6XY2dIj1t7RUx7Kdc1A4EfcSW68H8upzUo8HVAbeX/rEtSFgZsAPzkjeNHJglTA3B8DW8rOTwUE2Bx3VuMbHmr9M3v2YYF3FbSiJbvkYoHyjwGzDi//iB1cQD0G3u/pWVkwSNn6FtpAeBEZjd+dTaQtKZGB0UHsjuBHNCmV9fulRjlN/iImtWnNllzdutIlrxwC8tqiTQTiPpwitH81dCwJSoLOmifzVaNr8gVdj3pk0vqBMxNL+blXNGb/geNUeWMtXa+yXvQmrn2QRFmOK5Pjkq4OTBrkq3g22wsU1K84+6Udow==
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@cygwin.com
References: <DB6PR03MB3013DDDB803E3E4B8EF8E935A4290@DB6PR03MB3013.eurprd03.prod.outlook.com>
 <106370283.20200908171659@yandex.ru>
 <DB6PR03MB30139A2A8B7ABC69F6F4CEC2A4290@DB6PR03MB3013.eurprd03.prod.outlook.com>
 <DB6PR03MB301312724F0DFF66AF9E796DA4270@DB6PR03MB3013.eurprd03.prod.outlook.com>
 <782011494.20200910083521@yandex.ru>
 <DB6PR03MB3013D1FD4D925B12A4022E98A4270@DB6PR03MB3013.eurprd03.prod.outlook.com>
 <5a2fdf46-93c8-048b-cadb-cb9d9212c716@SystematicSw.ab.ca>
 <20200910230426.5811f3e8@quarternote>
 <VI1PR03MB3022EBE68767183BCA4889ECA4240@VI1PR03MB3022.eurprd03.prod.outlook.com>
 <DB7PR02MB39967134A1C1169A8A406BE8E7240@DB7PR02MB3996.eurprd02.prod.outlook.com>
 <8f40571c-1a37-8e4b-f1bd-ecf40175d0d7@gmail.com>
 <179bbaf0-02b4-1c63-0083-5fa2a8833ea9@cornell.edu>
 <06e9cf44-8cc8-267e-12b3-e8a866a01c80@gmail.com>
 <ee4d59c7-00d3-a2e6-fa13-04622ed8391f@cornell.edu>
 <87h7s45a4c.fsf@Rainer.invalid>
Message-ID: <3305b90c-41f2-7377-092d-0f151a83da1c@cornell.edu>
Date: Fri, 11 Sep 2020 17:13:27 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.12.0
In-Reply-To: <87h7s45a4c.fsf@Rainer.invalid>
Content-Language: en-US
X-ClientProxiedBy: CH2PR05CA0057.namprd05.prod.outlook.com
 (2603:10b6:610:38::34) To MN2PR04MB6176.namprd04.prod.outlook.com
 (2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.0.17] (68.175.129.7) by
 CH2PR05CA0057.namprd05.prod.outlook.com (2603:10b6:610:38::34) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3391.6 via Frontend Transport; Fri, 11 Sep 2020 21:13:27 +0000
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 27c21872-c195-45ba-a294-08d856978724
X-MS-TrafficTypeDiagnostic: MN2PR04MB5599:
X-Microsoft-Antispam-PRVS: <MN2PR04MB55990A2B0648BBFE20E64AD8D8240@MN2PR04MB5599.namprd04.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 7vi3NcU1Sinrb4CmvSm4U5JCYWyMe19YuLkq9NEKtnzjx70N/CTtyfCQ4iWnfPpXJczF8iSLuDx0KyhphrCpf2corechtIHiBb4I1MZjoxNeNP2HeA9EuqfHK1jDimh86HVfqC6NU2GVC3chwhMG/sTW85UtGaYqy53qhfwuiywVCgA735uCCItbiOzMh2TWEqWfJSnfEfzZZnllFXNJmeAgjnlh4dC1BLbxcp1tfzmMRSPXuGEUmV/3gGXOSmDgaNcyDPO6qdg+Q521KCVVSVCV04PiT6YKaFFkifLm6hTGkPk/Sx2ZmJzQDpmcNNz61zYvlQbof2HnZTsG+jMW7UHo2sn1qBNSqbayoJjwj6h5o3sA6jkiMQbD03Zj+2NFPdr37AFC7/P/HXjnKzRpyK7lF9PY/Ck4Rw9K6weAp0bmZ7YQu3aJFu/M5urgfn3Xv8HW6fTQtIw8yKvybl3bLjJjuj2Ny4ccJ9f3IPZyFjU=
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)(39860400002)(346002)(366004)(376002)(136003)(396003)(66556008)(31686004)(6916009)(86362001)(26005)(786003)(75432002)(83380400001)(16576012)(316002)(2906002)(66946007)(16526019)(8936002)(5660300002)(53546011)(66476007)(6486002)(956004)(52116002)(8676002)(186003)(966005)(31696002)(478600001)(36756003)(2616005)(43740500002)(460985005);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData: BUaAOlHKa9xSIfCakD4h93JjnO8t6DDFBUFndPJQfCyNHwliUKBUcHnD08KJFv7KyJs/crYFqCgbTEBz671U3vDjl/e+tZV5qjeUYSN1z/0GOT6vVrHiLWrokCrJ5rrKjIU0QUMBzAMGDQdg2vHTYYdcb0TcCuXkeMVp2/c3bz0SU2OnJY8MaLtnuPowfIEz+MpC6Ijez/rP9zvaF0vlbRC+yBdTP7W2KVHhFpl2YgClcOJ1bTtzzR1JxZ0WLCBZvN2JhDyPuzITnfIUP6ZnLtekR2fLi3yZKjajOhMKZ8GjhezL54froBHkqaW6vz/j3suMn2G1n5Wctq9H6KVUAKLwVuqHSPLooj7RS37Sl+RsACqiVEc2c4mQRvqN95v+WtfTixs+sPvdFZ6/xk3tWyhpS6yMJy4Wd5DkT0PJmuqlm/98nKAsjpzybnawy9Q6kQMoaRes+4ErItrzNd6TOQdm4RgkWWWR3Qbuv1OO/M9q0C7O7kLy/rvrtmBrkwi9NTVI/amxfzBWhatBhhtsa+1vJ6HWZAwPZ5qsWR8LmFivolrBJI9w1v7kyeHtAP1pGOM1fx9BpbQUNWdtK5Wy8XhC2RGuQC02lL3afZmmEeAZXoZ1zcIQRbEKYYcMtgiu2rlAJjAI1O3y1jRL/TwPew==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 27c21872-c195-45ba-a294-08d856978724
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 21:13:28.2089 (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: srn2dfvdDfGD69je0FzI9QO69nTTgq9r3fkxvPuxiTz/fPFofksWLZojg1/HcpG8O5QE5EOQocax7Fn1kMZ2Ig==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5599
X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A,
 SPF_HELO_PASS, SPF_PASS, 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 <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin@cygwin.com>
Reply-To: Ken Brown <kbrown@cornell.edu>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

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.

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
