Patchwork dmalloc: Stop libdmalloc*.so files from being deleted from staging directory

login
register
mail settings
Submitter Reuben Dowle
Date Feb. 14, 2013, 1:12 a.m.
Message ID <069B5A25F9844945B625ADE7258AC94C061E73B0@4rf-nz-orion.local.4rf.com>
Download mbox | patch
Permalink /patch/220311/
State Accepted
Headers show

Comments

Reuben Dowle - Feb. 14, 2013, 1:12 a.m.
Fix libdmalloc*.so files being deleted from the staging directory as the
package is installed into the target.

Signed-off-by: Reuben Dowle <reuben.dowle at 4rf.com>
---
 package/dmalloc/dmalloc.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.7.10.4
The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).
Peter Korsgaard - May 4, 2013, 8:38 p.m.
>>>>> "Reuben" == Reuben Dowle <reuben.dowle@4rf.com> writes:

 Reuben> Fix libdmalloc*.so files being deleted from the staging
 Reuben> directory as the package is installed into the target.

 Reuben> Signed-off-by: Reuben Dowle <reuben.dowle at 4rf.com>

Committed, thanks.

Please consider using git-send-email / not through exchange next time,
as the patch was corrupted (tabs converted to spaces) and I had to fix
it up manually.

Patch

diff --git a/package/dmalloc/dmalloc.mk b/package/dmalloc/dmalloc.mk
index 8623829..ee7799b 100644
--- a/package/dmalloc/dmalloc.mk
+++ b/package/dmalloc/dmalloc.mk
@@ -47,7 +47,7 @@  define DMALLOC_INSTALL_STAGING_CMDS
 endef

 define DMALLOC_INSTALL_TARGET_CMDS
-       mv $(STAGING_DIR)/usr/lib/libdmalloc*.so $(TARGET_DIR)/usr/lib
+       cp -dpf $(STAGING_DIR)/usr/lib/libdmalloc*.so $(TARGET_DIR)/usr/lib
        cp -dpf $(STAGING_DIR)/usr/bin/dmalloc $(TARGET_DIR)/usr/bin/dmalloc
 endef