Now the NSS recipe is added to OE-core, it has a postinst which cannot succeed at rootfs time. pkg_postinst_${PN} () { if [ -n "$D" ]; then exit 1 fi signlibs.sh } Please figure out a way to do this, or we should remove this postinst, as signlibs.sh is not a requirement for LSB. //Chen Qi
Create checksum file at rootfs time to support read-only rootfs. 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 }
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
Merged into master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ee9bdf90ce68f206039720fa30d2b97b577c8057