diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-06-06 18:03:12 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-06-06 18:16:46 +0300 |
commit | 64747c9bdf15d2253935f1d8fb82645d8ebab5b3 (patch) | |
tree | e985f88913e3f6a2d474df8d5de755f996da6153 /cjdns | |
parent | f3f344e949661cbee1df6baa33be365b36d8b7ea (diff) |
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>
Diffstat (limited to 'cjdns')
-rw-r--r-- | cjdns/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cjdns/Makefile b/cjdns/Makefile index a81b491..8efd282 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cjdns PKG_VERSION:=0.17 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://github.com/hyperboria/cjdns.git PKG_SOURCE_PROTO:=git @@ -77,6 +77,7 @@ PKG_DO_VARS+= UCLIBC=1 endif define Build/Compile + $(INSTALL_DIR) $(PKG_BUILD_DIR)/tmp CROSS="true" \ CC="$(TARGET_CC)" \ AR="$(TARGET_AR)" \ @@ -87,6 +88,7 @@ define Build/Compile TARGET_ARCH="$(CONFIG_ARCH)" \ SSP_SUPPORT="$(CONFIG_SSP_SUPPORT)" \ GYP_ADDITIONAL_ARGS="-f make-linux" \ + CJDNS_BUILD_TMPDIR="$(PKG_BUILD_DIR)/tmp" \ $(PKG_DO_VARS) \ $(PKG_BUILD_DIR)/do endef |