From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-eopbgr750134.outbound.protection.outlook.com [40.107.75.134]) by sourceware.org (Postfix) with ESMTPS id 024A4385701E for ; Sat, 12 Sep 2020 12:56:29 +0000 (GMT) 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 Received: from MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) by MN2PR04MB6046.namprd04.prod.outlook.com (2603:10b6:208:dd::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.21; Sat, 12 Sep 2020 12:56:26 +0000 Received: from MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::c144:d206:c369:af44]) by MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::c144:d206:c369:af44%7]) with mapi id 15.20.3348.019; Sat, 12 Sep 2020 12:56:26 +0000 Subject: Re: postinstall: fontconfig abnormal exit To: cygwin@cygwin.com References: <782011494.20200910083521@yandex.ru> <5a2fdf46-93c8-048b-cadb-cb9d9212c716@SystematicSw.ab.ca> <20200910230426.5811f3e8@quarternote> <8f40571c-1a37-8e4b-f1bd-ecf40175d0d7@gmail.com> <179bbaf0-02b4-1c63-0083-5fa2a8833ea9@cornell.edu> <06e9cf44-8cc8-267e-12b3-e8a866a01c80@gmail.com> <87h7s45a4c.fsf@Rainer.invalid> <3305b90c-41f2-7377-092d-0f151a83da1c@cornell.edu> From: Ken Brown 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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 Received: from [IPv6:2604:6000:b407:7f00:ad88:231:3482:1c42] (2604:6000:b407:7f00:ad88:231:3482:1c42) by CH2PR18CA0038.namprd18.prod.outlook.com (2603:10b6:610:55::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Sat, 12 Sep 2020 12:56:26 +0000 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: 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@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: Sat, 12 Sep 2020 12:56:31 -0000 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