Date: Thu, 25 Aug 2011 13:57:47 GMT From: Oliver Heesakkers <dev2@heesakkers.info> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160184: graphics/jpeg2pdf is broken with ruby 1.9, but does not report it Message-ID: <201108251357.p7PDvleE049853@red.freebsd.org> Resent-Message-ID: <201108251400.p7PE0MYP014404@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108251357.p7PDvleE049853>