aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2018-12-01 22:51:55 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-02 11:22:11 +0100
commitba015cdf04a2ee33615f346448ac2e92aac3865a (patch)
treee6cc5f69a8a2f33ee7c2e1032b2ee8fb52bd7b4b
parent13c43455a05b036002e79808ca1c8e0d91d7871b (diff)
downloadbuildroot-ba015cdf04a2ee33615f346448ac2e92aac3865a.tar.gz
buildroot-ba015cdf04a2ee33615f346448ac2e92aac3865a.tar.bz2
package/pkg-generic: use readlink instead of realpath
realpath is missing on oldish distributions, like Debian 7, which is still used in the wild. Use readlink instead; that has been available since the dawn of ages now (well, coreutils had it in 2003). Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/pkg-generic.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index a27aa1f7fd..f5cab2b9c2 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -280,8 +280,8 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
-e "s,^\(exec_\)\?prefix=.*,\1prefix=@STAGING_DIR@/usr,g" \
-e "s,-I/usr/,-I@STAGING_DIR@/usr/,g" \
-e "s,-L/usr/,-L@STAGING_DIR@/usr/,g" \
- -e 's,@STAGING_DIR@,$$(dirname $$(realpath -e $$0))/../..,g' \
- -e 's,@HOST_DIR@,$$(dirname $$(realpath -e $$0))/../../../..,g' \
+ -e 's,@STAGING_DIR@,$$(dirname $$(readlink -e $$0))/../..,g' \
+ -e 's,@HOST_DIR@,$$(dirname $$(readlink -e $$0))/../../../..,g' \
-e "s,@BASE_DIR@,$(BASE_DIR),g" \
$(addprefix $(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ;\
fi