diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-12-19 14:11:45 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-20 12:47:19 +0000 |
| commit | ac564b5bacb687599d9518b7d05ceb8c5bcafab1 (patch) | |
| tree | 897c582f8d9a8c851f06d92df7cb152fb6780e70 | |
| parent | 7adaec468d3a61d88c990b1b319b34850bee7e44 (diff) | |
| download | poky-ac564b5bacb687599d9518b7d05ceb8c5bcafab1.tar.gz | |
bash: remove aclocal workarounds
Instead of patching configure.ac to not load m4 directly and working
around what aclocal and the autotools class do, just exclude the running
of aclocal entirely.
This stops the class removing the existing aclocal.m4 and autoreconf
running aclocal.
(From OE-Core rev: 399918026e3240d6f0829f9fb0da6946a498108e)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/bash/bash.inc | 8 | ||||
| -rw-r--r-- | meta/recipes-extended/bash/bash/use_aclocal.patch | 69 | ||||
| -rw-r--r-- | meta/recipes-extended/bash/bash_5.2.37.bb | 1 |
3 files changed, 1 insertions, 77 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index 66058feff3..634209c911 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
| @@ -7,7 +7,7 @@ DEPENDS = "ncurses bison-native virtual/libiconv" | |||
| 7 | 7 | ||
| 8 | inherit autotools gettext texinfo update-alternatives ptest | 8 | inherit autotools gettext texinfo update-alternatives ptest |
| 9 | 9 | ||
| 10 | EXTRA_AUTORECONF += "--exclude=autoheader" | 10 | EXTRA_AUTORECONF += "--exclude=autoheader,aclocal" |
| 11 | EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8" | 11 | EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8" |
| 12 | 12 | ||
| 13 | # If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the | 13 | # If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the |
| @@ -46,12 +46,6 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = " \ | |||
| 46 | 46 | ||
| 47 | CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" | 47 | CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" |
| 48 | 48 | ||
| 49 | do_configure:prepend () { | ||
| 50 | if [ ! -e ${S}/acinclude.m4 ]; then | ||
| 51 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 | ||
| 52 | fi | ||
| 53 | } | ||
| 54 | |||
| 55 | do_compile:prepend() { | 49 | do_compile:prepend() { |
| 56 | # Remove any leftover .build files. This ensures that bash always has the | 50 | # Remove any leftover .build files. This ensures that bash always has the |
| 57 | # same version number and keeps builds reproducible | 51 | # same version number and keeps builds reproducible |
diff --git a/meta/recipes-extended/bash/bash/use_aclocal.patch b/meta/recipes-extended/bash/bash/use_aclocal.patch deleted file mode 100644 index e966b037a2..0000000000 --- a/meta/recipes-extended/bash/bash/use_aclocal.patch +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | From b3a64702fa1978463c01bd5d9fe711e4628aba1e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Mon, 28 Dec 2020 21:04:27 +0100 | ||
| 4 | Subject: [PATCH] bash: update 5.0 -> 5.1 | ||
| 5 | |||
| 6 | Including m4 files directly like this confuses autotools.bbclass, remove | ||
| 7 | the references and rely upon aclocal to collect the m4 files together | ||
| 8 | as needed instead making it work like other autotools based projects. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [OE configuration specific] | ||
| 11 | RP 2021/1/20 | ||
| 12 | --- | ||
| 13 | configure.ac | 43 ------------------------------------------- | ||
| 14 | 1 file changed, 43 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/configure.ac b/configure.ac | ||
| 17 | index 50a6e20..a3b5bd7 100644 | ||
| 18 | --- a/configure.ac | ||
| 19 | +++ b/configure.ac | ||
| 20 | @@ -710,49 +710,6 @@ if test x$SIZE = x; then | ||
| 21 | fi | ||
| 22 | AC_SUBST(SIZE) | ||
| 23 | |||
| 24 | -m4_include([m4/stat-time.m4]) | ||
| 25 | -m4_include([m4/timespec.m4]) | ||
| 26 | - | ||
| 27 | -m4_include([m4/strtoimax.m4]) | ||
| 28 | - | ||
| 29 | -dnl include files for gettext | ||
| 30 | - | ||
| 31 | -m4_include([m4/codeset.m4]) | ||
| 32 | -m4_include([m4/extern-inline.m4]) | ||
| 33 | -m4_include([m4/fcntl-o.m4]) | ||
| 34 | -m4_include([m4/gettext.m4]) | ||
| 35 | -m4_include([m4/glibc2.m4]) | ||
| 36 | -m4_include([m4/glibc21.m4]) | ||
| 37 | -m4_include([m4/host-cpu-c-abi.m4]) | ||
| 38 | -m4_include([m4/iconv.m4]) | ||
| 39 | -m4_include([m4/intdiv0.m4]) | ||
| 40 | -m4_include([m4/intl.m4]) | ||
| 41 | -m4_include([m4/intlmacosx.m4]) | ||
| 42 | -m4_include([m4/intl-thread-locale.m4]) | ||
| 43 | -m4_include([m4/intmax.m4]) | ||
| 44 | -m4_include([m4/inttypes-pri.m4]) | ||
| 45 | -m4_include([m4/inttypes.m4]) | ||
| 46 | -m4_include([m4/inttypes_h.m4]) | ||
| 47 | -m4_include([m4/lcmessage.m4]) | ||
| 48 | -m4_include([m4/lib-ld.m4]) | ||
| 49 | -m4_include([m4/lib-link.m4]) | ||
| 50 | -m4_include([m4/lib-prefix.m4]) | ||
| 51 | -m4_include([m4/lock.m4]) | ||
| 52 | -m4_include([m4/nls.m4]) | ||
| 53 | -m4_include([m4/po.m4]) | ||
| 54 | -m4_include([m4/printf-posix.m4]) | ||
| 55 | -m4_include([m4/progtest.m4]) | ||
| 56 | -m4_include([m4/pthread_rwlock_rdlock.m4]) | ||
| 57 | -m4_include([m4/size_max.m4]) | ||
| 58 | -m4_include([m4/stdint_h.m4]) | ||
| 59 | -m4_include([m4/threadlib.m4]) | ||
| 60 | -m4_include([m4/uintmax_t.m4]) | ||
| 61 | -m4_include([m4/ulonglong.m4]) | ||
| 62 | -m4_include([m4/visibility.m4]) | ||
| 63 | -m4_include([m4/wchar_t.m4]) | ||
| 64 | -m4_include([m4/wint_t.m4]) | ||
| 65 | -m4_include([m4/xsize.m4]) | ||
| 66 | - | ||
| 67 | dnl C compiler characteristics | ||
| 68 | AC_C_CONST | ||
| 69 | AC_C_INLINE | ||
diff --git a/meta/recipes-extended/bash/bash_5.2.37.bb b/meta/recipes-extended/bash/bash_5.2.37.bb index 3dcaefa374..20c51ecdbc 100644 --- a/meta/recipes-extended/bash/bash_5.2.37.bb +++ b/meta/recipes-extended/bash/bash_5.2.37.bb | |||
| @@ -11,7 +11,6 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | |||
| 11 | file://run-ptest \ | 11 | file://run-ptest \ |
| 12 | file://run-bash-ptests \ | 12 | file://run-bash-ptests \ |
| 13 | file://fix-run-builtins.patch \ | 13 | file://fix-run-builtins.patch \ |
| 14 | file://use_aclocal.patch \ | ||
| 15 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ | 14 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ |
| 16 | file://fix-filesubst-errexit.patch \ | 15 | file://fix-filesubst-errexit.patch \ |
| 17 | " | 16 | " |
