Ghostscript cannot recognize CJK CID fonts

Bug #853768 reported by Mitsuya Shibata
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ghostscript (Debian)
Fix Released
ghostscript (Ubuntu)

Bug Description

Why recognize:
Ghostscript(libgs9-common) install empty(comment only) cidfmap to

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.


"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
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

I created patch and sent to merge request. Could you review it?

Changed in ghostscript (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

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

Revision history for this message
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.

Revision history for this message
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.