extrae: Add patch to follow upstream

This commit is contained in:
Rodrigo Arias 2020-11-11 12:19:07 +01:00
parent 966606b62d
commit 63f966e3c1
2 changed files with 30 additions and 10 deletions

View File

@ -23,20 +23,16 @@ stdenv.mkDerivation rec {
name = "extrae";
version = "3.8.3";
# src = fetchurl {
# url = "https://ftp.tools.bsc.es/extrae/${name}-${version}-src.tar.bz2";
# sha256 = "0y036qc7y30pfj1mnb9nzv2vmxy6xxiy4pgfci6l3jc0lccdsgf8";
# };
src = fetchFromGitHub {
owner = "rodarima";
#owner = "bsc-performance-tools";
owner = "bsc-performance-tools";
repo = "extrae";
rev = "a8ec6882c03d130f88b09f2114887101ca9f6b09";
#rev = "${version}";
sha256 = "02gwl17r63kica6lxycyn10a0r2ciycf6g3cdq5cna5zl351qf31";
rev = "${version}";
sha256 = "08ghd14zb3bgqb1smb824d621pqqww4q01n3pyws0vp3xi0kavf4";
};
# FIXME: Waiting for German to merge this patch
patches = [ ./use-command.patch ];
enableParallelBuilding = true;
nativeBuildInputs = [ installShellFiles ];

View File

@ -0,0 +1,24 @@
diff --git a/substitute b/substitute
index d5615606..82ca91a5 100755
--- a/substitute
+++ b/substitute
@@ -16,7 +16,7 @@ UNAME=`uname`
if [ "${UNAME}" = "Darwin" -o "${UNAME}" = "AIX" ] ; then
TMPFILE=substitute-$$
${SED} "s|${KEY}|${VALUE}|g" < ${FILE} >${TMPFILE}
- /bin/mv -f ${TMPFILE} ${FILE}
+ command mv -f ${TMPFILE} ${FILE}
else
${SED} "s|${KEY}|${VALUE}|g" -i ${FILE}
fi
diff --git a/substitute-all b/substitute-all
index 48c6b76a..eda7a0f2 100755
--- a/substitute-all
+++ b/substitute-all
@@ -23,5 +23,5 @@ fi
echo "Applying modification in ${PATHTOCHANGE} - Key = ${KEY} for value = ${VALUE}"
-/usr/bin/find ${PATHTOCHANGE} -type f -exec ${SCRIPT_LOCATION} "${SED}" "${KEY}" "${VALUE}" {} \;
+command find ${PATHTOCHANGE} -type f -exec ${SCRIPT_LOCATION} "${SED}" "${KEY}" "${VALUE}" {} \;