diff options
author | Bjørn Forsman | 2021-12-30 13:03:46 +0100 |
---|---|---|
committer | Bjørn Forsman | 2021-12-30 13:03:46 +0100 |
commit | 7e399b70787556d03f7108e3957b8f1c90289d29 (patch) | |
tree | 70692d7f9a4863e256709657904b314695879096 /pkgs/tools/filesystems/glusterfs | |
parent | c1792db42df222b0ec570bd774488f48aa0c91b1 (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.nix | 1 |
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 |