Wind River Support Network

HomeDefectsLIN1019-4441
Fixed

LIN1019-4441 : do_patch error with file bash-CVE-2019-18276.patch in a reconfigured build

Created: May 3, 2020    Updated: Sep 3, 2020
Resolved Date: Aug 27, 2020
Found In Version: 10.19.45.7
Fix Version: 10.19.45.11
Severity: Low
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

After reran the setup.sh with different optiones in a same build I found this error,

ERROR: bash-5.0-r0 do_patch: Command Error: 'quilt --quiltrc /qemux86-64-standard-glibc-std-OE/build/tmp-glibc/work/core2-64-wrs-linux/bash/5.0-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch bash-CVE-2019-18276.patch
patching file MANIFEST
patching file bashline.c
Hunk #1 succeeded at 3715 (offset -3 lines).
patching file builtins/help.def
patching file config.h.in
patching file configure
Hunk #1 FAILED at 10281.
1 out of 1 hunk FAILED -- rejects in file configure
patching file configure.ac
patching file doc/bash.1
patching file doc/bashref.texi
patching file lib/glob/glob.c
patching file pathexp.c
patching file shell.c
patching file tests/glob.tests
patching file tests/glob6.sub
patching file tests/glob7.sub
Patch bash-CVE-2019-18276.patch does not apply (enforce with -f)
Transferring /buildarea2/WRL1019_RCA/build_dir/rca-std-re/02291738-build_with_all_feature/qemux86-64-standard-glibc-std-OE/build/tmp-glibc/work/core2-64-wrs-linux/bash/5.0-r0/temp/log.do_patch.1927398 to /buildarea2/WRL1019_RCA/log_dir/rca-std-0229-re/build_with_all_feature/qemux86-64_platform/qemux8664.standard.true.glibcstd/errorlogs
ERROR: Logfile of failure stored in: /buildarea2/WRL1019_RCA/build_dir/rca-std-re/02291738-build_with_all_feature/qemux86-64-standard-glibc-std-OE/build/tmp-glibc/work/core2-64-wrs-linux/bash/5.0-r0/temp/log.do_patch.1927398
NOTE: recipe bash-5.0-r0: task do_patch: Failed
ERROR: Task (/buildarea2/WRL1019_RCA/build_dir/rca-std-re/02291738-build_with_all_feature/qemux86-64-standard-glibc-std-OE/layers/oe-core/meta/recipes-extended/bash/bash_5.0.bb:do_patch) failed with exit code '1'

Steps to Reproduce

$ /wrlinux-10/setup.sh --machines=qemux86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env
# add below lines to local.conf
IMAGE_INSTALL_append = " krb5 rxvt-unicode gnupg rsync gdbserver openssl util-linux file libgcrypt libgpg-error gnutls freetype libxrender libxt libxft fontconfig expat icu cups netcat libcroco gconf tiff tcl db gmp "
DISTRO_FEATURES_append = " x11"
DISTRO = "wrlinux-graphics"

$ bitbake bitbake wrlinux-image-glibc-std

## reconfigure
$ cd ..
$ /wrlinux-10/setup.sh --machines=qemux86-64 --dl-layers --templates=feature/archiver,feature/benchmark,feature/debug,feature/dev-pkgs,feature/gcc-sanitizers,feature/gdb,feature/gdbserver,feature/installer-support,feature/iotop,feature/ipv6,feature/LAMP,feature/mariadb,feature/mbp-project,feature/package-management,feature/ptest,feature/pts,feature/readonly-root,feature/rpm-local-keys,feature/rpm-required-sig,feature/self-hosted,feature/sysklogd,feature/syslog-ng,feature/target-toolchain,feature/test
$ rm -rf build/conf/local.conf build/conf/bblayers.conf
$ source oe-init-build-env
$ bitbake wrlinux-image-glibc-std
Live chat
Online