Bug 402551

Summary: ps2pdf exit with /invalidfileaccess error
Product: [Fedora] Fedora Reporter: CHIKAMA Masaki <masaki.chikama>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: hdegoede
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.61-5.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-20 19:52:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235704    

Description CHIKAMA Masaki 2007-11-28 11:31:05 UTC
Description of problem:
The cidfmap provided by fonts-japanese has an absolute path to
TrueType font. (/usr/share/fonts/sazanami-fonts-mincho/sazanami-mincho.ttf etc)
But the directory /usr/share/fonts/sazanami-fonts-mincho/ is not
one of permitted directory. This leads p2spdf to find 
sazanami-mincho.ttf failaure.

Version-Release number of selected component (if applicable):
ghostscript-8.60-5.fc8, but currently can't reproduce because of 
Bug #402481 and Bug #402501


How reproducible:
always

Steps to Reproduce:
1. ps2pdf test-euc.ps 
(please pickup test-euc.ps from here 
https://bugzilla.redhat.com/attachment.cgi?id=116741)
2.
3.
  
Actual results:
Exit with this error.

Error: /invalidfileaccess in /findfont
Operand stack:
   GothicBBB-Medium-EUC-H
Execution stack:

Expected results:
produce test-euc.pdf

Additional info:
Here is Workaround.

GS_LIB=/usr/share/fonts/sazanami-fonts-gothic:/usr/share/fonts/sazanami-fonts-mincho
 ps2pdf test-euc.ps

Comment 1 CHIKAMA Masaki 2007-11-28 12:18:22 UTC
Proper workaround.
ps2pdf -dNOSAFER test-euc.ps

Comment 2 Tim Waugh 2007-11-28 13:20:54 UTC
Or alternatively, perhaps ghostscript could be compiled with /usr/share/fonts in
the fontpath.

Comment 3 Fedora Update System 2007-11-29 01:32:19 UTC
ghostscript-8.61-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ghostscript'

Comment 4 CHIKAMA Masaki 2007-11-29 10:48:13 UTC
Thank you. 
With ghostscript-8.61-1.fc8, ps2pdf works without -dNOSAFER.

Please close this bug.

Comment 5 Akira TAGOH 2007-11-29 11:34:53 UTC
*** Bug 402691 has been marked as a duplicate of this bug. ***

Comment 6 Hans de Goede 2007-11-29 21:52:38 UTC
I'm seeing this too, when building libtheora for -devel, as libtheora's docs
building uses ghostscript, see:
http://koji.fedoraproject.org/koji/getfile?taskID=266202&name=build.log


Comment 7 CHIKAMA Masaki 2007-11-30 02:09:16 UTC
(In reply to comment #6)
> I'm seeing this too, when building libtheora for -devel, as libtheora's docs
> building uses ghostscript, see:
> http://koji.fedoraproject.org/koji/getfile?taskID=266202&name=build.log

Now cidfmap reads cidfmap.{ja|ko|zn_CN|zn_TW}.
So you have to install fonts-japanese, fonts-korean, fonts-chineses
to execute gs. Fedora8 installs them by default, but It's not good to 
force to install them for building packages. I don't have good idea.

Comment 8 Hans de Goede 2007-11-30 08:25:12 UTC
(In reply to comment #7)
> Now cidfmap reads cidfmap.{ja|ko|zn_CN|zn_TW}.
> So you have to install fonts-japanese, fonts-korean, fonts-chineses
> to execute gs. Fedora8 installs them by default, but It's not good to 
> force to install them for building packages. I don't have good idea.

Nasty, I'll just add BuildRequires on those font packages as a workaround for
now. Let me know when I can remove them again.


Comment 9 Tim Waugh 2007-11-30 12:06:01 UTC
This should be fixed in rawhide now (ghostscript-6.51-5.fc9).

Comment 10 Tim Waugh 2007-11-30 12:06:16 UTC
Er.. 8.61-5.fc9

Comment 11 Hans de Goede 2007-11-30 12:26:43 UTC
Ok,

I'll fire another libtheora build (without requires on the font packages) when
I'm back home (and have access to my private-key / ssl certificates).

I'll let you know how that goes.



Comment 12 Hans de Goede 2007-11-30 20:21:50 UTC
libtheora (without any additional BuildRequires) builds fine now.


Comment 13 Fedora Update System 2007-12-03 11:38:31 UTC
ghostscript-8.61-4.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ghostscript'

Comment 14 Fedora Update System 2007-12-12 19:52:30 UTC
ghostscript-8.61-4.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ghostscript'

Comment 15 Fedora Update System 2007-12-15 17:49:16 UTC
ghostscript-8.61-5.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ghostscript'

Comment 16 Fedora Update System 2007-12-20 19:52:52 UTC
ghostscript-8.61-5.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.