From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2476 invoked by alias); 27 Jan 2020 23:24:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2255 invoked by uid 89); 27 Jan 2020 23:24:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=20200128, 2020-01-28, science, Science X-HELO: mailout07.t-online.de Received: from mailout07.t-online.de (HELO mailout07.t-online.de) (194.25.134.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Jan 2020 23:24:36 +0000 Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de [172.20.26.150]) by mailout07.t-online.de (Postfix) with SMTP id 12A7C4215F7C for ; Tue, 28 Jan 2020 00:24:34 +0100 (CET) Received: from [192.168.178.26] (XdfkQEZYohe01TQ4A7ZQnr+Hkmj1-edwx72PRIHMtJk+d7y1MjcRovSzkCe4g3CZET@[79.228.65.18]) by fwd06.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1iwDk5-2DFbUG0; Tue, 28 Jan 2020 00:24:29 +0100 Subject: Re: grace broken installation To: cygwin@cygwin.com References: <08de4c07-3ec9-d169-bb56-b53b4367da12@cornell.edu> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: <8d3ef7a0-5fee-29e4-6642-791f3491b812@t-online.de> Date: Mon, 27 Jan 2020 23:24:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <08de4c07-3ec9-d169-bb56-b53b4367da12@cornell.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00263.txt.bz2 Am 27.01.2020 um 13:58 schrieb Ken Brown: > On 1/26/2020 10:25 PM, Hans-Bernhard Bröker wrote: >> Am 25.01.2020 um 15:23 schrieb Rodrigo Medina: >>> Hi, >>> Both   installations of grace-5.1.24 and grace-5.1.245 are  broken. >>> /usr/bin/xmgrace.exe runs but gives the message: >>> --> Broken or incomplete installation - read the FAQ! >>> and then quits. >> After reading the FAQ and comparing with a direct build from upstream sources, I >> find the reason for that is that the FontDataBase file of the distributed >> package is, indeed, wrong. >> Apparently the type1 font directory supplied by grace was replaced by a link to >> ghostscript's type1 font repository.  But the FontDataBase wasn't updated to >> match this change.  This mismatch causes xmgrace to baulk.  This change was made >> between revisions 5.1.24 and 5.1.25 of the cygwin package, which neatly explains >> why 5.1.24 works, but 5.1.25 does not. > > See > > https://cygwin.com/ml/cygwin/2018-03/msg00142.html > https://cygwin.com/ml/cygwin/2018-03/msg00156.html Yes, that's about what I figured. The fonts supplied by xmgrace were replaced (in the cygport file) by a link to ghostscript's fonts, but then those were replaced by URW fonts, which broke xmgrace. OTOH the particular font files xmgrace is looking for are in yet another place on Cygwin: /usr/share/X11/fonts/urw-fonts And indeed, making the /usr/share/grace/fonts/type1 symlink point there does appear to fix the breakage. So the minimal patch to grace.cygport (other than just leaving the type1 directory of xmgrace alone) would be: $ diff -uwp grace.cygport{~,} --- grace.cygport~ 2017-06-27 09:43:32.000000000 +0200 +++ grace.cygport 2020-01-28 00:08:56.345429500 +0100 @@ -78,7 +78,7 @@ src_install() { rmdir doc ln -sf ../doc/${NAME} doc rm -fr fonts/type1 - ln -sf /usr/share/ghostscript/fonts fonts/type1 + ln -sf /usr/share/X11/fonts/urw-fonts fonts/type1 popd make_desktop_entry xmgrace Grace xmgrace "Education;Science;DataVisualization;Motif" An additional/changed dependency on the urw-base35-fonts-legacy package would probably be needed, but I'll have to leave that to people who understand Cygwin packaging. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple