FS#49490 - [gitlab] Packaging issue with fixing ruby env

Attached to Project: Community Packages
Opened by Jonas Heinrich (onny) - Saturday, 28 May 2016, 01:46 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 May 2016, 20:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
There seems to be some packaging issue. Your PKGBUILD seems to fix the ruby env in some files but writes ruby-2.1-2.1 instead of ruby-2.1:

onny@onny ..nloads/gitlab/usr/share/webapps/gitlab % grep -ir "ruby-2.1-2.1" :(
vendor/bundle/ruby/2.1.0/bin/sidekiq:#!/usr/bin/env ruby-2.1-2.1
vendor/bundle/ruby/2.1.0/bin/github-markup:#!/usr/bin/env ruby-2.1-2.1
vendor/bundle/ruby/2.1.0/bin/git-linguist:#!/usr/bin/env ruby-2.1-2.1
vendor/bundle/ruby/2.1.0/bin/erubis:#!/usr/bin/env ruby-2.1-2.1

ruby-2.1-2.1 doesn't seem to be right.

Additional info:
* package version(s): community/gitlab 8.8.2-3
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 28 May 2016, 20:16 GMT
Reason for closing:  Fixed
Comment by Jonas Heinrich (onny) - Saturday, 28 May 2016, 01:46 GMT
Thank you for maintaining this difficult package :)
Comment by Johan (Johnnei) - Saturday, 28 May 2016, 13:10 GMT
Ran into this issue when I tried to execute the migrations after updating to gitlab-8.8.2-3.
As a workaround I used:
cd /usr/share/webapps/gitlab/vendor/bundle/ruby/2.1.0/bin/
find . -type f -exec sed -i.orig "s/ruby\-2\.1\-2\.1/ruby-2.1/g" {} \;
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 May 2016, 16:28 GMT
Please test rel -4.
Comment by Jonas Heinrich (onny) - Saturday, 28 May 2016, 19:50 GMT
Yep looks fine now, thank you!

Loading...