[oe-commits] Hongxu Jia : nss:fix postinst failed at rootfs time

git at git.openembedded.org git at git.openembedded.org
Mon Jul 29 12:01:05 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 64e87fc6e99bc1d4807034166735034b1f92bad8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=64e87fc6e99bc1d4807034166735034b1f92bad8

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Mon Jul 22 13:23:44 2013 +0800

nss:fix postinst failed at rootfs time

Create checksum file at rootfs time to support read-only rootfs.

[YOCTO #4879]

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-support/nss/nss.inc |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

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
 }



More information about the Openembedded-commits mailing list