浏览代码

toolchain/toolchain-wrapper.c: extend the list of unsafe paths

On some legacy systems, the X11 headers and libs are in /usr/X11R66/include
and /usr/X11R66/lib, and of course, some packages are trying to be smart
and use those paths (even when they do not exist).

Add those to the list of unsafe paths to check in the toolchain wrapper.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Yann E. MORIN 5 年之前
父节点
当前提交
a07d37d226
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      toolchain/toolchain-wrapper.c

+ 2 - 0
toolchain/toolchain-wrapper.c

@@ -129,6 +129,8 @@ static const struct str_len_s unsafe_paths[] = {
 	STR_LEN(/usr/lib),
 	STR_LEN(/usr/lib),
 	STR_LEN(/usr/local/include),
 	STR_LEN(/usr/local/include),
 	STR_LEN(/usr/local/lib),
 	STR_LEN(/usr/local/lib),
+	STR_LEN(/usr/X11R6/include),
+	STR_LEN(/usr/X11R6/lib),
 	{ NULL, 0 },
 	{ NULL, 0 },
 };
 };