aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2017-12-30 23:13:00 +0800
committerTing-Wei Lan <lantw44@gmail.com>2018-01-02 14:06:14 +0800
commit2e6149f8f75b65fc54505b8eee1c58b9f5f9f007 (patch)
treeaab22d9d56abb9ca47f5004abe1f8c0742f724a1
parentd06ffc910ee48b4804fb3dd77ccbec0f6f6fe47d (diff)
downloadwspkg-2e6149f8f75b65fc54505b8eee1c58b9f5f9f007.tar.gz
wspkg-2e6149f8f75b65fc54505b8eee1c58b9f5f9f007.tar.zst
wspkg-2e6149f8f75b65fc54505b8eee1c58b9f5f9f007.zip
freebsd: Send sed commands from stdin
Flavors feature increases the length of sed commands, causing build failure on Linux because of 'argument list too long'.
-rw-r--r--freebsd/freebsd.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/freebsd/freebsd.mk b/freebsd/freebsd.mk
index 7c6162d..027db5b 100644
--- a/freebsd/freebsd.mk
+++ b/freebsd/freebsd.mk
@@ -27,14 +27,14 @@ makefile_deps = \
$(FREEBSD_OUT_PORTS)
$(FREEBSD_OUT_MAKEFILE): $(makefile_deps)
- $(AT_GEN)sed \
- -e "s|@NAME|$(NAME)|g" \
- -e "s|@PKGNAME@|$(PKGNAME)|g" \
- -e "s|@TODAY@|`date '+%Y.%m.%d'`|g" \
- -e "s|@DEPS@|`$(makefile_deps_script) $(FREEBSD_OUT_PORTS)`|g" \
- -e "s|@NOPKG_SETUP@|`$(makefile_nopkg_setup_script) $(FREEBSD_OUT_PORTS)`|g" \
- -e "s|@NOPKG_DEPS@|`$(makefile_nopkg_deps_script) $(FREEBSD_OUT_PORTS)`|g" \
- $(FREEBSD_IN_MAKEFILE_IN) | \
+ $(AT_GEN)( \
+ echo "s|@NAME|$(NAME)|g"; \
+ echo "s|@PKGNAME@|$(PKGNAME)|g"; \
+ echo "s|@TODAY@|`date '+%Y.%m.%d'`|g"; \
+ echo "s|@DEPS@|`$(makefile_deps_script) $(FREEBSD_OUT_PORTS)`|g"; \
+ echo "s|@NOPKG_SETUP@|`$(makefile_nopkg_setup_script) $(FREEBSD_OUT_PORTS)`|g"; \
+ echo "s|@NOPKG_DEPS@|`$(makefile_nopkg_deps_script) $(FREEBSD_OUT_PORTS)`|g"; \
+ ) | sed -f /dev/stdin $(FREEBSD_IN_MAKEFILE_IN) | \
tr '^' '\\' | tr '%' '\n' \
> $(FREEBSD_OUT_MAKEFILE) $(RM_IF_FAIL)