From: Damien Mascord Date: Mon, 1 Nov 2021 09:06:20 +0000 (+1100) Subject: build: fix ldconfig executable error in python X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a5b4228e30244b44a49f523dea66caf3fbe3307;p=openwrt%2Fstaging%2Frmilecki.git build: fix ldconfig executable error in python The empty executable is causing problems with meson builds, due to the error: OSError: [Errno 8] Exec format error: 'ldconfig' This patch changes the empty ldconfig stub to symlink to /bin/true to work around this issue. Fixes: FS#4117 Fixes: 3bd31cc4d2ff ("tools/meson: update to 0.60.0") Signed-off-by: Damien Mascord Tested-by: Aleksander Jan Bajkowski # Tested on Debian 11 Tested-By: Lucian Cristian Tested-By: Baptiste Jonglez Cc: Rosen Penev --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index ce6873cf524..e1918f00278 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -198,5 +198,4 @@ prereq: $(STAGING_DIR_HOST)/bin/mkhash # Install ldconfig stub $(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \ - touch $(STAGING_DIR_HOST)/bin/ldconfig && \ - chmod +x $(STAGING_DIR_HOST)/bin/ldconfig)) + $(LN) /bin/true $(STAGING_DIR_HOST)/bin/ldconfig))