All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] postfix: fix postinstall to avoid do_rootfs failure
@ 2019-07-15  5:09 Chen Qi
  2019-07-15  8:30 ` ChenQi
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2019-07-15  5:09 UTC (permalink / raw)
  To: openembedded-devel

When lsb is enabled, that is, 'linuxstdbase' is in OVERRIDES,
do_rootfs would fail if both 'msmtp' and 'postfix' are installed.
This is because they both try to create /usr/lib/sendmail link if
it does not exist. So we need to fix the check to avoid non-zero
exit status.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta-networking/recipes-daemons/postfix/postfix.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc
index 3d4f1df..021129c 100644
--- a/meta-networking/recipes-daemons/postfix/postfix.inc
+++ b/meta-networking/recipes-daemons/postfix/postfix.inc
@@ -221,7 +221,7 @@ pkg_postinst_${PN} () {
     else
         if ${@'true' if 'linuxstdbase' in d.getVar('DISTROOVERRIDES', False) else 'false'}; then
             # /usr/lib/sendmail is required by LSB core test
-            [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/
+            [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ || true
         fi
 
         touch $D/etc/aliases
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-networking][PATCH] postfix: fix postinstall to avoid do_rootfs failure
  2019-07-15  5:09 [meta-networking][PATCH] postfix: fix postinstall to avoid do_rootfs failure Chen Qi
@ 2019-07-15  8:30 ` ChenQi
  0 siblings, 0 replies; 2+ messages in thread
From: ChenQi @ 2019-07-15  8:30 UTC (permalink / raw)
  To: openembedded-devel

Please ignore this patch.
I'll send out a new solution.

Regards,
Chen Qi

On 07/15/2019 01:09 PM, Chen Qi wrote:
> When lsb is enabled, that is, 'linuxstdbase' is in OVERRIDES,
> do_rootfs would fail if both 'msmtp' and 'postfix' are installed.
> This is because they both try to create /usr/lib/sendmail link if
> it does not exist. So we need to fix the check to avoid non-zero
> exit status.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta-networking/recipes-daemons/postfix/postfix.inc | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc
> index 3d4f1df..021129c 100644
> --- a/meta-networking/recipes-daemons/postfix/postfix.inc
> +++ b/meta-networking/recipes-daemons/postfix/postfix.inc
> @@ -221,7 +221,7 @@ pkg_postinst_${PN} () {
>       else
>           if ${@'true' if 'linuxstdbase' in d.getVar('DISTROOVERRIDES', False) else 'false'}; then
>               # /usr/lib/sendmail is required by LSB core test
> -            [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/
> +            [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ || true
>           fi
>   
>           touch $D/etc/aliases




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-15  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15  5:09 [meta-networking][PATCH] postfix: fix postinstall to avoid do_rootfs failure Chen Qi
2019-07-15  8:30 ` ChenQi

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.