aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-02 19:01:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-02 19:01:09 +0000
commita014ef6f93edbe8f4ea85c3bcc468db513564dc2 (patch)
treefe55872f49955a43af3db3acd80f6a709b98397a /include
parent7d61bbe743c5ead57815775fbbfe9152cf391c83 (diff)
downloadmaster-187ad058-a014ef6f93edbe8f4ea85c3bcc468db513564dc2.tar.gz
master-187ad058-a014ef6f93edbe8f4ea85c3bcc468db513564dc2.tar.bz2
master-187ad058-a014ef6f93edbe8f4ea85c3bcc468db513564dc2.zip
build: when staging unstripped package files, install them to a temporary directory first to work around file overwrite issues in packages like asterisk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17477 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package-ipkg.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 904bbd75af..4409f239ae 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -59,9 +59,11 @@ ifeq ($(DUMP),)
$(eval $(call BuildIPKGVariable,$(1),postrm))
$(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(STAMP_BUILT)
- mkdir -p $(STAGING_DIR_ROOT)/stamp
- $(call Package/$(1)/install,$(STAGING_DIR_ROOT))
- $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT))
+ mkdir -p $(STAGING_DIR_ROOT)/stamp $(STAGING_DIR_ROOT)/tmp-$(1)
+ $(call Package/$(1)/install,$(STAGING_DIR_ROOT)/tmp-$(1))
+ $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)/tmp-$(1))
+ $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/* $(STAGING_DIR_ROOT)/
+ rm -rf $(STAGING_DIR_ROOT)/tmp-$(1)
touch $$@
$$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT)