Bug 193600 - sysutils/vagrant: Broken by update to sysutils/rubygem-bundler
Summary: sysutils/vagrant: Broken by update to sysutils/rubygem-bundler
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: easy, patch, regression
Depends on:
Blocks:
 
Reported: 2014-09-13 09:41 UTC by Christopher Hall
Modified: 2014-09-24 14:32 UTC (History)
4 users (show)

See Also:


Attachments
Proposed patch (1.30 KB, patch)
2014-09-14 14:58 UTC, Steve Wills
koobs: maintainer-approval? (joe)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Hall 2014-09-13 09:41:16 UTC
Running vagrant produces the error below 

% vagrant
/usr/local/lib/ruby/site_ruby/2.0/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (< 1.7.0, >= 1.5.2) amongst [akami-1.0.0, arrayfields-4.9.2, builder-3.0.4, bundler-1.7.2, celluloid-0.16.0, childprocess-0.5.3, chronic-0.10.2, diff-lcs-1.2.5, erubis-2.7.0, fattr-2.2.2, ffi-1.9.3, gssapi-1.0.2, gyoku-0.4.6, hitimes-1.2.2, hoe-3.12.0, httpclient-2.4.0, httpi-0.9.7, i18n-0.6.11, json_pure-1.8.1, listen-2.7.9, little-plugger-1.1.3, log4r-1.1.10, logging-1.8.2, main-6.0.0, map-6.5.4, multi_json-1.10.1, net-scp-1.1.2, net-ssh-2.7.0, nokogiri-1.6.3.1, nori-1.0.3, rack-1.4.5, rb-fsevent-0.9.4, rb-inotify-0.9.5, rb-kqueue-0.2.3, rspec-3.0.0, rspec-core-3.0.4, rspec-expectations-3.0.4, rspec-mocks-3.0.4, rspec-support-3.0.4, ruby-termios-0.9.6, rubyntlm-0.1.1, savon-0.9.5, timers-4.0.0, timers-1.1.0, uuidtools-2.1.5, vagrant-1.6.5, vagrant-1.6.3, wasabi-1.0.0, wdm-0.1.0, winrm-1.1.3] (Gem::LoadError)
	from /usr/local/lib/ruby/site_ruby/2.0/rubygems/specification.rb:778:in `block in activate_dependencies'
	from /usr/local/lib/ruby/site_ruby/2.0/rubygems/specification.rb:767:in `each'
	from /usr/local/lib/ruby/site_ruby/2.0/rubygems/specification.rb:767:in `activate_dependencies'
	from /usr/local/lib/ruby/site_ruby/2.0/rubygems/specification.rb:751:in `activate'
	from /usr/local/lib/ruby/site_ruby/2.0/rubygems.rb:1232:in `gem'
	from /usr/local/bin/vagrant:22:in `<main>'

It seems that there ws a recent update of sysutils/rubygem-bundler by swills, SVN=366146 thane updated bundler to 1.7.2.  However vagrant has a gemspec file that contains:

s.add_dependency "bundler", ">= 1.5.2", "< 1.7.0"

Manually changing the 1.7.0 to 1.8.0 in the port's work dir just after make extract, then doing "make reinstall" appears to work.  Only limited testing done: up, provision, ssh and halt.

I noted this on the vagrant github issues page as: https://github.com/mitchellh/vagrant/issues/4500
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-13 09:41:16 UTC
Maintainers CC'd
Comment 2 Steve Wills freebsd_committer freebsd_triage 2014-09-14 14:58:55 UTC
Created attachment 147315 [details]
Proposed patch
Comment 3 Jimmy Olgeni freebsd_committer freebsd_triage 2014-09-18 19:47:13 UTC
+1, saved my Vagrant. Thanks!
Comment 4 joe 2014-09-23 18:08:07 UTC
The proposed patch seems reasonable to me. Please apply it.
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-09-24 14:31:47 UTC
A commit references this bug:

Author: swills
Date: Wed Sep 24 14:31:22 UTC 2014
New revision: 369181
URL: http://svnweb.freebsd.org/changeset/ports/369181

Log:
  syusutils/vagrant: fix with newer bundler

  Adding a patch to make bundler work with the newer version of rubygem-bundler

  PR:		193600
  Submitted by:	swills (myself)
  Approved by:	Joe Benden <joe@thrallingpenguin.com> (maintainer)

Changes:
  head/sysutils/vagrant/Makefile
  head/sysutils/vagrant/files/patch-vagrant.gemspec
Comment 6 Steve Wills freebsd_committer freebsd_triage 2014-09-24 14:32:51 UTC
Fix committed, thanks!