From a7398b69f0946733ea2bd7e90176c1cab07376d0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 17 Feb 2010 22:01:54 +0100 Subject: fix rebuild of autotools by touching files in a correct order from freewrt/openbsd --- mk/pkg-bottom.mk | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk index fa1baf5cb..361329aa7 100644 --- a/mk/pkg-bottom.mk +++ b/mk/pkg-bottom.mk @@ -11,10 +11,26 @@ # * if you have a style -> define a pre-foo: and post-foo: if they # are required, but the do-foo: magic is done here +REORDER_DEPENDENCIES= ${TOPDIR}/scripts/automake.dep + pre-configure: do-configure: post-configure: ${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE} + @sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \ + tsort | tac | while read f; do \ + cd ${WRKSRC}; \ + case $$f in \ + /*) \ + find . -name "$${f#/}" -print | while read i; do \ + touch "$$i"; \ + done;; \ + *) \ + if test -e "$$f" ; then \ + touch "$$f"; \ + fi;; \ + esac; \ + done mkdir -p ${WRKBUILD} @${MAKE} pre-configure $(MAKE_TRACE) @@ -164,7 +180,7 @@ endif find usr ! -type d 2>/dev/null | \ grep -v -e '^usr/share' -e '^usr/man' -e '^usr/info' | \ tee '${STAGING_PARENT}/pkg/${PKG_NAME}' | \ - cpio -padlmuv '${STAGING_DIR}' + cpio -padlmu '${STAGING_DIR}' @cd '${STAGING_DIR}'; grep 'usr/lib/.*\.la$$' \ '${STAGING_PARENT}/pkg/${PKG_NAME}' | while read fn; do \ chmod u+w $$fn; \ -- cgit v1.2.3