From: Adrian Bunk <bunk@stusta.de>
To: ChenQi <Qi.Chen@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] msmtp: fix postinstall to avoid do_rootfs failure
Date: Mon, 15 Jul 2019 09:44:22 +0300 [thread overview]
Message-ID: <20190715064422.GC21719@localhost> (raw)
In-Reply-To: <936a85fa-4248-6d37-455e-0a3bbf82b363@windriver.com>
On Mon, Jul 15, 2019 at 02:40:28PM +0800, ChenQi wrote:
> On 07/15/2019 02:17 PM, Adrian Bunk wrote:
> > On Mon, Jul 15, 2019 at 01:35:15PM +0800, 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.
> > > ...
> > This would make it random (depending on installation order) which is
> > linked to, and it could also make ${sbindir}/sendmail and
> > $D/usr/lib/sendmail point to different programs.
> >
> > It would be better to make $D/usr/lib/sendmail also an alternative in
> > all packages that provide sendmail.
> >
> > cu
> > Adrian
> >
> I don't think we should mix linuxstdbase and ALTERNATIVES setting. It makes
> things complicated.
> As ALTERNATIVES_PRIORITY is higher in postfix, I'll just remove the check in
> postfix and use 'ln -sf' directly.
> Can you accept this solution?
I do not see how this solves your problem if msmtp gets installed
after postfix.
Is it actually required to have these packages installed at the same
time in LSB?
If not, something like
RCONFLICTS_linuxstdbase = "postfix"
might work. (untested)
> Regards,
> Chen Qi
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2019-07-15 6:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 5:35 [PATCH 0/1] msmtp: fix postinstall to avoid do_rootfs failure Chen Qi
2019-07-15 5:35 ` [PATCH 1/1] " Chen Qi
2019-07-15 6:17 ` Adrian Bunk
2019-07-15 6:40 ` ChenQi
2019-07-15 6:44 ` Adrian Bunk [this message]
2019-07-15 8:38 ` ChenQi
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=20190715064422.GC21719@localhost \
--to=bunk@stusta.de \
--cc=Qi.Chen@windriver.com \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox