package/pseudo: add a legacy symlink to emulate fakeroot
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 3 Nov 2016 22:21:07 +0000 (23:21 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 3 Nov 2016 22:29:10 +0000 (23:29 +0100)
In case some post-image script want to call fakeroot, add a symlink to
use pseudo instead.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pseudo/pseudo.mk

index 2137a37806ee757a069431202f92bb457759b200..e2c56fff060ab54d3094b1e4c3547b08f7e38c17 100644 (file)
@@ -20,4 +20,9 @@ HOST_PSEUDO_CONF_OPTS = \
        --libdir=$(HOST_DIR)/usr/lib \
        --with-sqlite=$(HOST_DIR)/usr
 
+define HOST_PSEUDO_FAKEROOT_SYMLINK
+       ln -sf pseudo $(HOST_DIR)/usr/bin/fakeroot
+endef
+HOST_PSEUDO_POST_INSTALL_HOOKS += HOST_PSEUDO_FAKEROOT_SYMLINK
+
 $(eval $(host-autotools-package))