Bug 215505 - www/gitlab: 8.11.11_3 seems to expect different package versions than are provided by ports
Summary: www/gitlab: 8.11.11_3 seems to expect different package versions than are pro...
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: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-23 07:04 UTC by Martin Waschbüsch
Modified: 2016-12-23 10:50 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (tz)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Waschbüsch 2016-12-23 07:04:09 UTC
After upgrading gitlab from 8.11.11_1 to 8.11.11_3, I followed the instructions at:

https://github.com/t-zuehlsdorff/gitlabhq/blob/master/doc/update/freebsd_patch_versions.md

to bring the runtime environment up to date.

Running:

rm /usr/local/www/gitlab/Gemfile.lock

cd /usr/local/www/gitlab
rake db:migrate RAILS_ENV=production

resulted in:

Could not find gem 'jquery-rails (~> 4.1.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Comment 1 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-12-23 10:15:40 UTC
I put swills in CC because he broke it ;)

If you need a quick fix:
rm Gemfile.lock

And than modifiy the Gemfile replacing "~> 4.1.0" behind the jquery-rails entry with ">= 4.1.0". 
And than hope the best; i do not know if this causes runtime errors. This can occur if the API of the Gem has changed.
Comment 2 Martin Waschbüsch 2016-12-23 10:35:37 UTC
(In reply to Torsten Zuehlsdorff from comment #1)
The proposed workaround seems to do the job. Thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-12-23 10:50:00 UTC
A commit references this bug:

Author: tz
Date: Fri Dec 23 10:49:08 UTC 2016
New revision: 429243
URL: https://svnweb.freebsd.org/changeset/ports/429243

Log:
  www/gitlab: Unbreak after update of www/rubygem-jquery-rails4

  PR:          215505
  Reported by: Martin Waschb?sch <martin@waschbuesch.de>
  Approved by: mentors (implicit)

Changes:
  head/www/gitlab/Makefile
  head/www/gitlab/files/patch-Gemfile
Comment 4 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-12-23 10:50:48 UTC
Fixed now also in the ports, thanks for the report! :)