Wind River Support Network

HomeDefectsLINCD-8518
Fixed

LINCD-8518 : It fails to run pkg_postinst script of lib32-udev-hwdb if install udev-hwdb at same time

Created: Mar 11, 2022    Updated: May 5, 2022
Resolved Date: Apr 23, 2022
Found In Version: 10.22.13.0
Fix Version: 10.22.17.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

It fails to run pkg_postinst script of lib32-udev-hwdb if installs udev-hwdb at same time:
   /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/rootfs/usr/libexec/lib32-udevadm:
    error while loading shared libraries: libsystemd-shared-250.so: wrong ELF class: ELFCLASS64

In the pkg_postinst script, it calls `udevadm hwdb --update` which involes libsystemd-shared-250.so. The libsystemd-shared-250.so is installed in /lib/systemd/ and will
be overwritten when multilib enabled.

Because the output hwdb.bin files are identical with both 32-bit and 64-bit udevadm. So update intercept script update_udev_hwdb that re-run udevadm with same arch qemuwrapper if run ${binprefix}qemuwrapper failed.

 

Steps to Reproduce

$ /lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
$ echo IMAGE_INSTALL:append = \" lvm2 lib32-lvm2\" >> conf/local.conf
$ bitbake -k -c populate_sdk wrlinux-image-std
Live chat
Online