poky/scripts/postinst-intercepts
Mingli Yu 994ca65e6f update_udev_hwdb: clean hwdb.bin
Steps to reproduce:
echo "IMAGE_INSTALL_append = \" udev-hwdb lib32-udev-hwdb\"" >> conf/local.conf

When install both udev-hwdb and lib32-udev-hwdb as above,
there comes below do_populate_sdk error:
 $ bitbake core-image-sato  -c populate_sdk
 ERROR: Task (/path/core-image-sato.bb:do_populate_sdk) failed with exit code '134'
 NOTE: Tasks Summary: Attempted 5554 tasks of which 0 didn't need to be rerun and 1 failed.

 $ cat /path/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r5/pseudo/pseudo.log
 [snip]
 inode mismatch: '/path/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r5/sdk/image/usr/local/oecore-x86_64/sysroots/core2-64-poky-linux/lib/udev/hwdb.bin' ino 427383040 in db, 427383042 in request.
 [snip]

It is because both udev-hwdb and lib32-udev-hwdb will generate
${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/udev/hwdb.bin during do_populate_sdk
and it triggers pseudo error.

So clean hwdb.bin before generate hwdb.bin to avoid conflict to
fix the above do_populate_sdk error.

(From OE-Core rev: c7472925feb53ce92c1799feba2b7a9104e3f38f)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-31 08:54:12 +00:00
..
delay_to_first_boot meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
postinst_intercept meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_desktop_database mime-xdg.bbclass: initial add 2020-01-19 13:24:38 +00:00
update_font_cache base/bitbake.conf: Enable pseudo path filtering 2020-10-07 11:18:38 +01:00
update_gio_module_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_gtk_icon_cache gtk-icon-cache: rename intercept to update_gtk_icon_cache 2019-06-27 12:20:36 +01:00
update_gtk_immodules_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_mime_database mime.bbclass: rework 2020-01-19 13:24:38 +00:00
update_pixbuf_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_udev_hwdb update_udev_hwdb: clean hwdb.bin 2020-10-31 08:54:12 +00:00