Skip to content

Gitlab 18.0.0 fails to emerge

Hi,

the current update from 17.11.2 to 18.0.0 fails with the following message:

 * ERROR: www-apps/gitlab-18.0.0::gitlab failed (install phase):
 *   failed to fake the backup path
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 1685:  Called die
 * The specific snippet of code:
 *       sed -i -e "s|${bp_def}|${bp_sandbox}|g" config/gitlab.yml || die "failed to fake the backup path";
 * 
 * If you need support, post the output of `emerge --info '=www-apps/gitlab-18.0.0::gitlab'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/gitlab-18.0.0::gitlab'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/gitlab-18.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlab-18.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-apps/gitlab-18.0.0/image/opt/gitlab/gitlab'
 * S: '/var/tmp/portage/www-apps/gitlab-18.0.0/work/gitlab-18.0.0'

 * GNU info directory index is up-to-date.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
srv21636 ~ #

The code was recently added in 2dd33d4d

Within the build, the error is a bit more cleary stated:

sed: -e expression #1, char 25: unterminated `s' command
 * ERROR: www-apps/gitlab-18.0.0::gitlab failed (install phase):
 *   failed to fake the backup path
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 1685:  Called die
 * The specific snippet of code:
 *       sed -i -e "s|${bp_def}|${bp_sandbox}|g" config/gitlab.yml || die "failed to fake the backup path";
 * 
 * If you need support, post the output of `emerge --info '=www-apps/gitlab-18.0.0::gitlab'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/gitlab-18.0.0::gitlab'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/gitlab-18.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlab-18.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-apps/gitlab-18.0.0/image/opt/gitlab/gitlab'
 * S: '/var/tmp/portage/www-apps/gitlab-18.0.0/work/gitlab-18.0.0'

Is there something I need to configure prior to run the update?

Thanks, Jan