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.
This commit is contained in:
Bjørn Forsman 2021-12-30 13:03:46 +01:00
parent c1792db42d
commit 7e399b7078

View File

@ -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