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>' 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 How-To-Repeat: Use graphics/jpeg2pdf with ruby 1.9
Maintainer of graphics/jpeg2pdf, Please note that PR ports/160184 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/160184 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->swills I'll take it.
State Changed From-To: feedback->closed Committed. Thanks!
swills 2011-10-22 17:44:41 UTC FreeBSD ports repository Modified files: graphics/jpeg2pdf Makefile Log: - Mark broken with Ruby 1.9 (builds OK, doesn't run) PR: ports/160184 Submitted by: Oliver Heesakkers <dev2@heesakkers.info> Approved by: maintainer timeout (>9 weeks) Revision Changes Path 1.2 +7 -1 ports/graphics/jpeg2pdf/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"