Skip to contentSkip to conversation

nss: Fix postinstall script

PATCH New David Vincent 1 participant 1 message Jan 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nss: Fix postinstall script

When installing NSS on a read-only rootfs, the current postinstall scriptlet exits after having run the signing part. This causes an error when appending the task because the rest of the script is simply ignored and therefore never run.

---
 meta/recipes-support/nss/nss_3.27.1.bb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta/recipes-support/nss/nss_3.27.1.bb +6 -6
index 091793899f..a69672b3d8 100644
@@ -208,18 +208,18 @@ do_install_append_class-target() {
 
 pkg_postinst_${PN} () {
     if [ -n "$D" ]; then
-        for I in $D/${libdir}/lib*.chk; do
+        for I in $D${libdir}/lib*.chk; do
             DN=`dirname $I`
             BN=`basename $I .chk`
             FN=$DN/$BN.so
             shlibsign -i $FN
-	    if [ $? -ne 0 ]; then
-	       exit 1
-	    fi
+            if [ $? -ne 0 ]; then
+                exit 1
+            fi
         done
-        exit 0
+    else
+        signlibs.sh
     fi
-    signlibs.sh
 }
 
 PACKAGES =+ "${PN}-smime"
Signature · 1 line
2.11.0