Bug 224232

Summary: www/gitlab: rubygem-pg was upgraded - Gemfile needs update
Product: Ports & Packages Reporter: gdinolt
Component: Individual Port(s)Assignee: Torsten Zuehlsdorff <tz>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (tz)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description gdinolt 2017-12-10 21:54:13 UTC
Attempting to configure gitlab after installation fails with error:

You have requested:
  pg ~> 0.18.2

The bundle currently has pg locked at 0.21.0.
Try running `bundle update pg`

If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
Run `bundle install` to install missing gems.
...
--- 


Freebsd: FreeBSD gitlab 11.1-STABLE FreeBSD 11.1-STABLE #5 r326612

Portrevision: Revision: 455881

Gitlab and support files built from ports.

Gitlab configuration instructions followed from:
http://gitlab.toco-domains.de/FreeBSD/GitLab-docu/blob/master/install/10.1-freebsd.md

Gitlab seems to work if /usr/local/www/gitlab/Gemfile is updated to point to currently installed rubygem-pg file: ports r455881 (databases/rubygem-pg), rubygem-pg version 0.21.0

15c15
< gem 'pg', '~> 0.18.2', group: :postgres
---
> gem 'pg', '~> 0.21.0', group: :postgres
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-12-12 10:54:39 UTC
A commit references this bug:

Author: tz
Date: Tue Dec 12 10:54:13 UTC 2017
New revision: 456116
URL: https://svnweb.freebsd.org/changeset/ports/456116

Log:
  www/gitlab: Update from 10.1.4 to 10.1.5

  Also:
  - remove %%RUBY_SUFFIX%% from plist (thanks to swills)
  - fix broken dependency to rubygem-pg in Gemfile
  - fix broken dependency to rubygem-mysql2 in Gemfile
  - Add support for reverse proxies in rc script
  - Fix: gitlab starts even if gitlab_enable is not set
  - Make default listenAddr configurable

  PR:           224232 222896 220126 218388
  Submitted by: swills, gdinolt@pacbell.net, max@mober.at, Mari?n ?ern? <majo-bugs.freebsd.org@cerny.sk>
  Reviewed by:  tz
  Approved by:  maintainer
  Differential Revision:	https://reviews.freebsd.org/D12376

Changes:
  head/www/gitlab/Makefile
  head/www/gitlab/distinfo
  head/www/gitlab/files/gitlab.in
  head/www/gitlab/files/patch-Gemfile
  head/www/gitlab/files/patch-config_database.yml.postgresql
  head/www/gitlab/pkg-plist
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-12-12 10:55:53 UTC
Fix was included by maintainer and is now committed :)