Summary: | www/redmine: Outdated redmine port doesn't work with current mercurial version | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Alexander Ushakov <alexander> | ||||||
Component: | Individual Port(s) | Assignee: | Torsten Zuehlsdorff <tz> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | 000.fbsd, tz, yac | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(ruby) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Alexander Ushakov
2017-06-24 12:28:25 UTC
Created attachment 184155 [details]
Update to 3.2.7
Hello,
attached a patch which should bring redmine to 3.2.7. I did the last update, but its too long ago to remember all the specifics - so please be very careful when testing and have some backup!
If everything is fine i will commit the update.
Greetings,
Torsten
Is there any problem with committing this update? (In reply to Miroslav Lachman from comment #2) > Is there any problem with committing this update? Yes: missing feedback. I did the update "blindly" without having a possibility to test properly. So if someone can provide feedback i can commit it. Otherwise i need to find time for the test by myself, but my TODO list got big recently. (In reply to Torsten Zuehlsdorff from comment #3) OK, I will prepare local package and will test it in our environment. (In reply to Torsten Zuehlsdorff from comment #3) I am sorry for my late reply. Today I finally had time to test Redmine 3.2.7. It builds fine but it cannot be run without these modifications: 1) when I run # bundle exec rake generate_secret_token I got this error about mysql2 gem [!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements. You specified: mysql2 (~> 0.4.6) and mysql2 (~> 0.4.5). Bundler cannot continue. # from /usr/local/www/redmine/Gemfile:98 # ------------------------------------------- # Dir["#{File.dirname(__FILE__)}/bundler.d/*.rb"].each do |bundle| > self.instance_eval(Bundler.read_file(bundle)) # end # ------------------------------------------- There are two files with mysql2 definition # grep -sn mysql2 Gemfile bundler.d/mysql.rb Gemfile:60: when 'mysql2' Gemfile:61: gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw] bundler.d/mysql.rb:1:gem "mysql2", "~> 0.4.5" This fix was easy: # sed -i '' 's/0\.4\.5/0.4.6/' bundler.d/mysql.rb 2) # bundle exec rake generate_secret_token Could not find gem 'jquery-rails (~> 3.1.4)' in any of the gem sources listed in your Gemfile. # vi Gemfile #gem "jquery-rails", "~> 3.1.4" gem "jquery-rails", "~> 4.3.0" 3) # bundle exec rake generate_secret_token Could not find gem 'roadie-rails (~> 1.1.1)' in any of the gem sources listed in your Gemfile. # vi Gemfile #gem "roadie-rails", "~> 1.1.1" gem "roadie-rails", "~> 1.2.0" 4) # bundle exec rake generate_secret_token Could not find gem 'i18n (~> 0.7.0)' in any of the gem sources listed in your Gemfile. # vi Gemfile #gem "i18n", "~> 0.7.0" gem "i18n", "~> 0.8.5" And now everything works. I tested these commands: # bundle exec rake generate_secret_token # bundle exec rake db:migrate RAILS_ENV=production # bundle exec rake redmine:plugins:migrate RAILS_ENV=production Migrating redmine_checklists (Redmine Checklists plugin (Light version))... Migrating redmine_custom_css (Redmine Custom CSS plugin)... Migrating redmine_custom_js (Redmine Custom JS plugin)... Migrating redmine_wiki_extensions (Redmine Wiki Extensions plugin)... # bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production # service redmine start # service redmine status # tail -f /usr/local/www/redmine/log/thin.log Writing PID to tmp/pids/thin.pid Changing process privilege to www:www Using rack adapter Thin web server (v1.7.2 codename Bachmanity) Debugging ON Maximum connections set to 1024 Listening on 0.0.0.0:8080, CTRL+C to stop I don't know if my fixes are the right way because I don't know how Ruby gems work. I don't know how Gemfile and bundler.d/mysql is created (version numbers) but is should be changed to: bundler.d/mysql.rb 's/0.4.5/0.4.6/' Gemfile s/"jquery-rails", "~> 3.1.4"/"jquery-rails", "~> 4.3.0"/ s/"roadie-rails", "~> 1.1.1"/"roadie-rails", "~> 1.2.0"/ s/"i18n", "~> 0.7.0"/"i18n", "~> 0.8.5"/ Created attachment 186283 [details]
fixed patch to 3.2.7
Patch with fixes for mentioned dependencies version problems
I think my updated version can be committed. It builds fine in our Poudriere and pkg upgrade went fine too. A commit references this bug: Author: tz Date: Fri Sep 22 16:00:06 UTC 2017 New revision: 450393 URL: https://svnweb.freebsd.org/changeset/ports/450393 Log: www/redmine: Update from 3.2.3 to 3.2.7 Changelog: http://www.redmine.org/projects/redmine/wiki/Changelog_3_2 PR: 220251 Submitted by: Miroslav Lachman <000.fbsd@quip.cz> Reported by: Alexander Ushakov <alexander@polyvizor.com> Changes: head/www/redmine/Makefile head/www/redmine/distinfo head/www/redmine/files/mysql.rb head/www/redmine/files/patch-Gemfile head/www/redmine/pkg-plist Committed, thanks! :) |