about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/glusterfs
diff options
context:
space:
mode:
authorBjørn Forsman2021-12-30 13:03:46 +0100
committerBjørn Forsman2021-12-30 13:03:46 +0100
commit7e399b70787556d03f7108e3957b8f1c90289d29 (patch)
tree70692d7f9a4863e256709657904b314695879096 /pkgs/tools/filesystems/glusterfs
parentc1792db42df222b0ec570bd774488f48aa0c91b1 (diff)
glusterfs: fix version info
A build script in glusterfs uses /bin/bash interpreter and fails to get
the version from the VERSION file at build time:

  sh: build-aux/pkg-version: /bin/bash: bad interpreter: No such file or directory
  sh: build-aux/pkg-version: /bin/bash: bad interpreter: No such file or directory
  sh: build-aux/pkg-version: /bin/bash: bad interpreter: No such file or directory
  [...]

The result is that `gluster --version` doesn't include a version number.
Fixup the shebang to get the version info.
Diffstat (limited to 'pkgs/tools/filesystems/glusterfs')
-rw-r--r--pkgs/tools/filesystems/glusterfs/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix
index b0524e9bc68a..43e5fef04cc2 100644
--- a/pkgs/tools/filesystems/glusterfs/default.nix
+++ b/pkgs/tools/filesystems/glusterfs/default.nix
@@ -85,6 +85,7 @@ in stdenv.mkDerivation rec {
   # but fails when the version is empty.
   # See upstream GlusterFS bug https://bugzilla.redhat.com/show_bug.cgi?id=1452705
   preConfigure = ''
+    patchShebangs build-aux/pkg-version
     echo "v${version}" > VERSION
     ./autogen.sh
     export PYTHON=${python3}/bin/python