diff options
Diffstat (limited to 'meta/recipes-extended/bash')
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 32 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash_5.1.8.bb | 4 |
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 |
23 | CFLAGS += "-DBRACKETED_PASTE_DEFAULT=0" | 23 | CFLAGS += "-DBRACKETED_PASTE_DEFAULT=0" |
24 | 24 | ||
25 | ALTERNATIVE_${PN} = "bash sh" | 25 | ALTERNATIVE:${PN} = "bash sh" |
26 | ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash" | 26 | ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash" |
27 | ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash" | 27 | ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash" |
28 | ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" | 28 | ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" |
29 | ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}" | 29 | ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}" |
30 | ALTERNATIVE_PRIORITY = "100" | 30 | ALTERNATIVE_PRIORITY = "100" |
31 | 31 | ||
32 | RDEPENDS_${PN} += "base-files" | 32 | RDEPENDS:${PN} += "base-files" |
33 | RDEPENDS_${PN}_class-nativesdk = "" | 33 | RDEPENDS:${PN}:class-nativesdk = "" |
34 | RDEPENDS_${PN}-ptest += "make coreutils perl sed shadow util-linux-setpriv" | 34 | RDEPENDS:${PN}-ptest += "make coreutils perl sed shadow util-linux-setpriv" |
35 | 35 | ||
36 | RDEPENDS_${PN}-ptest_append_libc-glibc = " \ | 36 | RDEPENDS:${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 | ||
47 | CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" | 47 | CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" |
48 | 48 | ||
49 | do_configure_prepend () { | 49 | do_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 | ||
55 | do_compile_prepend() { | 55 | do_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 | ||
65 | do_install_append () { | 65 | do_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 | } |
72 | do_install_append_class-target () { | 72 | do_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 |
108 | do_install_ptest[vardepsexclude] += "UNINATIVE_LOADER" | 108 | do_install_ptest[vardepsexclude] += "UNINATIVE_LOADER" |
109 | 109 | ||
110 | pkg_postinst_${PN} () { | 110 | pkg_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 | ||
114 | pkg_postrm_${PN} () { | 114 | pkg_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 | ||
118 | PACKAGES += "${PN}-bashbug" | 118 | PACKAGES += "${PN}-bashbug" |
119 | FILES_${PN} = "${bindir}/bash ${base_bindir}/bash.bash" | 119 | FILES:${PN} = "${bindir}/bash ${base_bindir}/bash.bash" |
120 | FILES_${PN}-bashbug = "${bindir}/bashbug" | 120 | FILES:${PN}-bashbug = "${bindir}/bashbug" |
121 | 121 | ||
122 | PACKAGE_BEFORE_PN += "${PN}-loadable" | 122 | PACKAGE_BEFORE_PN += "${PN}-loadable" |
123 | RDEPENDS_${PN}-loadable += "${PN}" | 123 | RDEPENDS:${PN}-loadable += "${PN}" |
124 | FILES_${PN}-loadable += "${libdir}/bash/*" | 124 | FILES:${PN}-loadable += "${libdir}/bash/*" |
125 | 125 | ||
126 | RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh /bin/bash', '', d)}" | 126 | RPROVIDES:${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 | ||
20 | SRC_URI[tarball.sha256sum] = "0cfb5c9bb1a29f800a97bd242d19511c997a1013815b805e0fdd32214113d6be" | 20 | SRC_URI[tarball.sha256sum] = "0cfb5c9bb1a29f800a97bd242d19511c997a1013815b805e0fdd32214113d6be" |
21 | 21 | ||
22 | DEBUG_OPTIMIZATION_append_armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 22 | DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |
23 | DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 23 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |
24 | 24 | ||
25 | BBCLASSEXTEND = "nativesdk" | 25 | BBCLASSEXTEND = "nativesdk" |