svn commit: r483457 - head/www/gitlab-ce/files
Matthias Fechner
mfechner at FreeBSD.org
Tue Oct 30 07:50:18 UTC 2018
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 at 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
More information about the svn-ports-all
mailing list