delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/27/18:26:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=oSu2dP2N8bYV9HYa
+DLaPN39IhCRuVMtYGL3Wh6gacAU7K1HHfWzSP5nWLJiWPIdD57PmfTr5RPxHDeV
AVplHDrEQyuL0cGJvnJc7IlLJnPpUxqRobUftJRS44fci0WrzYpWEn9KiFamIVvN
+pKGYoFPqJezXJzTZcrK8N7fkgA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=acDtN2ufhbcoi3DFOBWyTG
BRgHk=; b=eET/dbaKdJ6vDFAepM/aA1FuXcutbT1bpkbjp8sRuFQIbvF9AuPLqY
7VeivJ7P3GsHxqEtX8qnc9UDw5+YPzIAbAfYufPkkhBdzvXIYORWJzDZB8G9GEzb
lBIZ5OTTAaBPTwH4XHG0fi21iAfqkVV4n6MV0AXUUpnz/lZH6zHN8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Subject: Re: grace broken installation
To: cygwin AT cygwin DOT com
References: <CALjKttngKZNvwbD_0rooX-MswpyTgwqqA319SrGwYiX+nco0zQ AT mail DOT gmail DOT com> <ded9d542-4ef5-f4c9-5ae8-3c040ccfa9e7 AT t-online DOT de> <08de4c07-3ec9-d169-bb56-b53b4367da12 AT cornell DOT edu>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Message-ID: <8d3ef7a0-5fee-29e4-6642-791f3491b812@t-online.de>
Date: Tue, 28 Jan 2020 00:24:29 +0100
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>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019