mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03: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
@ -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 New Issue
Block a user