Created attachment 203787 [details] patch Rails 4.2.11.1 depends on bundler >= 1.3.0 && < 2.0. https://github.com/rails/rails/blob/v4.2.11.1/rails.gemspec#L30
I'm not sure if this is really required. Regarding: https://bundler.io/whats_new.html Bundler version 2 switches automatically between version 1 and 2 depending on the lockfile. Maybe patching in this case rails4 and remove the < 2.0 is also an options, but should be tested.
For the record, I got this without this patch. As you say, patching to gemspec will work. ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Error: RubyGem dependency bundler < 2.0 is not satisfied. *** Error code 1 Stop. make[1]: stopped in /home/meta/FreeBSD/ports/head/www/rubygem-rails4 *** Error code 1
Created attachment 203793 [details] patch-gemspec I tested another option, I still got this: ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Error: RubyGem dependency bundler < 2.0 is not satisfied. *** Error code 1 Stop. make[1]: stopped in /home/meta/FreeBSD/ports/head/www/rubygem-rails4 *** Error code 1 Stop. make: stopped in /home/meta/FreeBSD/ports/head/www/rubygem-rails4
Created attachment 203794 [details] patch-gemspec The previous patch-gemspec is not complete, this builds fine.
Created attachment 203795 [details] patch-gemspec Oops, removed debugging make target.
Good that is what I meant. Now it is time to make some tests on Ports using this port to see if they break by this modification. Maybe redmine would by a candidate for this.
Comment on attachment 203787 [details] patch gemspec patch looks better. obsoleting this. gemspec patch needs to bump PORTREVISION.
All PRs you created are looking fine for me. If you think you do not break anything, please continue to commit them all.
A commit references this bug: Author: meta Date: Sat Apr 20 08:41:22 UTC 2019 New revision: 499429 URL: https://svnweb.freebsd.org/changeset/ports/499429 Log: www/rubygem-rails4: Remove bundler dependency pin on bundler < 2.0 To adapt upcoming update of sysutils/rubygem-bundler to 2.0.1. PR: 237379 Submitted by: meta (myself) Reviewed by: mfechner Changes: head/www/rubygem-rails4/Makefile head/www/rubygem-rails4/files/ head/www/rubygem-rails4/files/patch-gemspec
Committed, thanks for your help.