Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Fix for #7040 - Support for /usr merge
@ 2017-06-13  6:52 Amarnath Valluri
  2017-06-13  6:52 ` [PATCH v3 1/8] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge Amarnath Valluri
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Amarnath Valluri @ 2017-06-13  6:52 UTC (permalink / raw)
  To: openembedded-core

This set of patches implements the long-standing feature - merging of /bin,
/sbin, /libs to their /usr counterparts.

It introduces a 'usrmerge' DISTRO_FEATURE, when it's enabled:
    - other than native all base paths(base_{bin,sbin,lib}dir) points to
      ${exec_prefix}/{bin,sbin,lib}
    - base-files package adds the needed root links(/bin, /sbin, /lib{32,64})
      points to /usr counterparts
    - As most of shell scripts refer "#!/bin/{sh,bash}" inside script, so makes
      sure that get added to RPROVIDES_ list by those packages to satisfy the
      build dependencies.

The assumption is that no recipe uses hard coded paths in recipes where
pre-defined bitbake configuration variables are available. I have fixed quite
many recipes that i found which violates this assumption. A sanity check is
added for reporting these broken recipies.

I have tested this change on core-minimal, sato, windriver cube-desktop and
intel-iot-refkit image builds.  And i would prefer to run autobuilder tests
prior to merging.

Changes in v2:
    - Moved root links creation out from 'base-files' to pre-rootfs.
    - Fixes to lsb, lttng-modules recipes., that are failed in autobuilder
      tests.
    - Added insane check to usrmerge feature.
    - Fixed typos in commit messages.

Changes in v3:
    - Rebased against master and dropped patches those got already merged.
    - As per review comments added new configuration variable ${root_prefix}
      that will be altered based on 'usrmerge' distro feature.
    - Made use of ${root_prefix} in place of ${base_preix} both in systemd
      recipe and cross.bbclass
    - Dropped patch that is touching nativesdk configuration.


Amarnath Valluri (8):
  bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge
  cross.bbclass: merged /usr support
  systemd: chagnes to support merged /usr
  bash: changes to support merged /usr
  busybox: changes to support merged /usr
  sed: changes to support merged /usr
  image: create symlinks needed for merged /usr
  insane.bbclass: Add package QA check for merged /usr.

 meta/classes/cross.bbclass               |  4 ++--
 meta/classes/image.bbclass               | 23 +++++++++++++++++++++++
 meta/classes/insane.bbclass              | 16 ++++++++++++++++
 meta/conf/bitbake.conf                   | 10 ++++++----
 meta/recipes-core/busybox/busybox.inc    |  2 ++
 meta/recipes-core/systemd/systemd_232.bb |  6 +++---
 meta/recipes-extended/bash/bash.inc      |  2 ++
 meta/recipes-extended/sed/sed_4.2.2.bb   |  1 +
 8 files changed, 55 insertions(+), 9 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-06-15 10:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13  6:52 [PATCH v3 0/8] Fix for #7040 - Support for /usr merge Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 1/8] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 2/8] cross.bbclass: merged /usr support Amarnath Valluri
2017-06-13  7:52   ` Peter Kjellerstedt
2017-06-13 13:27     ` [PATCH v4 " Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 3/8] systemd: chagnes to support merged /usr Amarnath Valluri
2017-06-13  7:56   ` Peter Kjellerstedt
2017-06-13 13:26     ` [PATCH v4 3/8] systemd: changes " Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 4/8] bash: " Amarnath Valluri
2017-06-15  9:50   ` Anton Eliasson
2017-06-13  6:52 ` [PATCH v3 5/8] busybox: " Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 6/8] sed: " Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 7/8] image: create symlinks needed for " Amarnath Valluri
2017-06-13  8:05   ` Peter Kjellerstedt
2017-06-13 12:32     ` Valluri, Amarnath
2017-06-13 13:23     ` [PATCH v4 " Amarnath Valluri
2017-06-13 14:16       ` Peter Kjellerstedt
2017-06-13 19:25         ` Amarnath Valluri
2017-06-13  6:52 ` [PATCH v3 8/8] insane.bbclass: Add package QA check " Amarnath Valluri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox