瀏覽代碼

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 <[email protected]>
Tested-by: Aleksander Jan Bajkowski <[email protected]> # Tested on Debian 11
Tested-By: Lucian Cristian <[email protected]>
Tested-By: Baptiste Jonglez <[email protected]>
Cc: Rosen Penev <[email protected]>
Damien Mascord 4 年之前
父節點
當前提交
6a5b4228e3
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      include/prereq-build.mk

+ 1 - 2
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))