summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2021-12-30 13:03:46 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-12-30 17:24:47 +0000
commit7913713f0094f097d519d9e9b22243a69093ca0d (patch)
tree89531fa75f6ff21d115c258e511765a2db082d72
parentgitlab: 14.5.2 -> 14.6.0 (diff)
downloadnixpkgs-7913713f0094f097d519d9e9b22243a69093ca0d.tar.gz
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. (cherry picked from commit 7e399b70787556d03f7108e3957b8f1c90289d29)
-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 90148cbf2a45..a408f6374b5d 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