summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-extended/bash
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bash')
-rw-r--r--meta/recipes-extended/bash/bash.inc32
-rw-r--r--meta/recipes-extended/bash/bash_5.1.8.bb4
2 files changed, 18 insertions, 18 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 7350601c65..ca788e1672 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -22,18 +22,18 @@ CFLAGS += "-DHEREDOC_PIPESIZE=65536"
22# causes a lot of garbage in non-interactive shells 22# causes a lot of garbage in non-interactive shells
23CFLAGS += "-DBRACKETED_PASTE_DEFAULT=0" 23CFLAGS += "-DBRACKETED_PASTE_DEFAULT=0"
24 24
25ALTERNATIVE_${PN} = "bash sh" 25ALTERNATIVE:${PN} = "bash sh"
26ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash" 26ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash"
27ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash" 27ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash"
28ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" 28ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
29ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}" 29ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}"
30ALTERNATIVE_PRIORITY = "100" 30ALTERNATIVE_PRIORITY = "100"
31 31
32RDEPENDS_${PN} += "base-files" 32RDEPENDS:${PN} += "base-files"
33RDEPENDS_${PN}_class-nativesdk = "" 33RDEPENDS:${PN}:class-nativesdk = ""
34RDEPENDS_${PN}-ptest += "make coreutils perl sed shadow util-linux-setpriv" 34RDEPENDS:${PN}-ptest += "make coreutils perl sed shadow util-linux-setpriv"
35 35
36RDEPENDS_${PN}-ptest_append_libc-glibc = " \ 36RDEPENDS:${PN}-ptest:append:libc-glibc = " \
37 glibc-gconv-big5hkscs \ 37 glibc-gconv-big5hkscs \
38 glibc-gconv-iso8859-1 \ 38 glibc-gconv-iso8859-1 \
39 glibc-utils \ 39 glibc-utils \
@@ -46,13 +46,13 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " \
46 46
47CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" 47CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}"
48 48
49do_configure_prepend () { 49do_configure:prepend () {
50 if [ ! -e ${S}/acinclude.m4 ]; then 50 if [ ! -e ${S}/acinclude.m4 ]; then
51 cat ${S}/aclocal.m4 > ${S}/acinclude.m4 51 cat ${S}/aclocal.m4 > ${S}/acinclude.m4
52 fi 52 fi
53} 53}
54 54
55do_compile_prepend() { 55do_compile:prepend() {
56 # Remove any leftover .build files. This ensures that bash always has the 56 # Remove any leftover .build files. This ensures that bash always has the
57 # same version number and keeps builds reproducible 57 # same version number and keeps builds reproducible
58 rm -f ${B}/.build 58 rm -f ${B}/.build
@@ -62,14 +62,14 @@ do_compile_ptest () {
62 oe_runmake buildtest 62 oe_runmake buildtest
63} 63}
64 64
65do_install_append () { 65do_install:append () {
66 # Move /usr/bin/bash to /bin/bash, if need 66 # Move /usr/bin/bash to /bin/bash, if need
67 if [ "${base_bindir}" != "${bindir}" ]; then 67 if [ "${base_bindir}" != "${bindir}" ]; then
68 mkdir -p ${D}${base_bindir} 68 mkdir -p ${D}${base_bindir}
69 mv ${D}${bindir}/bash ${D}${base_bindir} 69 mv ${D}${bindir}/bash ${D}${base_bindir}
70 fi 70 fi
71} 71}
72do_install_append_class-target () { 72do_install:append:class-target () {
73 # Clean buildhost references in bashbug 73 # Clean buildhost references in bashbug
74 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ 74 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
75 -e "s,-I${WORKDIR}/\S* ,,g" \ 75 -e "s,-I${WORKDIR}/\S* ,,g" \
@@ -107,20 +107,20 @@ do_install_ptest () {
107# hash 107# hash
108do_install_ptest[vardepsexclude] += "UNINATIVE_LOADER" 108do_install_ptest[vardepsexclude] += "UNINATIVE_LOADER"
109 109
110pkg_postinst_${PN} () { 110pkg_postinst:${PN} () {
111 grep -q "^${base_bindir}/bash$" $D${sysconfdir}/shells || echo ${base_bindir}/bash >> $D${sysconfdir}/shells 111 grep -q "^${base_bindir}/bash$" $D${sysconfdir}/shells || echo ${base_bindir}/bash >> $D${sysconfdir}/shells
112} 112}
113 113
114pkg_postrm_${PN} () { 114pkg_postrm:${PN} () {
115 printf "$(grep -v "^${base_bindir}/bash$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells 115 printf "$(grep -v "^${base_bindir}/bash$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
116} 116}
117 117
118PACKAGES += "${PN}-bashbug" 118PACKAGES += "${PN}-bashbug"
119FILES_${PN} = "${bindir}/bash ${base_bindir}/bash.bash" 119FILES:${PN} = "${bindir}/bash ${base_bindir}/bash.bash"
120FILES_${PN}-bashbug = "${bindir}/bashbug" 120FILES:${PN}-bashbug = "${bindir}/bashbug"
121 121
122PACKAGE_BEFORE_PN += "${PN}-loadable" 122PACKAGE_BEFORE_PN += "${PN}-loadable"
123RDEPENDS_${PN}-loadable += "${PN}" 123RDEPENDS:${PN}-loadable += "${PN}"
124FILES_${PN}-loadable += "${libdir}/bash/*" 124FILES:${PN}-loadable += "${libdir}/bash/*"
125 125
126RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh /bin/bash', '', d)}" 126RPROVIDES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh /bin/bash', '', d)}"
diff --git a/meta/recipes-extended/bash/bash_5.1.8.bb b/meta/recipes-extended/bash/bash_5.1.8.bb
index 5d7704af17..9400835b8a 100644
--- a/meta/recipes-extended/bash/bash_5.1.8.bb
+++ b/meta/recipes-extended/bash/bash_5.1.8.bb
@@ -19,7 +19,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \
19 19
20SRC_URI[tarball.sha256sum] = "0cfb5c9bb1a29f800a97bd242d19511c997a1013815b805e0fdd32214113d6be" 20SRC_URI[tarball.sha256sum] = "0cfb5c9bb1a29f800a97bd242d19511c997a1013815b805e0fdd32214113d6be"
21 21
22DEBUG_OPTIMIZATION_append_armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 22DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
23DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 23DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
24 24
25BBCLASSEXTEND = "nativesdk" 25BBCLASSEXTEND = "nativesdk"