Wind River Support Network


LIN8-8239 : managed build from RCPL 21 to RCPl 22 fails to build tcpdump and net-snmp packages

Created: Nov 24, 2017    Updated: Dec 9, 2019
Resolved Date: Jun 11, 2018
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config, Userspace


The customer is following the steps showed at's_Guide%2C_8.0/000/030/060 to upgrade his managed build. However, two packages that he added are failing when tries to recompile the project.

| DEBUG: Python function patch_do_patch finished | DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common'] | DEBUG: Executing shell function do_git_apply | error: patch failed: tests/TESTLIST:337 | error: tests/TESTLIST: patch does not apply | WARNING: /workspace/managed-distro/mitel_bsp_mxe_dev_mb/tmp/work/ppc603e-wrs-linux/tcpdump/4.7.4-r0/temp/do_patch/run.do_patch.do_git_apply.4652:1 exit 1 from | git apply /workspace/managed-distro/mitel_bsp_mxe_dev_mb/tmp/work/ppc603e-wrs-linux/tcpdump/4.7.4-r0/tcpdump-4.7.4/../CVE-2017-11541.patch | DEBUG: Python function do_patch finished | ERROR: Function failed: do_git_apply (log file is located at /workspace/managed-distro/mitel_bsp_mxe_dev_mb/tmp/work/ppc603e-wrs-linux/tcpdump/4.7.4-r0/temp/do_patch/log.do_patch.4652) ERROR: Task 1401 (/workspace/managed-distro/mitel_bsp_mxe_dev_mb/project/layers/meta-openembedded/meta-networking/recipes-support/tcpdump/, do_patch) failed with exit code '1' NOTE: Tasks Summary: Attempted 2416 tasks of which 2117 didn't need to be rerun and 1 failed. NOTE: Writing buildhistory NOTE: Build completion summary: NOTE: do_populate_sysroot: 0% sstate reuse (0 setscene, 46 scratch) NOTE: do_package: 0% sstate reuse (0 setscene, 42 scratch) NOTE: do_packagedata: 0% sstate reuse (0 setscene, 38 scratch) Waiting for 0 running tasks to finish: Summary: 1 task failed: /workspace/managed-distro/mitel_bsp_mxe_dev_mb/project/layers/meta-openembedded/meta-networking/recipes-support/tcpdump/, do_patch Summary: There was 1 ERROR message shown, returning a non-zero exit code. make: *** [main-image] Error 1 make: Leaving directory `/workspace/managed-distro/mitel_bsp_mxe_dev_mb/project/build' -bash-4.1$ 


For similar recipes, a clean operation can make it build OK, for example:
# bitbake tcpdump -c clean

Steps to Reproduce

$ mkdir -p /localhome/$USER/workspace
$ cd /localhome/$USER/workspace
$ mkdir -p managed-distro && cd managed-distro
$ mkdir -p install && cd install
$ ln -s /net/wrl/wrl_8/ WindRiver
$ cd /localhome/$USER/workspace/managed-distro
$ git clone install/WindRiver/wrlinux-8/samples/mbp-project my-project
$ cd my-project
$ git checkout -B 8.0

$ ./scripts/ --with-layer=meta-java,common,common-downloads --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc-small --enable-reconfig=yes --enable-bootimage=cpio.gz.u-boot --enable-rm-oldimgs=yes --with-template=feature/mbp-project,feature/mbp-project,feature/ntp428p10,feature/lttng --enable-internet-download=yes  --enable-unsupported-config --with-rcpl-version=0021

$ ./scripts/ "Your commit message"

$ cd project/
add IMAGE_INSTALL_append += " net-snmp tcpdump" to the local.conf
$ make fs

Then reconfigure for RCPL22

./scripts/ --with-layer=meta-java,common,common-downloads --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc-small --enable-reconfig=yes --enable-bootimage=cpio.gz.u-boot --enable-rm-oldimgs=yes --with-template=feature/mbp-project,feature/mbp-project,feature/ntp428p10,feature/lttng --enable-internet-download=yes   --enable-unsupported-config --with-rcpl-version=0022

$ ./scripts/ "Your commit message"

$ cd /localhome/$USER/workspace/managed-distro/my-project
$  git fetch install/WindRiver/wrlinux-8/samples/mbp-project
$ git merge FETCH_HEAD
$  ./scripts/
$ ./scripts/ "Your commit message"
$ cd project
$ make fs

Other Downloads

Live chat