[MacPorts] #19602: rb-rmagick fails to install ("unable to read font ... n022003l.pfb")
MacPorts
noreply at macports.org
Mon May 11 10:14:52 PDT 2009
#19602: rb-rmagick fails to install ("unable to read font ... n022003l.pfb")
----------------------------+-----------------------------------------------
Reporter: erik@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: rb-rmagick
----------------------------+-----------------------------------------------
I have a fresh OS-X install. I installed the XCode tools, MacPorts, and
then a limited number of ports. The rb-rmagick port fails despite this
being about as clean an install as one can get.
Here is the list of port operations I have invoked:
{{{
#> port install mercurial
#> port selfupdate
#> port install elinks freetype ghostscript graphviz jpeg libevent
lighttpd mercurial mysql5 openssl p5-dbd-mysql perl5.8 py25-sqlite3
python25 rb-rmagick ruby scons swig texlive zlib
}}}
The third operation hangs while installing rb-rmagick. If I run it with
the verbose flag I see the following:
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/misc.rb:322:in `get_type_metrics':
unable to read font
`/opt/local/lib/ImageMagick-6.5.2/config//opt/local/share/ghostscript/fonts/n022003l.pfb'
@ annotate.c/RenderFreetype/1316: `(null)' (Magick::ImageMagickError)
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/misc.rb:322:in `render'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/misc.rb:697:in `text'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/text.rb:65:in `add_primitives'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/container.rb:72:in `add_primitives'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/container.rb:72:in `each'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/container.rb:72:in `add_primitives'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/rvg.rb:264:in
`add_outermost_primitives'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/rvg.rb:264:in `each'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/rvg.rb:264:in
`add_outermost_primitives'
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_ruby_rb-
rmagick/work/RMagick-2.9.0/./lib/rvg/rvg.rb:236:in `draw'
from font_styles.rb:33
}}}
The offending font file is indeed missing at the specified location
(although the debug message says
/opt/local/lib/ImageMagick-6.5.2/config//opt/local/share/ghostscript/fonts/n022003l.pfb
it is actually looking in the more sane
/opt/local/share/ghostscript/fonts/n022003l.pfb).
I found a file with the same name in /opt/local/share/fonts/urw-
fonts/n022003l.pfb and soft-linked it to the location expected by the rb-
rmagick installation. This allowed the build to succeed.
1. The build should fail instead of hanging silently when this issue
occurs.
2. Is this font file supposed to be installed by ghostscript? One of my
colleagues has Ghostscript 8.62_1 installed and it does include the
missing font.
3. Otherwise, perhaps rb-rmagick needs to be updated to look for the font
in another location (i.e., was the font moved from ghostscript to urw-
fonts recently? I guess the rb-rmagick port needs to be updated with the
new location?)
--
Ticket URL: <http://trac.macports.org/ticket/19602>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list