[DRE-maint] Bug#820804: gitlab: install fails with Could not find gem 'gitlab_git (~> 7.2.22)'

Olivier Berger olivier.berger at telecom-sudparis.eu
Wed Apr 13 08:22:31 UTC 2016


On Tue, Apr 12, 2016 at 04:41:24PM +0200, Olivier Berger wrote:
> 
> I've tried to install gitlab on a fresh testing/stretch empty VM, and got :
> 
> Setting up gitlab (8.4.3+dfsg-12) ...
> Creating/updating gitlab user account...
> adduser: The user `gitlab' already exists.
> Proceeding with existing gitlab user...
> GITLAB_HOST=localhost
> Create database if not present
> Make gitlab user owner of gitlab_production database...
> ALTER DATABASE
> Grant all privileges to gitlab user...
> GRANT
> Verifying we have all required libraries...
> Could not find gem 'gitlab_git (~> 7.2.22)' in any of the gem sources listed in
> your Gemfile or available on this machine.
> dpkg: error processing package gitlab (--configure):
>  subprocess installed post-installation script returned error exit status 7
> Errors were encountered while processing:
>  gitlab
> 

A problem also lies in the gitlab_emoji, btw.

It seems a workaround is to fix the dependencies stated in /usr/share/gitlab/Gemfile :
--- Gemfile.orig	2016-04-12 16:44:37.848613241 +0200
+++ Gemfile	2016-04-13 10:16:20.919850006 +0200
@@ -50,7 +50,7 @@
 
 # Extracting information from a git repository
 # Provide access to Gitlab::Git library
-gem "gitlab_git", '~> 7.2.22'
+gem "gitlab_git", '~> 8.2.0'
 
 # LDAP Auth
 # GitLab fork with several improvements to original library. For full list of changes
@@ -201,7 +201,7 @@
 gem 'addressable',        '~> 2.3.8'
 gem 'bootstrap-sass',     '~> 3.3.0'
 gem 'font-awesome-rails', '~> 4.2'
-gem 'gitlab_emoji',       '~> 0.2.0'
+gem 'gitlab_emoji',       '~> 0.3.1'
 gem 'gon',                '~> 6.0.1'
 gem 'jquery-atwho-rails', '~> 1.3.2'
 gem 'jquery-rails',       '~> 4.0.0'

I checked the versions of ruby-gitlab-git and ruby-gitlab-emoji packages to find these. Hope this is sound.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)



More information about the Pkg-ruby-extras-maintainers mailing list