about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorServilio Afre Puentes <afrepues@sharcnet.ca>2017-08-28 14:39:04 -0400
committerServilio Afre Puentes <afrepues@sharcnet.ca>2017-08-30 16:16:17 -0400
commitfae458c5e73b51b4758be7dc6f1a6bf6ac8476fc (patch)
tree0fd60512dafeb966ee142328d2dfcdc1b4c650a9 /pkgs/applications/version-management
parentcffb1fab3e300dfab1b952c79ecd32eb5e79af34 (diff)
downloadnixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar.gz
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar.bz2
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar.lz
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar.xz
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.tar.zst
nixlib-fae458c5e73b51b4758be7dc6f1a6bf6ac8476fc.zip
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
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/gitlab/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/gitlab/default.nix b/pkgs/applications/version-management/gitlab/default.nix
index c139a3ff45dd..815bc30344ad 100644
--- a/pkgs/applications/version-management/gitlab/default.nix
+++ b/pkgs/applications/version-management/gitlab/default.nix
@@ -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