Wind River Support Network

HomeDefectsCGP5-943
Fixed

CGP5-943 : openipmi fails during build of CGTS

Created: Sep 13, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 17, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Build of CGTS product fails in CGP's openipmi.
mv fails due to non-existant source directory

| make[1]: Leaving directory `/localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/OpenIPMI-2.0.19'
| mv: cannot stat `/localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/image/usr/lib64/perl5': No such file or directory
| WARNING: /localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/temp/do_install/run.do_install.17933:144 exit 1 from
|   mv /localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/image/usr/lib64/perl5 /localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/image/usr/lib64/perl
| ERROR: Function failed: do_install (see /localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/temp/do_install/log.do_install.17933 for further information)
ERROR: Task 3826 (/localdisk/loadbuild/xxxx/workspace/cgts_test_build_kvm/layers/wr-cgp/cgp/recipes-cgl/openipmi/openipmi_2.0.19.bb, do_install) failed with exit code '1'

Workaround

edit wrlinux-x/addons/wr-cgp/layers/cgp/recipes-cgl/openipm/openipmi_2.0.19.bb

look for 'do_install_append' script, and add a directory existance check on the source directory of the move

 do_install_append () {
   install -m 0755 -d ${D}${sysconfdir}/sysconfig ${D}${sysconfdir}/init.d
   install -m 0755 ${S}/ipmi.init ${D}${sysconfdir}/init.d/ipmi
   install -m 0644 ${S}/ipmi.sysconf ${D}${sysconfdir}/sysconfig/ipmi

   if [ -d ${D}${libdir}/perl5 ]
   then
       mv ${D}${libdir}/perl5 ${D}${libdir}/perl
   fi
}

Steps to Reproduce

configure --enable-board=intel-xeon-core --enable-rootfs=cgts-base   --enable-addons=wr-cgts,wr-ovp  --with-layer=wr-intel-support,cgp --without-layer=wr-merlin-installer   --with-template=feature/intel-dpdk,feature/dpdk-vswitch   --with-package=rsync,postgresql,postgresql-client,corosync,pacemaker,cluster-resource-agents    --enable-parallel-pkgbuilds=8 --enable-jobs=8 --with-sstate-dir=$MY_SSCACHE  --enable-reconfig

make

Other Downloads


Live chat
Online