Ghostscript cannot recognize CJK CID fonts

Bug #853768 reported by Mitsuya Shibata on 2011-09-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ghostscript (Debian)
Fix Released
Unknown
ghostscript (Ubuntu)
Undecided
Unassigned

Bug Description

Why recognize:
Ghostscript(libgs9-common) install empty(comment only) cidfmap to
/usr/share/ghostscript/9.04/Release/Init.

This file has high priority than /var/lib/ghostscript/fonts/cidfmap
which is generated by update-gsfontmap. And /var/.../cidfmap included
CJK CID fonts data which is provided by gs-cjk-resource.

Therefore, any gs-cjk-resource data is ignored and CJK fonts can't
render in gs and Evince.

Why is there empty cidfmap:
debian/rules already try to remove empty cidfmap at
binary-post-install/libgs9-common target[1].

However this target specify to remove file path in $(DEB_DESTDIR)
which equal to "debian/tmp/"[2], and previous dh_install call moves
cidfmap to debian/libgs9-common to build package[3].

Threfore, there is empty cidfmap in debian/libgs9-common, ships with
binary package.

Conclusion or how to fix:
1. Upstream cidfmap is empty, is not needed, therefore can remove.
2. binary-post-install/libgs9-common in debian/rules will exec after
   to call dh_install, thefore we should to remove cidfmap in
   debian/PACKAGE_NAME/ is not in debian/tmp.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531182

[2] http://build-common.alioth.debian.org/cdbs-doc.html#basic-settings
"This is automatically set to $(CURDIR)/debian/packagename if there
is one package and $(CURDIR)/debian/tmp if there are multiple packages."

[3] man dh_install
"On the other hand, maybe you have a large package that builds multiple
binary packages. You can use the upstream Makefile to install it all
into debian/tmp, and then use dh_install to copy directories and files
from there into the proper package build directories."

Related branches

Changed in ghostscript (Ubuntu):
status: New → In Progress
Mitsuya Shibata (cosmos-door) wrote :

@till-kamppeter
I created patch and sent to merge request. Could you review it?
https://code.launchpad.net/~cosmos-door/ubuntu/oneiric/ghostscript/fix-cidfmap-853768/+merge/76001

Changed in ghostscript (Ubuntu):
status: In Progress → Fix Committed
Till Kamppeter (till-kamppeter) wrote :

Merge approved, applied, and fix uploaded as ghostscript 9.04~dfsg-0ubuntu8. Thanks for the patch.

Till Kamppeter (till-kamppeter) wrote :

Note that the upload is in the beta 2 freeze approval queue and will most probably only get released after beta2 on Thursday.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghostscript - 9.04~dfsg-0ubuntu8

---------------
ghostscript (9.04~dfsg-0ubuntu8) oneiric; urgency=low

  * debian/rules: remove unneeded cidfmap correctly (LP: #853768)
 -- Mitsuya Shibata <email address hidden> Mon, 19 Sep 2011 19:58:46 +0900

Changed in ghostscript (Ubuntu):
status: Fix Committed → Fix Released
Changed in ghostscript (Debian):
status: Unknown → New
Changed in ghostscript (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.