From: "Mikko Rapeli" <mikko.rapeli@bmw.de>
To: <Martin.Jansa@gmail.com>
Cc: <openembedded-devel@lists.openembedded.org>
Subject: Re: [oe] [meta-oe][PATCH] nss: fix postinst in do_rootfs for target
Date: Mon, 31 Aug 2020 07:45:07 +0000 [thread overview]
Message-ID: <20200831074505.GC2162@korppu> (raw)
In-Reply-To: <20200828190134.2359034-1-Martin.Jansa@gmail.com>
Hi,
On Fri, Aug 28, 2020 at 09:01:34PM +0200, Martin Jansa wrote:
> Partially revert "nss: fix postinst script for nativesdk build"
>
> This reverts commit 31552510b15c1c97aa6cbe180c2bb53d139efbcc.
>
> When running in do_rootfs we need to run shlibsign provided
> by nss-native, otherwise it fails when /usr/bin/shlibsign
> doesn't exist on host builder:
>
> do_rootfs: Postinstall scriptlets of ['nss'] have failed. If the intention is to defer them to first boot,
> then please place them into pkg_postinst_ontarget_${PN} ().
> Deferring to first boot via 'exit 1' is no longer supported.
Thanks for this, it fixes all issues.
I didn't properly test my patch. Sorry!
-Mikko
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta-oe/recipes-support/nss/nss_3.54.bb | 26 ++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/meta-oe/recipes-support/nss/nss_3.54.bb b/meta-oe/recipes-support/nss/nss_3.54.bb
> index 882145c1ef..81b2538813 100644
> --- a/meta-oe/recipes-support/nss/nss_3.54.bb
> +++ b/meta-oe/recipes-support/nss/nss_3.54.bb
> @@ -240,19 +240,19 @@ do_install_append_class-target() {
>
> PACKAGE_WRITE_DEPS += "nss-native"
> pkg_postinst_${PN} () {
> - if [ -n "$D" ]; then
> - for I in $D${libdir}/lib*.chk; do
> - DN=`dirname $I`
> - BN=`basename $I .chk`
> - FN=$DN/$BN.so
> - ${bindir}/shlibsign -i $FN
> - if [ $? -ne 0 ]; then
> - exit 1
> - fi
> - done
> - else
> - ${bindir}/signlibs.sh
> - fi
> + 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
> + echo "shlibsign -i $FN failed"
> + fi
> + done
> +}
> +
> +pkg_postinst_ontarget_${PN} () {
> + ${bindir}/signlibs.sh
> }
>
> PACKAGES =+ "${PN}-smime"
> --
> 2.25.1
>
>
next prev parent reply other threads:[~2020-08-31 7:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <162F7E2FF7270601.30808@lists.openembedded.org>
2020-08-28 19:01 ` [meta-oe][PATCH] nss: fix postinst in do_rootfs for target Martin Jansa
2020-08-30 16:33 ` [oe] " akuster
2020-08-31 7:45 ` Mikko Rapeli [this message]
2020-09-01 21:59 ` Martin Jansa
2020-09-01 22:41 ` [meta-oe][PATCH] nss: remove signlibs.sh Martin Jansa
2020-09-01 23:16 ` [oe] " Khem Raj
2020-09-02 0:03 ` Martin Jansa
2020-09-02 3:19 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200831074505.GC2162@korppu \
--to=mikko.rapeli@bmw.de \
--cc=Martin.Jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.