Most of our recipes in OE-Core now support building with a merged /usr, we should make this feature easy to adopt by adding DISTRO_FEATURE to configure variables (bindir, libdir and sbindir), base-files and systemd appropriately. Patches for bitbake.conf, base-files_3.0.14.bb and systemd_229.bb are available: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=joshuagl/usrmerge However building with those patches and the usrmerge DISTRO_FEATURE enabled results in a failure to generate the rootfs with Smart, see smartpm.log and several warnings when using other package managers (opkg and dpkg), see warnings.log. In both cases the root problem is the same, various of our scripts have a shebang of /bin/bash (or other utilities in /bin in some cases, i.e. sed) which is not present as we now install those binaries to /usr/bin We need to come up with a generic solution to this problem which doesn't involve manually patching all of the shell scripts a package might include…
Created attachment 3218 [details] Smart PM errors at image construction time with merged /usr
Created attachment 3219 [details] file-rdeps warnings due to merged /usr
#7040 is an older bug requesting this same enhancement, mark this issue as a duplicate of it. *** This bug has been marked as a duplicate of bug 7040 ***
verified as duplicate