Changeset 2e6149f in wspkg


Ignore:
Timestamp:
Jan 2, 2018, 2:06:14 PM (4 years ago)
Author:
Ting-Wei Lan <lantw44@…>
Branches:
master
Children:
f6d5ca1
Parents:
d06ffc9
git-author:
Ting-Wei Lan <lantw44@…> (12/30/17 23:13:00)
git-committer:
Ting-Wei Lan <lantw44@…> (01/02/18 14:06:14)
Message:

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'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/freebsd.mk

    rd06ffc9 r2e6149f  
    2828
    2929$(FREEBSD_OUT_MAKEFILE): $(makefile_deps)
    30         $(AT_GEN)sed \
    31                 -e "s|@NAME|$(NAME)|g" \
    32                 -e "s|@PKGNAME@|$(PKGNAME)|g" \
    33                 -e "s|@TODAY@|`date '+%Y.%m.%d'`|g" \
    34                 -e "s|@DEPS@|`$(makefile_deps_script) $(FREEBSD_OUT_PORTS)`|g" \
    35                 -e "s|@NOPKG_SETUP@|`$(makefile_nopkg_setup_script) $(FREEBSD_OUT_PORTS)`|g" \
    36                 -e "s|@NOPKG_DEPS@|`$(makefile_nopkg_deps_script) $(FREEBSD_OUT_PORTS)`|g" \
    37                 $(FREEBSD_IN_MAKEFILE_IN) | \
     30        $(AT_GEN)( \
     31                echo "s|@NAME|$(NAME)|g"; \
     32                echo "s|@PKGNAME@|$(PKGNAME)|g"; \
     33                echo "s|@TODAY@|`date '+%Y.%m.%d'`|g"; \
     34                echo "s|@DEPS@|`$(makefile_deps_script) $(FREEBSD_OUT_PORTS)`|g"; \
     35                echo "s|@NOPKG_SETUP@|`$(makefile_nopkg_setup_script) $(FREEBSD_OUT_PORTS)`|g"; \
     36                echo "s|@NOPKG_DEPS@|`$(makefile_nopkg_deps_script) $(FREEBSD_OUT_PORTS)`|g"; \
     37                ) | sed -f /dev/stdin $(FREEBSD_IN_MAKEFILE_IN) | \
    3838                tr '^' '\\' | tr '%' '\n' \
    3939                > $(FREEBSD_OUT_MAKEFILE) $(RM_IF_FAIL)
Note: See TracChangeset for help on using the changeset viewer.