ltrace: Add missing mips->mipsel symlink
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 30 Aug 2013 10:17:23 +0000 (11:17 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 30 Aug 2013 12:09:45 +0000 (14:09 +0200)
Restore missing mips->mipsel symlink. It appears ltrace was
packaged incorrectly and the symlink got lost. See
http://lists.alioth.debian.org/pipermail/ltrace-devel/2013-August/000938.html

[Peter: add a comment explaining why]
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/ltrace/ltrace.mk

index 55930b8c1fb3f5237cf15a1c654c05e86bb903a9..0ea8ff3272b738d9f4f5e6ebff96f6fa86d92c30 100644 (file)
@@ -13,6 +13,13 @@ LTRACE_CONF_OPT = --disable-werror
 LTRACE_LICENSE = GPLv2
 LTRACE_LICENSE_FILES = COPYING
 
+# symlink missing from tarball
+define LTRACE_MIPS_SYMLINK
+       cd $(@D)/sysdeps/linux-gnu; ln -sf mipsel mips
+endef
+
+LTRACE_POST_EXTRACT_HOOKS += LTRACE_MIPS_SYMLINK
+
 # ltrace can use libunwind only if libc has backtrace() support
 # We don't normally do so for uClibc and we can't know if it's external
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)