Files
poky/meta/recipes-devtools/automake/automake_1.17.bb
Changqing Li f5a2ea77ca 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>
2024-12-03 11:42:35 +00:00

43 lines
1.3 KiB
BlitzBasic

require automake.inc
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS:class-native = "autoconf-native"
NAMEVER = "${@oe.utils.trim_version("${PV}", 2)}"
RDEPENDS:${PN} += "\
autoconf \
perl \
perl-module-bytes \
perl-module-data-dumper \
perl-module-strict \
perl-module-text-parsewords \
perl-module-thread-queue \
perl-module-threads \
perl-module-vars "
RDEPENDS:${PN}:class-native = "autoconf-native hostperl-runtime-native"
SRC_URI += "\
file://0001-automake-Add-default-libtool_tag-to-cppasm.patch \
file://0002-automake-Update-for-python.m4-to-respect-libdir.patch \
file://0003-build-fix-race-in-parallel-builds.patch \
file://0004-Add-a-new-distro-feature-ptest.patch \
file://0006-automake-Remove-delays-in-configure-scripts-using-au.patch \
file://0001-configure-don-t-report-error-when-the-path-of-Perl-c.patch \
"
SRC_URI[sha256sum] = "397767d4db3018dd4440825b60c64258b636eaf6bf99ac8b0897f06c89310acd"
PERL = "${USRBINPATH}/perl"
PERL:class-native = "${USRBINPATH}/env perl"
PERL:class-nativesdk = "${USRBINPATH}/env perl"
CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
do_install:append () {
install -d ${D}${datadir}
}
BBCLASSEXTEND = "native nativesdk"