mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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:
parent
cffb1fab3e
commit
fae458c5e7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue