All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: YP docs mailing list <docs@lists.yoctoproject.org>
Subject: Re: [docs] trying (again) to clarify pkg_postinst[_ontarget]
Date: Fri, 17 Dec 2021 19:32:18 +0300	[thread overview]
Message-ID: <CANNYZj-wjG1sOv2cj1cEeP5M87V=bp85O=mKaZ_eE2OCwS_0ww@mail.gmail.com> (raw)
In-Reply-To: <b22aac2c-ee65-c3f6-ebfd-9c51f28a77f5@crashcourse.ca>

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

The code is the canonical definition of behavior. If you see recipes or
docs disagreeing with the code, please show where and how. Note: recipes
directly using $D or explicitly calling defer to first boot helper are not
in disagreement, they're just not using the documented syntactic sugar.

Alex

On Fri, 17 Dec 2021 at 18:08, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

> On Fri, 17 Dec 2021, Robert P. J. Day wrote:
>
> > On Fri, 17 Dec 2021, Alexander Kanavin wrote:
> >
> > > Hey Robert, may I make a suggestion? Rather than ask someone to
> > > explain the implementation of pkg_postinst to you, why don’t you
> > > read the implementation and ask questions about specific code where
> > > it’s unclear what or why.
> >
> >   i'm actually doing that, but i'm still not a python expert so i
> > struggle with some of the bbclass files trying to follow the logic.
>
>   there's one other complication -- even when i think i follow the
> code, i like to look at sample recipes to confirm my understanding,
> but that's when i run across stuff like this in
> sysvinit-inittab_2.88dsf.bb:
>
>   pkg_postinst:${PN} () {
>   # run this on host and on target
>   if [ "${SERIAL_CONSOLES_CHECK}" = "" ]; then
>        exit 0
>   fi
>
> so i have the docs, the code and the sample recipes all seeming to
> disagree with each other.
>
> rday

[-- Attachment #2: Type: text/html, Size: 1904 bytes --]

  parent reply	other threads:[~2021-12-17 16:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 13:35 trying (again) to clarify pkg_postinst[_ontarget] Robert P. J. Day
2021-12-17 14:58 ` [docs] " Alexander Kanavin
     [not found]   ` <16C19319C1030E42.10196@lists.yoctoproject.org>
     [not found]     ` <b22aac2c-ee65-c3f6-ebfd-9c51f28a77f5@crashcourse.ca>
2021-12-17 16:32       ` Alexander Kanavin [this message]
     [not found] <16C18E407EC6B90F.29929@lists.yoctoproject.org>
2021-12-17 14:43 ` Robert P. J. Day

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='CANNYZj-wjG1sOv2cj1cEeP5M87V=bp85O=mKaZ_eE2OCwS_0ww@mail.gmail.com' \
    --to=alex.kanavin@gmail.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=rpjday@crashcourse.ca \
    /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.