Merge pull request #37512 from MHOOO/patch-1
Fix spark scripts that use dirname
This commit is contained in:
commit
2f0f9b4d0f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages
|
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages, coreutils
|
||||||
, RSupport? true, R
|
, RSupport? true, R
|
||||||
, mesosSupport ? true, mesos
|
, mesosSupport ? true, mesos
|
||||||
, version
|
, version
|
||||||
@ -53,6 +53,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
|
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
|
||||||
makeWrapper "$n" "$out/bin/$(basename $n)"
|
makeWrapper "$n" "$out/bin/$(basename $n)"
|
||||||
|
substituteInPlace "$n" --replace dirname ${coreutils.out}/bin/dirname
|
||||||
done
|
done
|
||||||
ln -s $out/lib/${untarDir}/lib/spark-assembly-*.jar $out/share/java
|
ln -s $out/lib/${untarDir}/lib/spark-assembly-*.jar $out/share/java
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user