* [PATCH 0/1] nss:fix postinst failed at rootfs time
@ 2013-07-22 5:45 Hongxu Jia
2013-07-22 5:45 ` [PATCH 1/1] " Hongxu Jia
2013-07-23 11:24 ` [PATCH 0/1] " Hongxu Jia
0 siblings, 2 replies; 5+ messages in thread
From: Hongxu Jia @ 2013-07-22 5:45 UTC (permalink / raw)
To: openembedded-core
Test Case:
*On host:
1) In local.conf
IMAGE_INSTALL_append = " nss"
2) Build core-image-sato
*On target:
1) Search checksum file
root@qemuarm:~# find /usr/lib/ -name "*.chk"
/usr/lib/libfreebl3.chk
/usr/lib/libnssdbm3.chk
/usr/lib/libsoftokn3.chk
2) Test for valid checksum files.
root@qemuarm:~# chktest /usr/lib/libfreebl3.so
SUCCESS
root@qemuarm:~# chktest /usr/lib/libnssdbm3.so
SUCCESS
root@qemuarm:~# chktest /usr/lib/libsoftokn3.so
SUCCESS
//Hongxu
The following changes since commit 3dee534f1e25109e0bdb681de0746c336f4b8840:
lib/oeqa: fix dependecy check (2013-07-16 10:04:17 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/fix-nss-postinst
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-python-readlne
Hongxu Jia (1):
nss:fix postinst failed at rootfs time
meta/recipes-support/nss/nss.inc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
1.8.1.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] nss:fix postinst failed at rootfs time
2013-07-22 5:45 [PATCH 0/1] nss:fix postinst failed at rootfs time Hongxu Jia
@ 2013-07-22 5:45 ` Hongxu Jia
2013-07-23 14:48 ` Burton, Ross
2013-07-23 11:24 ` [PATCH 0/1] " Hongxu Jia
1 sibling, 1 reply; 5+ messages in thread
From: Hongxu Jia @ 2013-07-22 5:45 UTC (permalink / raw)
To: openembedded-core
Create checksum file at rootfs time to support read-only rootfs.
[YOCTO #4879]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
meta/recipes-support/nss/nss.inc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index e2f3891..11f1b7f 100644
--- a/meta/recipes-support/nss/nss.inc
+++ b/meta/recipes-support/nss/nss.inc
@@ -163,7 +163,13 @@ do_install_append_class-target() {
pkg_postinst_${PN} () {
if [ -n "$D" ]; then
- exit 1
+ for I in $D/${libdir}/lib*.chk; do
+ DN=`dirname $I`
+ BN=`basename $I .chk`
+ FN=$DN/$BN.so
+ shlibsign -i $FN
+ done
+ exit 0
fi
signlibs.sh
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] nss:fix postinst failed at rootfs time
2013-07-22 5:45 [PATCH 0/1] nss:fix postinst failed at rootfs time Hongxu Jia
2013-07-22 5:45 ` [PATCH 1/1] " Hongxu Jia
@ 2013-07-23 11:24 ` Hongxu Jia
1 sibling, 0 replies; 5+ messages in thread
From: Hongxu Jia @ 2013-07-23 11:24 UTC (permalink / raw)
To: openembedded-core
On 07/22/2013 01:45 PM, Hongxu Jia wrote:
> Test Case:
>
> *On host:
> 1) In local.conf
> IMAGE_INSTALL_append = " nss"
> 2) Build core-image-sato
>
> *On target:
> 1) Search checksum file
> root@qemuarm:~# find /usr/lib/ -name "*.chk"
> /usr/lib/libfreebl3.chk
> /usr/lib/libnssdbm3.chk
> /usr/lib/libsoftokn3.chk
>
> 2) Test for valid checksum files.
> root@qemuarm:~# chktest /usr/lib/libfreebl3.so
> SUCCESS
> root@qemuarm:~# chktest /usr/lib/libnssdbm3.so
> SUCCESS
> root@qemuarm:~# chktest /usr/lib/libsoftokn3.so
> SUCCESS
>
> //Hongxu
>
> The following changes since commit 3dee534f1e25109e0bdb681de0746c336f4b8840:
>
> lib/oeqa: fix dependecy check (2013-07-16 10:04:17 +0100)
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib hongxu/fix-nss-postinst
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-python-readlne
Fix typo:
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nss-postinst
//Hongxu
>
> Hongxu Jia (1):
> nss:fix postinst failed at rootfs time
>
> meta/recipes-support/nss/nss.inc | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] nss:fix postinst failed at rootfs time
2013-07-22 5:45 ` [PATCH 1/1] " Hongxu Jia
@ 2013-07-23 14:48 ` Burton, Ross
2013-07-24 5:31 ` Hongxu Jia
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2013-07-23 14:48 UTC (permalink / raw)
To: Hongxu Jia; +Cc: openembedded-core
On 22 July 2013 06:45, Hongxu Jia <hongxu.jia@windriver.com> wrote:
> Create checksum file at rootfs time to support read-only rootfs.
Have you verified that the checksum files don't change depending on
the host architecture (big/little endian, 32/64 bit)?
Ross
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] nss:fix postinst failed at rootfs time
2013-07-23 14:48 ` Burton, Ross
@ 2013-07-24 5:31 ` Hongxu Jia
0 siblings, 0 replies; 5+ messages in thread
From: Hongxu Jia @ 2013-07-24 5:31 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
On 07/23/2013 10:48 PM, Burton, Ross wrote:
> On 22 July 2013 06:45, Hongxu Jia <hongxu.jia@windriver.com> wrote:
>> Create checksum file at rootfs time to support read-only rootfs.
> Have you verified that the checksum files don't change depending on
> the host architecture (big/little endian, 32/64 bit)?
Yes, I have verified.
*host
BUILD_SYS = "x86_64-linux"
*target
TARGET_SYS = "mips-poky-linux"
MACHINE = "qemumips"
or
TARGET_SYS = "i586-poky-linux"
MACHINE = "qemux86"
Everything is ok.
Thanks,
Hongxu
> Ross
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-24 5:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22 5:45 [PATCH 0/1] nss:fix postinst failed at rootfs time Hongxu Jia
2013-07-22 5:45 ` [PATCH 1/1] " Hongxu Jia
2013-07-23 14:48 ` Burton, Ross
2013-07-24 5:31 ` Hongxu Jia
2013-07-23 11:24 ` [PATCH 0/1] " Hongxu Jia
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.