summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-17 22:01:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-17 22:01:54 +0100
commita7398b69f0946733ea2bd7e90176c1cab07376d0 (patch)
treee67c02c146bbe806dfd3e5b2937373d89accfa35 /mk
parent5844c1d52c76ba0df5b2b5cba19f03185e34959f (diff)
fix rebuild of autotools by touching files in a correct order
from freewrt/openbsd
Diffstat (limited to 'mk')
-rw-r--r--mk/pkg-bottom.mk18
1 files changed, 17 insertions, 1 deletions
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; \