Bumping from GitlabHQ-12 to 13 : E-build 13.6.2-r2
I have a neglected system, GitlabHQ-12.6, which I'm presently updating. The most practical path for doing this seems to be to jump from 12.X to 13.6.2-r2 to 13.6.2-r4, for the FHS changes, and then to 13.6.5 or if I can directly to 13.6.8 before transitioning from the GitlabHq to Gitlab E-builds.
While doing the first step the E-build for 13-6.2-r2 errors out with a message about a missing config.ssh
file. I find I can get the E-build going if I touch
the file after the package is verified but before it calls newins "${FILESDIR}/config.ssh" config
within the e-build (Line 200) as follows :
touch /var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/files/config.ssh
During the bundle install phase the gems get installed into a Ruby version dependent path, /var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/image/opt/gitlabhq-13.6/vendor/bundle/ruby/X.Y.Z
, and new permissions are assigned to /attr_required-*
but this gem is only installed in the 2.6.0 folder, when building with Ruby2.6, and not in the 2.7.0 folder when building with Ruby 2.7. Subsequently the fperm
call on line 258/262 fails with chmod: cannot access '/var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/image/opt/gitlabhq-13.6/vendor/bundle/ruby/2.7.0/gems/attr_required-*': No such file or directory
. I have tried sym-linking these folders as follows when building with the respective versions :
mkdir -p /var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/image/opt/gitlabhq-13.6/vendor/bundle/ruby/2.7.0/
ln -s /var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/image/opt/gitlabhq-13.6/vendor/bundle/ruby/2.6.0/gems /var/tmp/portage/www-apps/gitlabhq-13.6.2-r2/image/opt/gitlabhq-13.6/vendor/bundle/ruby/2.7.0
Both Ruby 2.6 and 2.7 fail at this point (I have read the e-new item for this build which explicitly states to use Ruby27 and believe I am building with either one or the other). I'm currently copying the gems setup by building Ruby2.6 into the Gems folder for 2.7.
Note: I have included my notes on the upgrade at the bottom of this thread