cjdns: use temporary directory within the build environment 193/head
authorJo-Philipp Wich <jo@mein.io>
Mon, 6 Jun 2016 15:03:12 +0000 (17:03 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 6 Jun 2016 15:16:46 +0000 (17:16 +0200)
commit64747c9bdf15d2253935f1d8fb82645d8ebab5b3
treee985f88913e3f6a2d474df8d5de755f996da6153
parentf3f344e949661cbee1df6baa33be365b36d8b7ea
cjdns: use temporary directory within the build environment

By default, cjdns' build system uses the system wide `/tmp` directory to store
intermediate build artifacts.

Unfortunately its build system fails to clean after itself, leaving thousands
of `jsmake-<hash>` directories behind, taking up precious inodes and massively
slowing down processes traversing the temporary directory:

    root@buildbot:~# find /tmp/ -maxdepth 1 -type d -name 'jsmake-*' | wc -l
    1581

Attempt to solve that problem by using the upstream-introduced
`CJDNS_BUILD_TMPDIR` environment variable in order to move the intermediate
artifacts from the system-wide `/tmp` to a temporary directory within the
package build dir which is properly deleted upon package rebuild cycles.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
cjdns/Makefile