1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-27 19:37:10 +00:00
Files
poky/meta/recipes-devtools
Richard Purdie cbd458957b gcc: Fix mangled patch
To quote Zhuang <qiuguang.zqg@alibaba-inc.com>:
"""
A few days ago, I tried to compile a gcc plugin with the toolchain from poky sdk.
It failed with errors about missing header files such as backend.h etc.

After investigation, I found that the problem was brought by a gcc patch:
0012-gcc-Fix-argument-list-too-long-error.patch (which is considered derived from the original patch)

- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
+ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \

It changes the commands of install-plugin, making the sorting taken effect before the shell globs.
Thus results in the header files under gcc $(srcdir) being not installed.

By checking log.do_install, we can find that the `headers=' statement to run is incorrect and will not work as expected:
headers="$(cd *.def) *.h ../../../../../../../work-shared/gcc-10.1.0-r0/gcc-10.1.0/gcc/../include/ansidecl.h ...

As the patch says,
"The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle it, ..."
my suggestion is that we can simply take care of PLUGIN_HEADERS
using the original proposed sort.
"""

This fixes the gcc patch as proposed as it does appear its been
broken over time.

(From OE-Core rev: dce28d8ac7fbae487cb6674b91fe2b574036b26d)

(From OE-Core rev: cfa92a4d57f49188ca7b568e2003e4a11526fc95)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 94eb5724b1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-13 08:57:57 +00:00
..
2020-09-17 12:51:24 +01:00
2020-02-03 13:03:31 +00:00
2020-09-17 12:51:24 +01:00
2020-03-12 22:49:28 +00:00
2019-12-09 12:00:43 +00:00
2021-01-13 08:57:57 +00:00
2020-02-15 10:26:42 +00:00
2020-05-28 18:15:29 +01:00
2020-12-09 23:49:01 +00:00
2019-10-19 23:18:33 +01:00
2020-09-10 19:07:40 +01:00
2020-06-23 11:40:46 +01:00
2020-02-14 13:07:23 +00:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2020-05-22 16:23:23 +01:00
2019-02-15 16:05:37 +00:00
2019-12-28 23:25:42 +00:00
2019-12-09 12:00:43 +00:00
2021-01-09 09:17:17 +00:00
2020-06-26 18:26:48 +01:00
2020-12-18 14:20:19 +00:00
2020-12-18 14:20:19 +00:00
2020-02-04 15:56:29 +00:00
2020-12-18 14:20:19 +00:00
2020-03-12 22:49:28 +00:00
2020-02-28 23:11:28 +00:00
2020-02-21 09:39:00 +00:00
2020-01-27 16:48:08 +00:00