From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2093.outbound.protection.outlook.com [40.107.220.93]) by sourceware.org (Postfix) with ESMTPS id DAEEB386F027 for ; Fri, 11 Sep 2020 19:47:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DAEEB386F027 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ptamx72hmH+TmTv0e6NdEEIyPtqAJ/YV8moCoOg2JyaWMpBhbCk8mdfl1ybr7TL7oBMkKwY+t0lco5/8egknyLpEnckEDuT6fF7oyWswE2OFcJwEpvuIRxCN1edpNx2IcVPwCK1ruSVsu3mYhXLI6cUSCrVzgcs+MdD3dN217oVDP6h01jS1ofDXjCUEoEAF9VnD7j9Qh/pwoGm6lZj8f0oyeqKaQ1Nw3cgyhbPwjmPoVLflrgwiAEkQmgWS0wmLXw6z9Hzkzfal6H8LgXM2lyGJ45YBwO6nPRv2XdKkQ/SnTlRP3IjkZHqKWygIFQ+BmiQZdecEQjSpp+vJGngMIw== 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=9aTjoZ7OGmdEQvECkTnOZTT1eZpS425T4H/u5Hbs/tY=; b=BoKxBQH+gG5SMRdGEj2RFK0oQUkrVcG456YelQSJDLk1E7dGeaDlu4Bgtpgt7w9h2tboDKBX6Cl7bKxHu6FkgriJBPnQd7m/E5GKqi5Yscvgq1c+kSxnFMDfbuGCL+gbCjbyWfcp/xb7wEehP0Sv6BjM0+4NZ7dy7T11kJUqHboxf5MFiPfdDxFXoXjapJsaW42XQtpJRT9+l08Rl48pD5COUj6ArJ3mD6oSy9/7a1ki7cIX2mT9lbwhTF20UP/N50RbA5fQ+6LTtqjuFJjL476tvOMxWgQHWuR+hszi4u6vbArFK20a5o3hUhwILKi6BUrUNU4m5MCZBQaDCTxJ+w== 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 MN2PR04MB5773.namprd04.prod.outlook.com (2603:10b6:208:3a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Fri, 11 Sep 2020 19:47:16 +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; Fri, 11 Sep 2020 19:47:16 +0000 Subject: Re: postinstall: fontconfig abnormal exit To: cygwin@cygwin.com References: <106370283.20200908171659@yandex.ru> <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> From: Ken Brown Message-ID: Date: Fri, 11 Sep 2020 15:47:14 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: <06e9cf44-8cc8-267e-12b3-e8a866a01c80@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: CH2PR04CA0025.namprd04.prod.outlook.com (2603:10b6:610:52::35) 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 CH2PR04CA0025.namprd04.prod.outlook.com (2603:10b6:610:52::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 19:47:15 +0000 X-Originating-IP: [68.175.129.7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5e01877c-824c-49fa-b0d8-08d8568b7c3c X-MS-TrafficTypeDiagnostic: MN2PR04MB5773: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wIvlH922FXELYWMIdGV9eLtNTTKiPDBZ3hhk1G0+SQ/QCkkP0ZIMjz7VbhSa3sasKpWuB91jF9lWBKeK0RT2ue2fjeiATWY05YIHhM8LUapPmMtfJL130t+BIVPxSAoEJJ7RsA2BMHlzFnAwdT841/RlI3sbpqvt5/t+scrt0lxzyjGXMUcBrNffSDtrtIrAy/YMm5R34pRhuRf4YMITHApYQfkGO2grCsHJ/H+RhRaUhB45mBOEBi+NGb9Mnzq8BaZ4ZNsFbk/TsmsFScwHRoCOnZhRNPh/AT+OY4GjvY7zlDx1CxB4IKaV3R5nGbY+pWGqNTa6LBF7sUjRGCVLdzu7oo+u8KT1yEciAu2oyM8p5fK6cRVBigNqc4rg7NE0yHPdwV1GGcAgFZUlL+2M2g== 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)(366004)(396003)(39860400002)(376002)(346002)(136003)(786003)(8936002)(86362001)(8676002)(956004)(83380400001)(6486002)(2616005)(2906002)(6916009)(66946007)(5660300002)(66556008)(31696002)(478600001)(75432002)(316002)(16576012)(66476007)(31686004)(16526019)(186003)(36756003)(52116002)(26005)(53546011)(43740500002)(460985005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Hna5ZLEY+lEAmkImzff/Pu+JZt+CTxGWhhHrI+OG1Hl8K962A52P6mWdo+GEZeJ77niYXFYGrJn1/p5MG1J5/IR4fRiQV9ApsnROOH47b2CR5fMeAwc+3oB1aTsrzxtAgBYdTA/KlRpSvH/7qvP84n4Izo1P+F3JPOKMt0t0Pg4sbHkNKdJAA/dt4/UlkKJL8YcnxXeMqOGd1swuTY3iVRmeZZabRPafYqZRBpM6GdU/r5VhucF+YKKUxZwCFc4NvCHI+7Mb7y5EJbCF0n6gdGkgkIYXK9AnU/w7sAeg2iDpfsifs9u0P9L58V3I0cmi0EBBZaSljS9g5e1WkdU/sr4dXwYq0d7CChv3Q2q3us84UWeEEtyzGWa52/LETkse8vkxVfzSDFbv6b/uQmZRZe2klZUyha/nbJbeR9IQQwOJG/9azn7Xvp+A7pLfSs9eIuJ75yEmBLdNHGvTi5GGXF8NCoXIiAtsJwjrSbXMdra9WNXj3VEbxpLudSGvmwqyQXzIUyxFu8HP/gr6QeeR1IdaxyzTr6bBRl9sXa7CEk4dDY7kOxJZrMX7haYI9A5Ux1uCqxgfs5HFOb+KZjDy3ziywLRgetnRTDsPKIWPBZ/KiDKs+hHMEMrPgTgDg3U2fQS2QZ6PPz8SSpdTba8igw== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 5e01877c-824c-49fa-b0d8-08d8568b7c3c X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 19:47:16.0418 (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: yhrxCbaAZyGa2nSynmCu+lq0htEMC8y77abmcFXJaM4w8OlYjvASz8ZX6wi5RXISXOMQkmEEFnF89Szhllw0jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5773 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_INVALID, DKIM_SIGNED, JMQ_SPF_NEUTRAL, 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: Fri, 11 Sep 2020 19:47:20 -0000 On 9/11/2020 10:41 AM, Marco Atzeri via Cygwin wrote: > On 11.09.2020 15:12, Ken Brown via Cygwin wrote: >> On 9/11/2020 7:31 AM, Marco Atzeri via Cygwin wrote: >>> On 11.09.2020 10:32, Hamish McIntyre-Bhatty via Cygwin wrote: >>>> On 11/09/2020 08:22, Fergus Daly via Cygwin wrote: >>>>>> On 2020-09-10 04:57, Fergus Daly via Cygwin wrote: >>>>>>>>>> Sorry if this has been asked 4 million times already. > >>> >>> Installing just base+fontconfig is not providing any error, >>> so it must be an interaction of fontconfig with some other package >> >> You can reproduce the problem by doing a fresh install and choosing >> libfontconfig-common and libxml2.  setup.log.full shows >> >> running: C:\cygwin64temp\bin\bash.exe --norc --noprofile >> "/etc/postinstall/fontconfig_dtd.sh" >> could not open /etc/xml/catalog for saving >> >> Marco, libxml2 used to have a postinstall script that would create >> /etc/xml/catalog: >> >> $ cat /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 >> >> But this seems to have disappeared from the most recent release. > > noted. > libxml2-2.9.10-2 on the build stage 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. So maybe fontconfig_dtd.sh should be modified to include the contents of libxml2.sh, like this: $ cat fontconfig_dtd.sh if [ -x /usr/bin/xmlcatalog ] ; then if [ ! -f /etc/xml/catalog ] ; then /bin/mkdir -p /etc/xml /usr/bin/xmlcatalog --noout --create /etc/xml/catalog fi /usr/bin/xmlcatalog --noout --add "system" "fonts.dtd" /usr/share/xml/fontconfig/fonts.dtd /etc/xml/catalog fi I can do a non-maintainer update of fontconfig that makes this change if people agree that it's a good idea. Ken