ports/160184: graphics/jpeg2pdf is broken with ruby 1.9, but does not report it
Oliver Heesakkers
dev2 at heesakkers.info
Thu Aug 25 14:00:22 UTC 2011
>Number: 160184
>Category: ports
>Synopsis: graphics/jpeg2pdf is broken with ruby 1.9, but does not report it
>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: Thu Aug 25 14:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Oliver Heesakkers
>Release: 8.2-RELEASE-p1 amd64
>Organization:
>Environment:
>Description:
Switching to ruby 1.9, I noticed that jpeg2pdf stopped to function. This is not evident in the build-process, but only when you want to use it:
<internal:lib/rubygems/custom_require>:29:in `require': /usr/local/lib/ruby/site_ruby/1.9/rpdf/document.rb:21: invalid multibyte char (US-ASCII) (SyntaxError)
/usr/local/lib/ruby/site_ruby/1.9/rpdf/document.rb:21: invalid multibyte char (US-ASCII)
/usr/local/lib/ruby/site_ruby/1.9/rpdf/document.rb:21: syntax error, unexpected $end, expecting keyword_end
bytes << "���\n" # Ensure file transfer...
^
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/ruby/site_ruby/1.9/rpdf.rb:30:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/ruby/site_ruby/1.9/jpeg2pdf.rb:30:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/bin/jpeg2pdf:33:in `<main>'
>How-To-Repeat:
Use graphics/jpeg2pdf with ruby 1.9
>Fix:
I realized I could write a shell script calling ImageMagick and ghostscript to get the same functionality, so I've dropped this port entirely.
The port needs either fixing or a warning to indicate that it's broken with ruby 1.9, something like:
.if ${RUBY_VER} == 1.9
BROKEN= does not work with ruby 1.9
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list