With the changes reported above (this wasn't an actual patch file), the build still fails with
Missing param: SOURCE_DIR
i.e. install_spark.sh expects --source-dir to be set, which the deb build script doesn't provide (`pwd` probably works, i.e. --source-dir = --build-dir).
Thanks for the scala version pointer. That means I'll postpone any spark experiments for now. I hope that at some point it will become more version tolerant and easier to install.
Due to maven, parts of scala 2.9.3 were installed - enough to compile, actually.
It's one of the things I really hate about maven, that it clutters your system this easily. I really wanted to build using my system installed libraries. There is no use in having a mixed 2.9.2 + 2.9.3 scala.