aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2016-11-03 23:21:07 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-11-03 23:29:10 +0100
commit7158403805f650e8e34de6c0ac0dcd9b565c679b (patch)
treef9606a292a81e77c28525395201ea0b5aedf27fd
parentd5ed7fcad1da81894a32ec2908f56b001feefb6c (diff)
downloadbuildroot-7158403805f650e8e34de6c0ac0dcd9b565c679b.tar.gz
buildroot-7158403805f650e8e34de6c0ac0dcd9b565c679b.tar.bz2
package/pseudo: add a legacy symlink to emulate fakeroot
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>
-rw-r--r--package/pseudo/pseudo.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/pseudo/pseudo.mk b/package/pseudo/pseudo.mk
index 2137a37806..e2c56fff06 100644
--- a/package/pseudo/pseudo.mk
+++ b/package/pseudo/pseudo.mk
@@ -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))