gitlab: fix permission issue in build phase

The newer DEB packages have a setuid file, creating an error when
unpacking the source during the build phase.

As dpkg doesn't have a way to pass parameters to tar, dpkg is then
told to just extract the filesystem tar file and that is unpacked by
tar directly.

Fixes #28494
This commit is contained in:
Servilio Afre Puentes 2017-08-28 14:39:04 -04:00
parent cffb1fab3e
commit fae458c5e7

View file

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
buildPhase = ''
mv config/gitlab.yml.example config/gitlab.yml
dpkg -x ${gitlabDeb} .
dpkg --fsys-tarfile ${gitlabDeb} | tar -x --no-same-permissions --no-same-owner
mv -v opt/gitlab/embedded/service/gitlab-rails/public/assets public
rm -rf opt