Files
poky/meta/recipes-devtools
Richard Purdie 94eb5724b1 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)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-07-28 12:39:54 +01:00
..
2020-06-04 13:27:31 +01:00
2020-06-04 13:27:31 +01:00
2020-07-25 15:11:05 +01:00
2020-07-22 12:45:56 +01:00
2019-12-30 08:47:13 +00:00
2020-06-28 08:35:59 +01:00
2020-07-18 11:06:32 +01:00
2020-06-28 08:36:00 +01:00
2020-05-05 13:19:54 +01:00
2020-06-24 18:06:43 +01:00
2020-07-18 11:06:32 +01:00
2020-07-28 12:39:54 +01:00
2020-05-30 12:32:48 +01:00
2020-07-28 12:39:54 +01:00
2020-07-12 12:21:48 +01:00
2019-10-19 23:18:33 +01:00
2018-03-09 09:17:03 -08:00
2020-07-02 16:18:03 +01:00
2020-07-27 19:58:09 +01:00
2020-05-12 15:20:42 +01:00
2020-06-09 13:13:59 +01:00
2020-07-28 12:39:54 +01:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2020-06-28 08:35:59 +01:00
2019-02-15 16:05:37 +00:00
2019-12-28 23:25:42 +00:00
2020-07-18 11:06:32 +01:00
2020-07-18 11:06:32 +01:00
2020-02-25 10:41:22 +00:00
2020-06-28 23:37:38 +01:00
2020-06-28 23:37:38 +01:00
2019-12-09 12:00:43 +00:00
2020-06-17 16:31:52 +01:00
2020-06-09 13:13:59 +01:00
2018-11-14 11:14:39 +00:00
2020-07-27 10:37:58 +01:00
2020-06-28 08:36:00 +01:00
2020-05-24 23:56:03 +01:00
2020-06-09 13:14:00 +01:00
2020-05-18 06:33:36 +01:00
2020-02-28 23:11:28 +00:00
2020-06-04 13:27:30 +01:00
2020-01-27 16:48:08 +00:00