Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2018 07:50:18 +0000 (UTC)
From:      Matthias Fechner <mfechner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483457 - head/www/gitlab-ce/files
Message-ID:  <201810300750.w9U7oIHV075076@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mfechner
Date: Tue Oct 30 07:50:17 2018
New Revision: 483457
URL: https://svnweb.freebsd.org/changeset/ports/483457

Log:
  One of the last dependency updates gitlab-ce requires, has broken the Gemfile.lock generation for user git.
  I use now a work-around to generate the file as user root and change the ownership back to git.
  This commit can maybe be undone if the source of the problem is fixed.
  
  PR:		232791
  Reported by:	freebsd@felix.flornet.de
  Approved by:	mentors (implicit)
  MFC after:	1 day
  MFH:		2018Q4

Modified:
  head/www/gitlab-ce/files/gitlab.in

Modified: head/www/gitlab-ce/files/gitlab.in
==============================================================================
--- head/www/gitlab-ce/files/gitlab.in	Tue Oct 30 07:41:09 2018	(r483456)
+++ head/www/gitlab-ce/files/gitlab.in	Tue Oct 30 07:50:17 2018	(r483457)
@@ -91,10 +91,11 @@ if [ "$USER" != "$app_user" ]; then
   # Regenerate the Gemfile.lock for all related products
   echo "Regenerate Gitlab Gemfile.lock"
   rm -f "${app_root}"/Gemfile.lock
-  if ! su -l ${app_user} -c "cd ${app_root} && %%LOCALBASE%%/bin/bundle install --local --quiet"; then
+  if ! su -l root -c "cd ${app_root} && %%LOCALBASE%%/bin/bundle install --local --quiet"; then
     echo "Could not create Gemfile.lock for gitlab, please report this using FreeBSD Bugtracker, https://bugs.freebsd.org/"
     exit 1
   fi
+  chown git "${app_root}"/Gemfile.lock
   echo "Regenerate Gitaly Gemfile.lock"
   rm -f "${gitaly_dir}"/ruby/Gemfile.lock
   if ! su -l root -c "cd ${gitaly_dir}/ruby && %%LOCALBASE%%/bin/bundle install --local --quiet"; then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810300750.w9U7oIHV075076>