summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfspostcommands.py
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-11-22 14:57:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-03 11:42:35 +0000
commitf5a2ea77caf579125b8a1e01225e792e5f67fa76 (patch)
treede0bf255aabd653497d93e50d65dc8ada6109a30 /meta/lib/oe/rootfspostcommands.py
parent2d10a8f522b5087ca1518b50ed93696d749b2b5f (diff)
downloadpoky-f5a2ea77caf579125b8a1e01225e792e5f67fa76.tar.gz
automake: fix do_compile error when perl is under a very long path
Fixed: bitbake automake-native failed with error: | :; HELP2MAN_NAME="Generate Makefile.in files for configure from Makefile.am"; export HELP2MAN_NAME; LONGPATH/tmp/hosttools/mkdir -p doc && AUTOMAKE_HELP2MAN=true ./pre-inst-env LONGPATH/tmp/hosttools/perl ../automake-1.17/doc/help2man --output=doc/automake-1.17.1 --info-page=automake --name="${HELP2MAN_NAME}" bin/automake-1.17 | help2man: can't get `--help' info from bin/aclocal-1.17 | Try `--no-discard-stderr' if option outputs to stderr | make: *** [Makefile:3818: doc/aclocal-1.17.1] Error 2 In above command, `bin/aclocal-1.17 --help` will be runned, since @PERL@ is replaced as the full path of perl, it is possible that the shebang line exceeds the max limit and causes above error, because the kernel imposes a maximum length on the text that follows the "#!" characters at the start of a script; characters beyond the limit are ignored. Before Linux 5.1, the limit is 127 characters. Since Linux 5.1, the limit is 255 characters. Add back the forced perl settings and add a patch for workaround the fatal error caused by space in perl path (From OE-Core rev: 0061f441501be923ddf326dcc5b3f25b59ac86d4) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfspostcommands.py')
0 files changed, 0 insertions, 0 deletions