upgrade bash v2 && fix multilib issues
cover upgrade bash v2 && fix multilib issues
Test steps:
vim local.conf:
...
MACHINE ?= "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"IMAGE_INSTALL_append = " bash"
VIRTUAL-RUNTIME_init_manager = "systemd"DISTRO_FEATURES_append = " systemd"DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"KERNEL_FEATURES_append = " cfg/systemd.scc"
...
bitbake lib32-core-image-sato-sdk
//Hongxu
The following changes since commit 55bf88603927469de9aa9f6fd4d449230d2e61e3:
poky: Add nios2 to list of qemu targets (2017-08-17 00:21:35 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib hongxu/upgrade-20170816
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=hongxu/upgrade-20170816
Hongxu Jia (2):
bash: 4.3.30 -> 4.4
logrotate: fix systemd service not found while multilib
meta/recipes-extended/bash/bash.inc | 6 + .../recipes-extended/bash/bash/CVE-2016-9401.patch | 50 ------- ...roc-run-heredoc-run-execscript-run-test-f.patch | 158 +++------------------ meta/recipes-extended/bash/bash/fix-run-intl.patch | 110 -------------- meta/recipes-extended/bash/bash/test-output.patch | 47 ++++-- meta/recipes-extended/bash/bash_4.3.30.bb | 75 ---------- meta/recipes-extended/bash/bash_4.4.bb | 58 ++++++++ .../recipes-extended/logrotate/logrotate_3.12.3.bb | 4 +- 8 files changed, 115 insertions(+), 393 deletions(-) delete mode 100644 meta/recipes-extended/bash/bash/CVE-2016-9401.patch delete mode 100644 meta/recipes-extended/bash/bash/fix-run-intl.patch delete mode 100644 meta/recipes-extended/bash/bash_4.3.30.bb create mode 100644 meta/recipes-extended/bash/bash_4.4.bb
Signature · 1 line
2.8.1
PATCH v2 1/2 bash: 4.3.30 -> 4.4
1. Rebase patches:
- fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch
- test-output.patch
2. Drop backported patches:
- CVE-2016-9401.patch
- fix-run-intl.patch
3. Add ${PN}-loadable for loadable builtins which is new features in Bash 4.4
4. The 4.4 fixed CVE-2017-5932 and CVE-2016-0634
- https://security-tracker.debian.org/tracker/CVE-2017-5932
- https://security-tracker.debian.org/tracker/CVE-2016-0634
5. The 4.4 installed include header files, fix bash-dev confilicts with lib32-bash-dev
.....
$ bitbake lib32-core-image-sato-sdk ... |Error: Transaction check error: file /usr/include/bash/config.h conflicts between attempted installs |of lib32-bash-dev-4.4-r0.x86 and bash-dev-4.4-r0.core2_64 ......
--- meta/recipes-extended/bash/bash.inc | 6 + .../recipes-extended/bash/bash/CVE-2016-9401.patch | 50 ------- ...roc-run-heredoc-run-execscript-run-test-f.patch | 158 +++------------------ meta/recipes-extended/bash/bash/fix-run-intl.patch | 110 -------------- meta/recipes-extended/bash/bash/test-output.patch | 47 ++++-- meta/recipes-extended/bash/bash_4.3.30.bb | 75 ---------- meta/recipes-extended/bash/bash_4.4.bb | 58 ++++++++ 7 files changed, 113 insertions(+), 391 deletions(-) delete mode 100644 meta/recipes-extended/bash/bash/CVE-2016-9401.patch delete mode 100644 meta/recipes-extended/bash/bash/fix-run-intl.patch delete mode 100644 meta/recipes-extended/bash/bash_4.3.30.bb create mode 100644 meta/recipes-extended/bash/bash_4.4.bb
meta/recipes-extended/bash/bash.inc +6 -0
@@ -28,6 +28,8 @@ RDEPENDS_${PN}-ptest += "make" USERADD_PACKAGES = "${PN}-ptest" USERADD_PARAM_${PN}-ptest = "--create-home --user-group test" +CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" + do_configure_prepend () { if [ ! -e ${S}/acinclude.m4 ]; then cat ${S}/aclocal.m4 > ${S}/acinclude.m4
@@ -70,4 +72,8 @@ PACKAGES += "${PN}-bashbug" FILES_${PN} = "${bindir}/bash ${base_bindir}/bash.bash" FILES_${PN}-bashbug = "${bindir}/bashbug" +PACKAGE_BEFORE_PN += "${PN}-loadable" +RDEPENDS_${PN}-loadable += "${PN}" +FILES_${PN}-loadable += "${libdir}/bash/*" + RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh /bin/bash', '', d)}"
meta/recipes-extended/bash/bash/CVE-2016-9401.patch deleted +0 -50
50 lines not on this page · raw message
meta/recipes-extended/bash/bash/fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch +17 -141
181 lines not on this page · raw message
meta/recipes-extended/bash/bash/fix-run-intl.patch deleted +0 -110
110 lines not on this page · raw message
meta/recipes-extended/bash/bash/test-output.patch +32 -15
57 lines not on this page · raw message
meta/recipes-extended/bash/bash_4.3.30.bb deleted +0 -75
75 lines not on this page · raw message
meta/recipes-extended/bash/bash_4.4.bb new file +58 -0
58 lines not on this page · raw message
Signature · 1 line
2.8.1
PATCH 2/2 logrotate: fix systemd service not found while multilib
In reply to Hongxu Jia...
|ERROR: lib32-logrotate-3.12.3-r0 do_package: SYSTEMD_SERVICE_lib32-logrotate value lib32-logrotate.service does not exist
|ERROR: lib32-logrotate-3.12.3-r0 do_package: Function failed:systemd_populate_packages
...
The systemd sercie file should not be multilib expend.
--- meta/recipes-extended/logrotate/logrotate_3.12.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/logrotate/logrotate_3.12.3.bb +2 -2
@@ -56,8 +56,8 @@ OS_NAME = "Linux" inherit autotools systemd SYSTEMD_SERVICE_${PN} = "\ - ${PN}.service \ - ${PN}.timer \ + ${BPN}.service \ + ${BPN}.timer \ " LOGROTATE_SYSTEMD_TIMER_BASIS ?= "daily"
Signature · 1 line
2.8.1