[OE-core] [PATCH v6] image.bbclass: create root symlinks in nativesdk target sysroot

2017-06-15 Thread Amarnath Valluri
To match with the target image, the generated nativesdk's target sysroot also should have the root symlinks(/lib*, /bin/, /sbin). So, extended the 'create_merged_usr_symlinks' to reuse symlink creation part even for nativesdk using POPULATE_SDK_PRE_TARGET_COMMAND. Signed-off-by: A

[OE-core] [PATCH v5] image.bbclass: create root symlinks in nativesdk target sysroot

2017-06-15 Thread Amarnath Valluri
To match with the target image, the generated nativesdk's target sysroot also should have the root symlinks(/lib*, /bin/, /sbin). So, extended the 'create_merged_usr_symlinks' to reuse symlink creation part even for nativesdk using POPULATE_SDK_PRE_TARGET_COMMAND. Signed-off-by: A

[OE-core] [PATCH v5] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Amarnath Valluri
A new configuration variable ${root_prefix} added, which shall be used by all base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 10

[OE-core] [PATCH v4 3/7] systemd: changes to support merged /usr

2017-06-14 Thread Amarnath Valluri
e' distro feature enabled this path would be '/usr/lib'. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/syste

[OE-core] [PATCH v4 5/7] insane.bbclass: Add package QA check for merged /usr.

2017-06-14 Thread Amarnath Valluri
This check makes sure that, when usrmerge distro feature enabled, no package installs files to root (/bin, /sbin, /lib, /lib64) folders. Signed-off-by: Amarnath Valluri --- meta/classes/insane.bbclass | 16 1 file changed, 16 insertions(+) diff --git a/meta/classes

[OE-core] [PATCH v4 4/7] image: create symlinks needed for merged /usr

2017-06-14 Thread Amarnath Valluri
cripts uses "#!/bin/sh" Signed-off-by: Amarnath Valluri --- meta/classes/image.bbclass | 21 + 1 file changed, 21 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 85f6b9a..2a3c1e3 100644 --- a/meta/classes/image.bbclass +++ b/meta

[OE-core] [PATCH v4 7/7] image.bbclass: create root symlinks in nativesdk target sysroot

2017-06-14 Thread Amarnath Valluri
To match with the target image, the generated nativesdk's target sysroot also should have the root symlinks(/lib*, /bin/, /sbin). So, extended the 'create_merged_usr_symlinks' to reuse symlink creation part even for nativesdk using POPULATE_SDK_PRE_TARGET_COMMAND. Signed-off-by: A

[OE-core] [PATCH v4 6/7] meta/lib/oe/sdk.py: support added for executing pre-target commands

2017-06-14 Thread Amarnath Valluri
Added a new POPULATE_SDK_PRE_TARTET_COMMAND variable, which can contain functions need to be executed at pre traget sysroot creation phase. classes/populate_sdk_base.bbclass: Added POPULATE_SDK_PRE_TARTET_COMMAND to sdk command variables list. Signed-off-by: Amarnath Valluri --- meta/classes

[OE-core] [PATCH v4 2/7] cross.bbclass: merged /usr support

2017-06-14 Thread Amarnath Valluri
Use ${root_prefix} instead of ${base_prefix} while setting ${target_base_prefix}, otherwise we might loose the root prefix configuration change in case of 'usrmerge' distro feature is enabled. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 2 +- 1 file changed, 1

[OE-core] [PATCH v4 1/7] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Amarnath Valluri
A new configuration variable ${root_prefix} added, which shall be used by all base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 10

[OE-core] [PATCH v4 0/7] Fix for #7040 - Support for /usr merge

2017-06-14 Thread Amarnath Valluri
Changes in v4: - root symlinks creation for nativesdk images. - added PACKAGECONFIG option for 'usrmerge' in systemd Amarnath Valluri (7): bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge cross.bbclass: merged /usr support systemd: changes to support m

Re: [OE-core] [PATCH v4 7/8] image: create symlinks needed for merged /usr

2017-06-13 Thread Amarnath Valluri
On Tue, 2017-06-13 at 14:16 +, Peter Kjellerstedt wrote: > > -Original Message- > > From: openembedded-core-boun...@lists.openembedded.org > > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > > Amarnath Valluri > > Sent:

[OE-core] [PATCH v4 2/8] cross.bbclass: merged /usr support

2017-06-13 Thread Amarnath Valluri
Use ${root_prefix} instead of ${base_prefix} while setting ${target_base_prefix}, otherwise we might loose the root prefix configuration change in case of 'usrmerge' distro feature is enabled. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 2 +- 1 file changed, 1

[OE-core] [PATCH v4 3/8] systemd: changes to support merged /usr

2017-06-13 Thread Amarnath Valluri
e' distro feature enabled this path would be '/usr/lib'. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/syste

[OE-core] [PATCH v4 7/8] image: create symlinks needed for merged /usr

2017-06-13 Thread Amarnath Valluri
cripts uses "#!/bin/sh" Signed-off-by: Amarnath Valluri --- meta/classes/image.bbclass | 21 + 1 file changed, 21 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 85f6b9a..2a3c1e3 100644 --- a/meta/classes/image.bbclass +++ b/meta

[OE-core] [PATCH v3 6/8] sed: changes to support merged /usr

2017-06-12 Thread Amarnath Valluri
Few of the perl scripts referring '#!/bin/sed' inside the script. But when 'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy build dependency add '/bin/sed' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes

[OE-core] [PATCH v3 7/8] image: create symlinks needed for merged /usr

2017-06-12 Thread Amarnath Valluri
cripts uses "#!/bin/sh" Signed-off-by: Amarnath Valluri --- meta/classes/image.bbclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 85f6b9a..f08e3e1 100644 --- a/meta/classes/image.bbclass +++ b/meta

[OE-core] [PATCH v3 8/8] insane.bbclass: Add package QA check for merged /usr.

2017-06-12 Thread Amarnath Valluri
This check makes sure that, when usrmerge distro feature enabled, no package installs files to root (/bin, /sbin, /lib, /lib64) folders. Signed-off-by: Amarnath Valluri --- meta/classes/insane.bbclass | 16 1 file changed, 16 insertions(+) diff --git a/meta/classes

[OE-core] [PATCH v3 3/8] systemd: chagnes to support merged /usr

2017-06-12 Thread Amarnath Valluri
e' distro feature enabled this path would be '/usr/lib'. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/syste

[OE-core] [PATCH v3 4/8] bash: changes to support merged /usr

2017-06-12 Thread Amarnath Valluri
Most of shell scripts refer to '#!/bin/{sh,bash}' inside the script. But when 'usrmege' feature is enabled this path will be /usr/bin/{sh, bash}. so to satisify build dependency add '/bin/{sh,bash}' to its providers list. Signed-off-by: Amarnath Valluri --- meta/

[OE-core] [PATCH v3 5/8] busybox: changes to support merged /usr

2017-06-12 Thread Amarnath Valluri
Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege' feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build dependency add '/bin/sh' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes-core/busybox/b

[OE-core] [PATCH v3 0/8] Fix for #7040 - Support for /usr merge

2017-06-12 Thread Amarnath Valluri
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 DI

[OE-core] [PATCH v3 1/8] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-12 Thread Amarnath Valluri
A new configuration variable ${root_prefix} added, which shall be used by all base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 10

[OE-core] [PATCH v3 2/8] cross.bbclass: merged /usr support

2017-06-12 Thread Amarnath Valluri
To be align with base configuration change, use ${root_prefix} while preparing ${target_base_libdir}. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass

[OE-core] [PATCH] cross.bbclass: Preserve the bitbake configuration

2017-05-05 Thread Amarnath Valluri
While preparing target_libdir and target_base_libdir we should preserve the bitbake configuration used for 'base_libdir' and 'libdir' instead of assuming ${base|exec}_prefix/${baselib}, which is not true in case of merged '/usr'. Signed-off-by: Amarnath Valluri -

[OE-core] [OE-Core][PATCH] firmware: use ${nonarch_base_libdir} for firmware installation.

2017-03-23 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel firmware installation path with ${nonarch_base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-kernel/linu

[OE-core] [OE-Core][PATCH v3] lsb: Make use of appropriate bitbake variables.

2017-03-03 Thread Amarnath Valluri
Using of bitbake environment variables in-place of hardcoded strings makes this recipe portable to all environments. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/lsb/lsb_4.1.bb | 40 +--- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git

[OE-core] [OE-Core[[PATCH v3 19/25] mdadm: Avoid using hardocded sbin path

2017-03-03 Thread Amarnath Valluri
Use appropriate bitbake variable inplace of hardcoded sbin path in Makefile Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mdadm/mdadm_4.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/mdadm/mdadm_4.0.bb b/meta/recipes-extended/mdadm

[OE-core] [OE-Core][PATCH v3] firmware: use ${nonarch_base_libdir} for firmware installation.

2017-03-01 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel firmware installation path with ${nonarch_base_libdir}. Signed-off-by: Amarnath Valluri --- .../linux-firmware/linux-firmware_git.bb | 168 ++--- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/meta/reci

[OE-core] [PATCH v2 18/25] firmware: use ${nonarch_base_libdir} for firmware installation.

2017-02-22 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel firmware installation path with ${nonarch_base_libdir}. Signed-off-by: Amarnath Valluri --- .../linux-firmware/linux-firmware_git.bb | 168 ++--- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/meta/reci

[OE-core] [PATCH v2 19/25] mdadm: Avoid using hardocded udev, sbin paths

2017-02-22 Thread Amarnath Valluri
Use appropriate bitbake variables inplace of below hardcoded locations: /sbin -> ${base_sbindir} /lib/udev -> ${nonarch_base_libdir}/udev Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mdadm/mdadm_4.0.bb | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff -

[OE-core] [PATCH v2 20/25] mktemp: Move installed files only when needed

2017-02-22 Thread Amarnath Valluri
Move binary(ies) only when ${base_bindir} != ${bindir}. When usrmerge distro feature is enabled they both might point to same location. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mktemp/mktemp_1.7.bb | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH v2 25/25] insane.bbclass: Add package QA check for merged /usr.

2017-02-22 Thread Amarnath Valluri
This check makes sure that, when usrmerge distro feature enabled, no package installs files to root (/bin, /sbin, /lib, /lib64) folders. Signed-off-by: Amarnath Valluri --- meta/classes/insane.bbclass | 16 1 file changed, 16 insertions(+) diff --git a/meta/classes

[OE-core] [PATCH v2 24/25] image: create symlinks needed for merged /usr

2017-02-22 Thread Amarnath Valluri
cripts uses "#!/bin/sh" Signed-off-by: Amarnath Valluri --- meta/classes/image.bbclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 127e62d..4a9b40e 100644 --- a/meta/classes/image.bbclass +++ b/meta

[OE-core] [PATCH v2 23/25] lttng-modules: Replace '/lib' with ${nonarch_base_libdir}

2017-02-22 Thread Amarnath Valluri
Do not assume '/lib' for kernel modules location, instead use ${nonarch_base_libdir}. Because when 'usrmerge' distro feature is enabled, kernel modules are not located in /lib/modules, instead /usr/lib/modules. Signed-off-by: Amarnath Valluri --- meta/recipes-kernel/lttng/lt

[OE-core] [PATCH v2 16/25] libarchive: Backport upstream fixes.

2017-02-22 Thread Amarnath Valluri
These set of patches backported from upstream, which fixes the issues in extracting hardlinks over softlinks while etracting packages by opkg. Signed-off-by: Amarnath Valluri --- ...te_disk_posix.c-make-_fsobj-functions-mor.patch | 245 + ...02-Fix-extracting-hardlinks-over

[OE-core] [PATCH v2 21/25] net-tools: Place package content as per bitbake environment.

2017-02-22 Thread Amarnath Valluri
-tools recipe is using pre-generated config.{h/status}. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 11 +++ 1 file changed, 11 insertions(+) diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net

[OE-core] [PATCH v2 22/25] lsb: Make use of appropriate bitbake variables.

2017-02-22 Thread Amarnath Valluri
Using of bitbake environment variables in-place of hardcoded strings makes this recipe portable to all environments. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/lsb/lsb_4.1.bb | 40 +--- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git

[OE-core] [PATCH v2 17/25] kernel: use ${nonarch_base_libdir} for kernel modules installation.

2017-02-22 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel modules installation path with ${nonarch_base_libdir}, which is meant exactly for this. Signed-off-by: Amarnath Valluri --- meta/classes/kernel-module-split.bbclass | 2 +- meta/classes/kernel.bbclass | 14 +++--- me

[OE-core] [PATCH v2 15/25] util-linux, shadow: Make 'nologin' alternative command

2017-02-22 Thread Amarnath Valluri
Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir} and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative system to resolve the conflict. Sig

[OE-core] [PATCH v2 12/25] attr/acl: Do not create broken static library link when not needed

2017-02-22 Thread Amarnath Valluri
Stop creating the static library archieve(liba(ttr|cl).a) when --disable-static configure option used. Signed-off-by: Amarnath Valluri --- meta/recipes-support/attr/ea-acl.inc | 2 + ...gure-option-to-enable-disable-static-libr.patch | 70 ++ 2 files changed

[OE-core] [PATCH v2 07/25] busybox: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege' feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build dependency add '/bin/sh' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes-core/busybox/b

[OE-core] [PATCH v2 11/25] util-linux: Fix packaging with "usrmerge"

2017-02-22 Thread Amarnath Valluri
From: Jussi Kukkonen Make sure fsck.cramfs is packaged before fsck so the latter does not steal the fsck.cramfs binary when building with usrmerge DISTRO_FEATURE. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/util-linux/util-linux.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[OE-core] [PATCH v2 09/25] musl: Fix issues in relative symlink creation

2017-02-22 Thread Amarnath Valluri
Make use of lnr/ln -r while creating relative symlinks than guessing the relalive path. Signed-off-by: Amarnath Valluri --- ...dynamic-linker-a-relative-symlink-to-libc.patch | 62 ++ meta/recipes-core/musl/musl_git.bb | 2 +- 2 files changed, 53 insertions

[OE-core] [PATCH v2 14/25] util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.

2017-02-22 Thread Amarnath Valluri
update-alternative.bbclass might rename the 'reset' binary when LINK_NAME == TARGET, This is true(${base_bindir} == ${bindir}) when 'usrmerge' distro feature is enabled. Hence, suffix with * to properly package the renamed binary. Signed-off-by: Amarnath Valluri util-lin

[OE-core] [PATCH v2 08/25] sed: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Few of the perl scripts referring '#!/bin/sed' inside the script. But when 'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy build dependency add '/bin/sed' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes

[OE-core] [PATCH v2 13/25] systemd: Do not add libnss_* to systemd package

2017-02-22 Thread Amarnath Valluri
libnss_* files should be part of corresponding sub-packages, the split happens by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files endup in systemd package when ${libdir} == ${base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb

[OE-core] [PATCH v2 10/25] glibc: Ensure ldconfig is packaged into glibc

2017-02-22 Thread Amarnath Valluri
From: Jussi Kukkonen If "usrmerge" feature is used, /usr/sbin/ldconfig gets packaged into glibc-utils instead of glibc: Switch PACKAGES order to prevent this. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/glibc/glibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OE-core] [PATCH v2 05/25] systemd: chagnes to support merged /usr

2017-02-22 Thread Amarnath Valluri
When the usrmerge DISTRO_FEATURE is selected disable the split-usr support and modify rootprefix to be exec_prefix, rather than base_prefix. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH v2 06/25] bash: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Most of shell scripts refer to '#!/bin/{sh,bash}' inside the script. But when 'usrmege' feature is enabled this path will be /usr/bin/{sh, bash}. so to satisify build dependency add '/bin/{sh,bash}' to its providers list. Signed-off-by: Amarnath Valluri --- meta/

[OE-core] [PATCH v2 03/25] cross.bbclass: merged /usr support

2017-02-22 Thread Amarnath Valluri
When 'usrmerge' distro feature enabled match target_base_libdir to ${target_libdir}. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 260215

[OE-core] [PATCH v2 04/25] base-files: Replace hardcoded root paths with appropriate bitbake variables

2017-02-22 Thread Amarnath Valluri
/bin, /sbin, /lib are replaced with ${base_bindir}, ${base_sbindir} and ${base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-core/base-files/base-files_3.0.14.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/base-files/base-files_3.0.14

[OE-core] [PATCH v2 02/25] bitbake.conf: Modify nativesdk variables to support 'usrmerge' DISTRO_FEATURE

2017-02-22 Thread Amarnath Valluri
Modify base bin, sbin, and lib nativesdk variables to be ${prefix_nativesdk}/$d, when the usrmerge DISTRO_FEATURE is enabled. Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf

[OE-core] [PATCH v2 00/25] Fix for #7040 - Support for /usr merge

2017-02-22 Thread Amarnath Valluri
usrmerge feature. - Fixed typos in commit messages. Amarnath Valluri (22): bitbake.conf: Modify nativesdk variables to support 'usrmerge' DISTRO_FEATURE cross.bbclass: merged /usr support base-files: Replace hardcoded root paths with appropriate bitbake variables systemd: chag

[OE-core] [PATCH v2 01/25] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-02-22 Thread Amarnath Valluri
From: Joshua Lock Modify bindir, libdir and sbindir to be exec_prefix/$d, rather than base_prefix/$d, when the usrmerge DISTRO_FEATURE is enabled. Signed-off-by: Joshua Lock --- meta/conf/bitbake.conf | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/meta/conf/bi

[OE-core] [PATCH v2 25/25] insane.bbclass: Add package QA check for merged /usr.

2017-02-22 Thread Amarnath Valluri
This check makes sure that, when usrmerge distro feature enabled, no package installs files to root (/bin, /sbin, /lib, /lib64) folders. Signed-off-by: Amarnath Valluri --- meta/classes/insane.bbclass | 16 1 file changed, 16 insertions(+) diff --git a/meta/classes

[OE-core] [PATCH v2 20/25] mktemp: Move installed files only when needed

2017-02-22 Thread Amarnath Valluri
Move binary(ies) only when ${base_bindir} != ${bindir}. When usrmerge distro feature is enabled they both might point to same location. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mktemp/mktemp_1.7.bb | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH v2 22/25] lsb: Make use of appropriate bitbake variables.

2017-02-22 Thread Amarnath Valluri
Using of bitbake environment variables in-place of hardcoded strings makes this recipe portable to all environments. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/lsb/lsb_4.1.bb | 40 +--- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git

[OE-core] [PATCH v2 23/25] lttng-modules: Replace '/lib' with ${nonarch_base_libdir}

2017-02-22 Thread Amarnath Valluri
Do not assume '/lib' for kernel modules location, instead use ${nonarch_base_libdir}. Because when 'usrmerge' distro feature is enabled, kernel modules are not located in /lib/modules, instead /usr/lib/modules. Signed-off-by: Amarnath Valluri --- meta/recipes-kernel/lttng/lt

[OE-core] [PATCH v2 21/25] net-tools: Place package content as per bitbake environment.

2017-02-22 Thread Amarnath Valluri
-tools recipe is using pre-generated config.{h/status}. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 11 +++ 1 file changed, 11 insertions(+) diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net

[OE-core] [PATCH v2 24/25] image: create symlinks needed for merged /usr

2017-02-22 Thread Amarnath Valluri
cripts uses "#!/bin/sh" Signed-off-by: Amarnath Valluri --- meta/classes/image.bbclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 127e62d..4a9b40e 100644 --- a/meta/classes/image.bbclass +++ b/meta

[OE-core] [PATCH v2 18/25] firmware: use ${nonarch_base_libdir} for firmware installation.

2017-02-22 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel firmware installation path with ${nonarch_base_libdir}. Signed-off-by: Amarnath Valluri --- .../linux-firmware/linux-firmware_git.bb | 168 ++--- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/meta/reci

[OE-core] [PATCH v2 19/25] mdadm: Avoid using hardocded udev, sbin paths

2017-02-22 Thread Amarnath Valluri
Use appropriate bitbake variables inplace of below hardcoded locations: /sbin -> ${base_sbindir} /lib/udev -> ${nonarch_base_libdir}/udev Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mdadm/mdadm_4.0.bb | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff -

[OE-core] [PATCH v2 17/25] kernel: use ${nonarch_base_libdir} for kernel modules installation.

2017-02-22 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel modules installation path with ${nonarch_base_libdir}, which is meant exactly for this. Signed-off-by: Amarnath Valluri --- meta/classes/kernel-module-split.bbclass | 2 +- meta/classes/kernel.bbclass | 14 +++--- me

[OE-core] [PATCH v2 14/25] util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.

2017-02-22 Thread Amarnath Valluri
update-alternative.bbclass might rename the 'reset' binary when LINK_NAME == TARGET, This is true(${base_bindir} == ${bindir}) when 'usrmerge' distro feature is enabled. Hence, suffix with * to properly package the renamed binary. Signed-off-by: Amarnath Valluri util-lin

[OE-core] [PATCH v2 15/25] util-linux, shadow: Make 'nologin' alternative command

2017-02-22 Thread Amarnath Valluri
Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir} and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative system to resolve the conflict. Sig

[OE-core] [PATCH v2 11/25] util-linux: Fix packaging with "usrmerge"

2017-02-22 Thread Amarnath Valluri
From: Jussi Kukkonen Make sure fsck.cramfs is packaged before fsck so the latter does not steal the fsck.cramfs binary when building with usrmerge DISTRO_FEATURE. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/util-linux/util-linux.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[OE-core] [PATCH v2 13/25] systemd: Do not add libnss_* to systemd package

2017-02-22 Thread Amarnath Valluri
libnss_* files should be part of corresponding sub-packages, the split happens by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files endup in systemd package when ${libdir} == ${base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb

[OE-core] [PATCH v2 16/25] libarchive: Backport upstream fixes.

2017-02-22 Thread Amarnath Valluri
These set of patches backported from upstream, which fixes the issues in extracting hardlinks over softlinks while etracting packages by opkg. Signed-off-by: Amarnath Valluri --- ...te_disk_posix.c-make-_fsobj-functions-mor.patch | 245 + ...02-Fix-extracting-hardlinks-over

[OE-core] [PATCH v2 12/25] attr/acl: Do not create broken static library link when not needed

2017-02-22 Thread Amarnath Valluri
Stop creating the static library archieve(liba(ttr|cl).a) when --disable-static configure option used. Signed-off-by: Amarnath Valluri --- meta/recipes-support/attr/ea-acl.inc | 2 + ...gure-option-to-enable-disable-static-libr.patch | 70 ++ 2 files changed

[OE-core] [PATCH v2 10/25] glibc: Ensure ldconfig is packaged into glibc

2017-02-22 Thread Amarnath Valluri
From: Jussi Kukkonen If "usrmerge" feature is used, /usr/sbin/ldconfig gets packaged into glibc-utils instead of glibc: Switch PACKAGES order to prevent this. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/glibc/glibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OE-core] [PATCH v2 09/25] musl: Fix issues in relative symlink creation

2017-02-22 Thread Amarnath Valluri
Make use of lnr/ln -r while creating relative symlinks than guessing the relalive path. Signed-off-by: Amarnath Valluri --- ...dynamic-linker-a-relative-symlink-to-libc.patch | 62 ++ meta/recipes-core/musl/musl_git.bb | 2 +- 2 files changed, 53 insertions

[OE-core] [PATCH v2 08/25] sed: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Few of the perl scripts referring '#!/bin/sed' inside the script. But when 'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy build dependency add '/bin/sed' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes

[OE-core] [PATCH v2 07/25] busybox: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege' feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build dependency add '/bin/sh' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes-core/busybox/b

[OE-core] [PATCH v2 06/25] bash: changes to support merged /usr

2017-02-22 Thread Amarnath Valluri
Most of shell scripts refer to '#!/bin/{sh,bash}' inside the script. But when 'usrmege' feature is enabled this path will be /usr/bin/{sh, bash}. so to satisify build dependency add '/bin/{sh,bash}' to its providers list. Signed-off-by: Amarnath Valluri --- meta/

[OE-core] [PATCH v2 05/25] systemd: chagnes to support merged /usr

2017-02-22 Thread Amarnath Valluri
When the usrmerge DISTRO_FEATURE is selected disable the split-usr support and modify rootprefix to be exec_prefix, rather than base_prefix. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH v2 04/25] base-files: Replace hardcoded root paths with appropriate bitbake variables

2017-02-22 Thread Amarnath Valluri
/bin, /sbin, /lib are replaced with ${base_bindir}, ${base_sbindir} and ${base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-core/base-files/base-files_3.0.14.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/base-files/base-files_3.0.14

[OE-core] [PATCH v2 02/25] bitbake.conf: Modify nativesdk variables to support 'usrmerge' DISTRO_FEATURE

2017-02-22 Thread Amarnath Valluri
Modify base bin, sbin, and lib nativesdk variables to be ${prefix_nativesdk}/$d, when the usrmerge DISTRO_FEATURE is enabled. Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf

[OE-core] [PATCH v2 03/25] cross.bbclass: merged /usr support

2017-02-22 Thread Amarnath Valluri
When 'usrmerge' distro feature enabled match target_base_libdir to ${target_libdir}. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 260215

[OE-core] [PATCH v2 01/25] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-02-22 Thread Amarnath Valluri
From: Joshua Lock Modify bindir, libdir and sbindir to be exec_prefix/$d, rather than base_prefix/$d, when the usrmerge DISTRO_FEATURE is enabled. Signed-off-by: Joshua Lock --- meta/conf/bitbake.conf | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/meta/conf/bi

[OE-core] [PATCH v2 17/23] libarchive: Backport upstream fixes.

2017-02-10 Thread Amarnath Valluri
These set of patches backported from upstream, which fixes the issues in extracting hardlinks over softlinks while etracting packages by opkg. Signed-off-by: Amarnath Valluri --- ...te_disk_posix.c-make-_fsobj-functions-mor.patch | 245 + ...02-Fix-extracting-hardlinks-over

[OE-core] [PATCH 23/23] lsb: Make use of appropriate bitbake variables.

2017-02-10 Thread Amarnath Valluri
Using of bitbake environment variables in-place of hardcoded strings makes this recipe portable to all environments. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/lsb/lsb_4.1.bb | 40 +--- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git

[OE-core] [PATCH 22/23] net-tools: Place package content as per bitbake environment.

2017-02-10 Thread Amarnath Valluri
-tools recipe is using pre-generated config.{h/status}. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 11 +++ 1 file changed, 11 insertions(+) diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net

[OE-core] [PATCH 21/23] mktemp: Move installed files only when needed

2017-02-10 Thread Amarnath Valluri
Move binary(ies) only when ${base_bindir} != ${bindir}. When usrmerge distro feature is enabled they both might point to same location. Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mktemp/mktemp_1.7.bb | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH 19/23] firmware: use ${nonarch_base_libdir} for firmware installation.

2017-02-10 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel firmware installation path with ${nonarch_base_libdir}. Signed-off-by: Amarnath Valluri --- .../linux-firmware/linux-firmware_git.bb | 168 ++--- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/meta/reci

[OE-core] [PATCH 20/23] mdadm: Avoid using hardocded udev, sbin paths

2017-02-10 Thread Amarnath Valluri
Use appropriate bitbake variables inplace of below hardcoded locations: /sbin -> ${base_sbindir} /lib/udev -> ${nonarch_base_libdir}/udev Signed-off-by: Amarnath Valluri --- meta/recipes-extended/mdadm/mdadm_4.0.bb | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff -

[OE-core] [PATCH 17/23] libarchive: Backport upstream fixes.

2017-02-10 Thread Amarnath Valluri
These set of patches backported from upstream, which fixes the issues in extracting hardlinks over softlinks while etracting packages by opkg. Signed-off-by: Amarnath Valluri --- ...te_disk_posix.c-make-_fsobj-functions-mor.patch | 242 + ...02-Fix-extracting-hardlinks-over

[OE-core] [PATCH 18/23] kernel: use ${nonarch_base_libdir} for kernel modules installation.

2017-02-10 Thread Amarnath Valluri
Replace hardcoded '/lib' in kernel modules installation path with ${nonarch_base_libdir}, which is ment exactly for this. Signed-off-by: Amarnath Valluri --- meta/classes/kernel-module-split.bbclass | 2 +- meta/classes/kernel.bbclass | 14 +++--- me

[OE-core] [PATCH 16/23] util-linux, shadow: Make 'nologin' alternative command

2017-02-10 Thread Amarnath Valluri
Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir} and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative system to resolve the conflict. Sig

[OE-core] [PATCH 15/23] util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.

2017-02-10 Thread Amarnath Valluri
27; alternative available only for target. Signed-off-by: Amarnath Valluri --- meta/recipes-core/util-linux/util-linux.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index ae60

[OE-core] [PATCH 13/23] attr/acl: Do not create broken static library link when not needed

2017-02-10 Thread Amarnath Valluri
Stop creating the static library archieve(liba(ttr|cl).a) when --disable-static configure option used. Signed-off-by: Amarnath Valluri --- meta/recipes-support/attr/ea-acl.inc | 2 + ...gure-option-to-enable-disable-static-libr.patch | 70 ++ 2 files changed

[OE-core] [PATCH 14/23] systemd: Do not add libnss_* to systemd package

2017-02-10 Thread Amarnath Valluri
libnss_* files should be part of corresponding sub-packages, the split happens by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files endup in systemd package when ${libdir} == ${base_libdir}. Signed-off-by: Amarnath Valluri --- meta/recipes-core/systemd/systemd_232.bb

[OE-core] [PATCH 12/23] util-linux: Fix packaging with "usrmerge"

2017-02-10 Thread Amarnath Valluri
From: Jussi Kukkonen Make sure fsck.cramfs is packaged before fsck so the latter does not steal the fsck.cramfs binary when building with usrmerge DISTRO_FEATURE. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/util-linux/util-linux.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[OE-core] [PATCH 10/23] musl: Fix issues in relative symlink creation

2017-02-10 Thread Amarnath Valluri
Make use of lnr/ln -r while creating relative symlinks than guessing the relalive path. Signed-off-by: Amarnath Valluri --- ...dynamic-linker-a-relative-symlink-to-libc.patch | 58 ++ meta/recipes-core/musl/musl_git.bb | 2 +- 2 files changed, 49 insertions

[OE-core] [PATCH 09/23] package_deb.bbclass: Ignore file paths in RPROVIDES

2017-02-10 Thread Amarnath Valluri
Unlike rpm, debian packaging does not allow file paths in 'Provides:' field. When 'usrmerge' distro feature enabled bash/busybox packages adds '/bin/sh' to it's RPROVIDES to satisfy build dependencies, this entry should be filtered out. Signed-off-by:

[OE-core] [PATCH 11/23] glibc: Ensure ldconfig is packaged into glibc

2017-02-10 Thread Amarnath Valluri
From: Jussi Kukkonen If "usrmerge" feature is used, /usr/sbin/ldconfig gets packaged into glibc-utils instead of glibc: Switch PACKAGES order to prevent this. Signed-off-by: Jussi Kukkonen --- meta/recipes-core/glibc/glibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OE-core] [PATCH 08/23] sed: changes to support merged /usr

2017-02-10 Thread Amarnath Valluri
Few of the perl scripts referring '#!/bin/sed' inside the script. But when 'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy build dependency add '/bin/sed' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes

[OE-core] [PATCH 07/23] busybox: changes to support merged /usr

2017-02-10 Thread Amarnath Valluri
Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege' feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build dependency add '/bin/sh' to it's providers list. Signed-off-by: Amarnath Valluri --- meta/recipes-core/busybox/b

[OE-core] [PATCH 04/23] base-files: support merged /usr

2017-02-10 Thread Amarnath Valluri
From: Joshua Lock When the usrmerge DISTRO_FEATURE is enabled don't create /bin, /lib{32,64} and /sbin. Instead, link them to the equivalent directories in /usr Signed-off-by: Joshua Lock Signed-off-by: Amarnath Valluri --- meta/recipes-core/base-files/base-files_3.0.14.bb

[OE-core] [PATCH 06/23] bash: changes to support merged /usr

2017-02-10 Thread Amarnath Valluri
Most of shell scripts refer to '#!/bin/{sh,bash}' inside the script. But when 'usrmege' feature is enbaled this path will be /usr/bin/{sh, bash}. so to satisify build dependency add '/bin/{sh,bash}' to its providers list. Signed-off-by: Amarnath Valluri --- meta/

  1   2   >