diff options
author | David Vincent <freesilicon@gmail.com> | 2017-01-04 17:43:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-09 13:39:12 +0000 |
commit | c9e21f0266cc742ba8b47ea3bd49cfb63b9f797b (patch) | |
tree | 490ee866d080273bc2831ab171f6d80b4252fa86 /meta/recipes-support/nss | |
parent | bfdc6f565d8f828c8fa97897eec366f057021942 (diff) | |
download | poky-c9e21f0266cc742ba8b47ea3bd49cfb63b9f797b.tar.gz |
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.
(From OE-Core rev: 8f782f7095e718dd9452055af53363beb6bdbece)
Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nss')
-rw-r--r-- | meta/recipes-support/nss/nss_3.27.1.bb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-support/nss/nss_3.27.1.bb b/meta/recipes-support/nss/nss_3.27.1.bb index 091793899f..a69672b3d8 100644 --- a/meta/recipes-support/nss/nss_3.27.1.bb +++ b/meta/recipes-support/nss/nss_3.27.1.bb | |||
@@ -208,18 +208,18 @@ do_install_append_class-target() { | |||
208 | 208 | ||
209 | pkg_postinst_${PN} () { | 209 | pkg_postinst_${PN} () { |
210 | if [ -n "$D" ]; then | 210 | if [ -n "$D" ]; then |
211 | for I in $D/${libdir}/lib*.chk; do | 211 | for I in $D${libdir}/lib*.chk; do |
212 | DN=`dirname $I` | 212 | DN=`dirname $I` |
213 | BN=`basename $I .chk` | 213 | BN=`basename $I .chk` |
214 | FN=$DN/$BN.so | 214 | FN=$DN/$BN.so |
215 | shlibsign -i $FN | 215 | shlibsign -i $FN |
216 | if [ $? -ne 0 ]; then | 216 | if [ $? -ne 0 ]; then |
217 | exit 1 | 217 | exit 1 |
218 | fi | 218 | fi |
219 | done | 219 | done |
220 | exit 0 | 220 | else |
221 | signlibs.sh | ||
221 | fi | 222 | fi |
222 | signlibs.sh | ||
223 | } | 223 | } |
224 | 224 | ||
225 | PACKAGES =+ "${PN}-smime" | 225 | PACKAGES =+ "${PN}-smime" |