Bug 192689 - archivers/rubygem-bzip2 broken with ruby 2.1
Summary: archivers/rubygem-bzip2 broken with ruby 2.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 20:14 UTC by Paul Mather
Modified: 2014-08-23 18:39 UTC (History)
1 user (show)

See Also:


Attachments
Poudriere build log showing failure to build port on RELENG_9_3 with Ruby 2.1 (8.93 KB, text/plain)
2014-08-15 20:14 UTC, Paul Mather
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Mather 2014-08-15 20:14:27 UTC
Created attachment 145836 [details]
Poudriere build log showing failure to build port on RELENG_9_3 with Ruby 2.1

The archivers/rubygem-bzip2-0.2.7_1 port fails to install because it fails to build the native extensions for the gem.  It appears this is a known issue: https://github.com/brianmario/bzip2-ruby/issues/19 and the issue thread suggests this fork fixes the problem: https://github.com/chewi/bzip2-ruby

The most recent commit (https://github.com/chewi/bzip2-ruby/commit/92d492c2b40c32a5c039314666655ebc2f52a817#diff-d41d8cd98f00b204e9800998ecf8427e) claims to fix it so that it will build with Rubinius; Ruby 2.0; Ruby 2.1; etc.  Note, the port builds fine on Ruby 1.9.

I've attached a poudriere build log showing the build failure with the current port when building on a RELENG_9_3 jail with "ruby=2.1" as part of DEFAULT_VERSIONS.

Cheers,

Paul.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-15 20:28:53 UTC
over to maintainer group.
Comment 2 commit-hook freebsd_committer freebsd_triage 2014-08-23 18:36:36 UTC
A commit references this bug:

Author: swills
Date: Sat Aug 23 18:36:14 UTC 2014
New revision: 365768
URL: http://svnweb.freebsd.org/changeset/ports/365768

Log:
  archivers/rubygem-bzip2: fix build with ruby 2.1

  PR:		192689
  Submitted by:	Paul Mather <paul@gromit.dlib.vt.edu>
  Obtained from:	https://github.com/chewi/bzip2-ruby/commit/92d492c2b40c32a5c039314666655ebc2f52a817

Changes:
  head/archivers/rubygem-bzip2/Makefile
  head/archivers/rubygem-bzip2/files/patch-ext__bzip2.c
Comment 3 Steve Wills freebsd_committer freebsd_triage 2014-08-23 18:39:31 UTC
Modified version of fix committed. That gem has had a lot of changes in it's github repo since it's last release, but based on discussion, someone needs to clean up that gem a lot or we need to find an alternative to this gem. For now, this fix will do.