Re: [OE-core] [PATCH] kernel-devsrc: Fix backward compaibilty

2016-01-20 Thread Jian Liu
On 2016年01月20日 15:52, Richard Purdie wrote: On Wed, 2016-01-20 at 13:27 +0800, Jian Liu wrote: kernel-dev is replaced by kernel-devsrc No, its not. , which breaks backward compaibilty. -- add alias for kernel-devsrc -- kernel-devsrc provides the kernel-dev. -- remove kernel-dev from

Re: [OE-core] [PATCH] linux-libc-headers: not to create empty rpm

2016-01-20 Thread Jian Liu
On 2016年01月20日 15:49, Richard Purdie wrote: On Wed, 2016-01-20 at 14:10 +0800, Jian Liu wrote: linux-libc-headers-dbg is empty and unset ALLOW_EMPTY for this sub-package. Signed-off-by: Jian Liu diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc -headers.inc b/meta/recipes

[OE-core] [PATCH] linux-libc-headers: not to create empty rpm

2016-01-19 Thread Jian Liu
linux-libc-headers-dbg is empty and unset ALLOW_EMPTY for this sub-package. Signed-off-by: Jian Liu diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc index 2ba6ed5..75f6899 100644 --- a/meta/recipes-kernel

Re: [OE-core] [PATCH 1/1] linux-libc-headers: set ALLOW_EMPTY

2016-01-19 Thread Jian Liu
On 2016年01月19日 19:37, Martin Jansa wrote: On Tue, Jan 19, 2016 at 11:12:18AM +0800, Jian Liu wrote: On 2016年01月16日 02:17, Richard Purdie wrote: On Thu, 2016-01-14 at 14:46 +0800, Jian Liu wrote: If setting IMAGE_INSTALL += "linux-libc-headers", do_rootfs will cause error. ER

[OE-core] [PATCH] kernel-devsrc: Fix backward compaibilty

2016-01-19 Thread Jian Liu
kernel-dev is replaced by kernel-devsrc, which breaks backward compaibilty. -- add alias for kernel-devsrc -- kernel-devsrc provides the kernel-dev. -- remove kernel-dev from the sub-packages of linux-windriver Signed-off-by: Jian Liu diff --git a/meta/classes/kernel.bbclass b/meta/classes

Re: [OE-core] [PATCH 1/1] linux-libc-headers: set ALLOW_EMPTY

2016-01-18 Thread Jian Liu
On 2016年01月16日 02:17, Richard Purdie wrote: On Thu, 2016-01-14 at 14:46 +0800, Jian Liu wrote: If setting IMAGE_INSTALL += "linux-libc-headers", do_rootfs will cause error. ERROR: linux-libc-headers not found in the base feeds This is because that there is no linux-libc-h

[OE-core] [PATCH 1/1] linux-libc-headers: set ALLOW_EMPTY

2016-01-13 Thread Jian Liu
If setting IMAGE_INSTALL += "linux-libc-headers", do_rootfs will cause error. ERROR: linux-libc-headers not found in the base feeds This is because that there is no linux-libc-headers.rpm generated. Signed-off-by: Jian Liu diff --git a/meta/recipes-kernel/linux-libc-headers/

Re: [OE-core] [PATCH] archiver.bbclass: fix an exception of the mode configured

2015-12-21 Thread Jian Liu
Ping On 2015年11月17日 13:31, Jian Liu wrote: Hi Ross, I check the values of d.getVarFlag('do_configure', 'task') and d.getVarFlag('do_unpack', 'task') for gcc-source. But it seems that both values are 1. I use the following command to get t

[OE-core] [PATCH 1/1] Fix missing check for permission denied.

2015-12-18 Thread Jian Liu
But the problem should not really be visible for the target package as the path then will be "/etc/mke2fs.conf", and it is not likely that a user have no permission to read /etc. Signed-off-by: Jian Liu --- .../fix-missing-check-for-permission-denied.patch | 23 +++

Re: [OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-12-17 Thread Jian Liu
not a bare repo any more. I do not know why "bareclone=1" is removed. This option seems to have no side effect on kernel. So I thinks this should be a hidden trouble. Do you have any ideas? Thanks! Jian On 2015年12月17日 06:29, Burton, Ross wrote: On 2 November 2015 at 06:23, J

Re: [OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-12-13 Thread Jian Liu
Ping On 2015年11月13日 16:16, Jian Liu wrote: Hi Raj, I tried meta-rasberrypi with my patch and it works well. The tasks of the recipe linux-rasberrypi is similar with linux-yocto and linux-rasberrypi also inherits linux-yocto.bbclass I read the codes of archiver and it seems that kernel is

Re: [OE-core] [PATCH] archiver.bbclass: fix an exception of the mode configured

2015-11-16 Thread Jian Liu
ut how to get the current tasks of a recipe. But I get nothing more. Thanks! Jian On 2015年11月16日 23:08, Burton, Ross wrote: On 16 November 2015 at 05:33, Jian Liu <mailto:jian@windriver.com>> wrote: + if d.getVarFlag('do_configure', 'noexec') == '1&#x

[OE-core] [PATCH] archiver.bbclass: fix an exception of the mode configured

2015-11-15 Thread Jian Liu
gcc-source does not have the task do_configure, so if configured mode is set, the task do_ar_configured depends on do_configure. This will cause an error. Signed-off-by: Jian Liu --- archiver.bbclass | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/meta/classes

Re: [OE-core] [PATCH] archiver.bbclass: fix an exception of the mode configured

2015-11-15 Thread Jian Liu
Hi all, Sorry for a mistake. Please ignore this patch Jian On 2015年11月13日 18:09, Jian Liu wrote: gcc-source does not have the task do_configure, so if configured mode is set, the task do_ar_configured depends on do_configure. This will cause an error. Signed-off-by: Jian Liu

[OE-core] [PATCH] archiver.bbclass: fix an exception of the mode configured

2015-11-13 Thread Jian Liu
gcc-source does not have the task do_configure, so if configured mode is set, the task do_ar_configured depends on do_configure. This will cause an error. Signed-off-by: Jian Liu --- archiver.bbclass | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/meta

[OE-core] [PATCH] archiver.bbclass: add bbappend when do_ar_recipe kernel and gcc packages

2015-11-13 Thread Jian Liu
bbappend files are not included in the archiver during do_ar_recipe. Find and put them into the tarball. Signed-off-by: Jian Liu diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 1d17fc5..ccb5b09 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes

Re: [OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-11-13 Thread Jian Liu
x27;kernel-yocto', d)" when kernel needs to be handled specially What do you think? Thanks! Jian On 2015年11月05日 10:22, Khem Raj wrote: On Wed, Nov 4, 2015 at 6:14 PM, Jian Liu wrote: Hi, All kernels I list bellow will perform do_fetch(), do_unpack(), do_kernel_checkout(). do_unpa

[OE-core] [PATCH] sdk.py: fix conflicts of packages

2015-11-11 Thread Jian Liu
If packages are conveyed to smart to install at the same time, conflicts will not happen. Try to install packages into sdk image at the same time Signed-off-by: Jian Liu --- sdk.py | 108 + 1 file changed, 96 insertions(+), 12

Re: [OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-11-04 Thread Jian Liu
日 13:57, Khem Raj wrote: On Nov 3, 2015, at 1:22 AM, Jian Liu wrote: > >Hi, > >I test linux-dummy linux-yocto-dev linux-yocto-rt linux-yocto-tiny and the result is as follows, > >linux-dummy: this package just meets some dependency and there is no source code for it. >

Re: [OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-11-03 Thread Jian Liu
, linux-yocto-tiny: The S variable of all packages is set to STAGING_KERNEK_DIR. do_fetch and do_unpack just leave a bare git repo of kernel and do_kernel_checkout gets the source code Thanks! Jian On 2015年11月03日 05:30, Khem Raj wrote: On Sun, Nov 1, 2015 at 10:23 PM, Jian Liu

[OE-core] [PATCH] archiver.bbclass: do checkout for kernel

2015-11-01 Thread Jian Liu
The repo of kernel is bare git repository and we need to checkout to get the source code. Signed-off-by: Jian Liu diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 41a552c..7387fbf 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass

[OE-core] [PATCH] insane.bbclass: Avoid libdir QA check if PACKAGE_DEBUG_SPLIT_STYLE='debug-file-directory'

2015-11-01 Thread Jian Liu
If PACKAGE_DEBUG_SPLIT_STYLE='debug-file-directory', debuglibdir will be "/usr/lib/debug". Usually 64bit libs should be put under "/usr/lib64". This often cause an warning, so skip the checking. Signed-off-by: Jian Liu --- meta/classes/insane.bbclass | 3 +++

[OE-core] [PATCH] base.bbclass: considering multilib when setting LICENSE_EXCLUSION

2015-10-07 Thread Jian Liu
name during setting LICENSE_EXCLUSION Signed-off-by: Jian Liu --- meta/classes/base.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f078001..89c8f04 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes

[OE-core] [PATCH] sdk.py: fix conflicts of packages

2015-08-25 Thread Jian Liu
b32-ncurses-dev will have conflicts during packages installation. Signed-off-by: Jian Liu --- sdk.py | 45 + 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index c57a441..7b43a29 100644 ---

[OE-core] [PATCH] kernel-devsrc: missing tools for building modules

2015-06-30 Thread Jian Liu
Some tools under scripts are missed and this can cause error during building modules on the target Build these tools by "make script". Also handle the .debug directories. Signed-off-by: Jian Liu --- meta/recipes-kernel/linux/kernel-devsrc.bb | 6 +- 1 file changed, 5 insert

[OE-core] [PATCH v2] bootchart2: add dependency for bootchartd

2015-03-10 Thread Jian Liu
bootchartd use the command lsb_release and pidof during running, and also the two commands are not installed defaultly. So add sysvinit-pidof and lsb in the RDEPENDS. Signed-off-by: Jian Liu --- meta/recipes-devtools/bootchart2/bootchart2_git.bb | 5 + 1 file changed, 5 insertions(+) diff

[OE-core] [PATCH] bootchart2: add dependency for bootchartd

2015-03-04 Thread Jian Liu
bootchartd use the command lsb_release and pidof during running, and also the two commands are not installed defaultly. So add sysvinit-pidof and lsb in the RDEPENDS. Signed-off-by: Jian Liu --- meta/recipes-devtools/bootchart2/bootchart2_git.bb | 5 + 1 file changed, 5 insertions(+) diff

[OE-core] [PATCH] bootchart2: /sbin/bootchartd referencing wrong libdir

2015-03-03 Thread Jian Liu
can not find bootchart-collector. Set LIBDIR to /lib64 during both task to fix this inconsistence - bootchartd depends the command lsb_release and pidof during running, so add sysvinit-pidof and lsb in the RDEPENDS Signed-off-by: Jian Liu --- meta/recipes-devtools/bootchart2

[OE-core] [PATCH] man: fix bugs of makewhatis script

2015-02-25 Thread Jian Liu
- man-1.6e-whatis2.patch does not delete the tail "fi" fix it to avoid syntax error - Use the command "which" to get the path of awk Signed-off-by: Jian Liu --- meta/recipes-extended/man/man/man-1.6e-whatis2.patch | 7 +++ meta/recipes-extended/man/man/man-1.6

[OE-core] [PATCH 1/1] archiver: archived files contain symbol link files

2015-01-06 Thread Jian Liu
The archived files contains symbol link files. These files can not be accessed out of the building host. Copy files instead of creating symbol link when archiving. Signed-off-by: Jian Liu --- meta/lib/oe/patch.py | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH V2 5/5] nfs-utils: avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
Use CONFFILES to mark editable files as such, /var/lib/nfs/etab /var/lib/nfs/statd/state /var/lib/nfs/rmtab If there is no %config micro before the file name in the spec file, this file will be overwritten after updating package. This will make our settings lost. Signed-off-by: Jian Liu

[OE-core] [PATCH V2 4/5] libpam: avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
after updating package. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-extended/pam/libpam_1.1.6.bb | 6 ++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index 3b6d514..b3b39da

[OE-core] [PATCH V2 1/5] base-files: avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
Use CONFFILES to mark editable files as such, /etc/motd /etc/nsswitch.conf /etc/profile If there is no %config micro before the file name in the spec file, this file will be overwritten after updating package. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes

[OE-core] [PATCH V2 0/6] Avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
For example, if updating base-files with a new version of rpm, the file /etc/nsswitch.conf which is created by base-files will be substituted by a new file. This is not what we want since our configuration may be lost after updating. A resolution is to revise spec file of rpm and put %config b

[OE-core] [PATCH V2 3/5] logrotate: avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
Use CONFFILES to mark editable files as such, /var/lib/logrotate.status If there is no %config micro before the file name in the spec file, this file will be overwritten after updating package. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-extended/logrotate

[OE-core] [PATCH V2 2/5] initscripts: avoid overwritting editable files during package updating

2014-11-21 Thread Jian Liu
Use CONFFILES to mark editable files as such, /etc/init.d/checkroot.sh If there is no %config micro before the file name in the spec file, this file will be overwritten after updating package. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-core/initscripts

[OE-core] [PATCH] lsof: the compiler version fault

2014-11-19 Thread Jian Liu
When using cross compiler to build the package "lsof" on a host, the value of LSOF_CCV in version.h genegrated by the Makefile is the version of the compiler on the host while it should be the version of cross compiler. Signed-off-by: Jian Liu --- .../lsof/files/compiler-version-f

[OE-core] [PATCH 1/5] base-files: files will be over written when updating using rpm

2014-11-14 Thread Jian Liu
If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-core/base-files/base-files_3.0.14.bb | 1 + 1 file changed, 1 insertion(+) diff --git

[OE-core] [PATCH 4/5] libpam: files will be over written when updating using rpm

2014-11-14 Thread Jian Liu
If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-extended/pam/libpam_1.1.6.bb | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[OE-core] [PATCH 3/5] logrotate: files will be over written when updating using rpm

2014-11-14 Thread Jian Liu
If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-extended/logrotate/logrotate_3.8.7.bb | 2 ++ 1 file changed, 2 insertions(+) diff

[OE-core] [PATCH 5/5] nfs-utils: files will be over written when updating using rpm

2014-11-14 Thread Jian Liu
If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff

[OE-core] [PATCH 0/6] Avoid config files being overwritten

2014-11-14 Thread Jian Liu
Configure files and scripts may be over written when updating packages with rpm. For example, if updating base-files with a new version of rpm, the file /etc/nsswitch.conf which is created by base-files will be substituted by a new file. This is not what we want since our config files may be lo

[OE-core] [PATCH 2/5] initscripts: files will be over written when updating using rpm

2014-11-14 Thread Jian Liu
If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm. This will make our settings lost. Signed-off-by: Jian Liu --- meta/recipes-core/initscripts/initscripts_1.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git