Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2012 12:34:32 +0900 (JST)
From:      Hiroto Kagotani <hiroto.kagotani@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        x11@FreeBSD.org
Subject:   ports/170852: [PATCH] x11-fonts/encodings: encodings.dir includes bogus entries
Message-ID:  <201208220334.q7M3YWJc043131@serv52.infsys.cne.okayama-u.ac.jp>
Resent-Message-ID: <201208220400.q7M40M2U015511@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208220334.q7M3YWJc043131>