From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 22 04:00:22 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5195106566B for ; Wed, 22 Aug 2012 04:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A6E478FC15 for ; Wed, 22 Aug 2012 04:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7M40M3t015512 for ; Wed, 22 Aug 2012 04:00:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7M40M2U015511; Wed, 22 Aug 2012 04:00:22 GMT (envelope-from gnats) Resent-Date: Wed, 22 Aug 2012 04:00:22 GMT Resent-Message-Id: <201208220400.q7M40M2U015511@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hiroto Kagotani Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07F821065670; Wed, 22 Aug 2012 03:56:12 +0000 (UTC) (envelope-from kagotani@serv52.infsys.cne.okayama-u.ac.jp) Received: from serv52.infsys.cne.okayama-u.ac.jp (serv52.infsys.cne.okayama-u.ac.jp [150.46.6.52]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8B78FC0A; Wed, 22 Aug 2012 03:56:10 +0000 (UTC) Received: from serv52.infsys.cne.okayama-u.ac.jp (localhost [127.0.0.1]) by serv52.infsys.cne.okayama-u.ac.jp (8.14.5/8.14.5) with ESMTP id q7M3YW6T043132; Wed, 22 Aug 2012 12:34:32 +0900 (JST) (envelope-from kagotani@serv52.infsys.cne.okayama-u.ac.jp) Received: (from root@localhost) by serv52.infsys.cne.okayama-u.ac.jp (8.14.5/8.14.5/Submit) id q7M3YWJc043131; Wed, 22 Aug 2012 12:34:32 +0900 (JST) (envelope-from kagotani) Message-Id: <201208220334.q7M3YWJc043131@serv52.infsys.cne.okayama-u.ac.jp> Date: Wed, 22 Aug 2012 12:34:32 +0900 (JST) From: Hiroto Kagotani To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: x11@FreeBSD.org Subject: ports/170852: [PATCH] x11-fonts/encodings: encodings.dir includes bogus entries X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 04:00:23 -0000 >Number: 170852 >Category: ports >Synopsis: [PATCH] x11-fonts/encodings: encodings.dir includes bogus entries >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 22 04:00:22 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Hiroto Kagotani >Release: FreeBSD 9.0-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD myhost.mydomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 >Description: This is closely related to my comments on PR ports/170108. Since only *.enc.gz files are installed while the encodings.dir file is genareted for directories containing both *.enc and *.enc.gz files, the installed encodings.dir file includes bogus entries for *.enc. It causes libfontenc to fail to find encoding files, then X to fail to open TrueType fonts with some encodings such as ascii-0 or jisx0208.1990-0. Added file(s): - files/patch-Makefile.in - files/patch-large__Makefile.in Port maintainer (x11@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix) >How-To-Repeat: Just install x11-fonts/encodings. /usr/local/lib/X11/fonts/encodings/encodings.dir file includes entries for *.enc files, which are not installed in that directory. >Fix: --- encodings-1.0.4,1.patch begins here --- diff -ruN --exclude=CVS ../encodings.orig/files/patch-Makefile.in ./files/patch-Makefile.in --- ../encodings.orig/files/patch-Makefile.in 1970-01-01 09:00:00.000000000 +0900 +++ ./files/patch-Makefile.in 2012-08-22 11:38:19.000000000 +0900 @@ -0,0 +1,15 @@ +--- ./Makefile.in.orig 2010-10-30 12:54:30.000000000 +0900 ++++ ./Makefile.in 2012-08-22 01:05:13.000000000 +0900 +@@ -795,6 +795,12 @@ + $(AM_V_GEN)$(GZIP) -c < $< > $@ + + encodings.dir: $(DATA_FILES) ++ mkdir -p tmp large/tmp ++ mv *.enc tmp ++ mv large/*.enc large/tmp + $(AM_V_GEN)$(MKFONTSCALE) -b -s -l -n -r -p $(encodingsdir) -e . -e large . ++ mv large/tmp/*.enc large ++ mv tmp/*.enc . ++ rmdir tmp large/tmp + + .PHONY: ChangeLog INSTALL diff -ruN --exclude=CVS ../encodings.orig/files/patch-large__Makefile.in ./files/patch-large__Makefile.in --- ../encodings.orig/files/patch-large__Makefile.in 1970-01-01 09:00:00.000000000 +0900 +++ ./files/patch-large__Makefile.in 2012-08-22 11:39:35.000000000 +0900 @@ -0,0 +1,13 @@ +--- ./large/Makefile.in.orig 2010-10-30 12:54:30.000000000 +0900 ++++ ./large/Makefile.in 2012-08-22 01:06:03.000000000 +0900 +@@ -429,6 +429,10 @@ + $(AM_V_GEN)$(GZIP) -c < $< > $@ + + encodings.dir: $(DATA_FILES) ++ mkdir -p tmp ++ mv *.enc tmp + $(AM_V_GEN)$(MKFONTSCALE) -b -s -l -n -r -p $(encodingsdir) -e . . ++ mv tmp/*.enc . ++ rmdir tmp + + # Tell versions [3.59,3.63) of GNU make to not export all variables. --- encodings-1.0.4,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: