All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Paul D. DeRocco" <pderocco@ix.netcom.com>
Cc: yocto@yoctoproject.org
Subject: Re: bbappend on top of bbappend
Date: Wed, 04 Sep 2013 12:15:35 +0100	[thread overview]
Message-ID: <18138122.MaeQ4eSK19@helios> (raw)
In-Reply-To: <2E350B209EEA4C3F8177BE64653DC4F3@PAULD>

Hi Paul,

On Thursday 22 August 2013 10:58:48 Paul D. DeRocco wrote:
> Paul Eggleton wrote:
> > FWIW, when xinput-calibrator was moved over to OE-Core it was
> > determined that this shouldn't even be started as a service by systemd,
> > but instead launched using Xsession.d. You may have better results if you
> > bring in the recipe from OE-Core master and use that instead.
> 
> Since I'm not running I GUI, but needed an X session, I created a systemd
> unit to start a dummy X session, using "sleep" as the dummy client. Then,
> I can scribble on the screen from my python scripts run from the root
> command line. So I solved it by having the xinput-calibrator service run
> after my X session starts. I'll look at putting it in Xsession.d instead,
> and see if that is cleaner.

I would think it would be cleaner, but probably whatever works in your
situation here is fine.

> > > I read somewhere that stacked bbappends are handled in the
> > > order of layer
> > > priority. Mine is 5, the meta-systemd layer is 7. I don't
> > > know which is
> > > "higher", or if one wants a higher or lower priority in
> > > order to be the last one to prepend to the path.
> > 
> > They will be applied in ascending order, so anything in the
> > bbappend from a
> > layer with a higher layer priority number takes precedence.
> 
> After I did a clean and a clean_sstate, the dual bbappends worked as
> expected.
> 
> I'm learning from experience to clean things manually, to avoid problems,
> but sometimes I'm just waving a dead chicken over it. I don't really know
> what these things do, or in what situations they should or shouldn't be
> necessary. For instance, I've never found an explanation of what shared
> state really is, with sufficient specificity that I can predict, "Oh, for
> that I need to clean the sstate, not just the build tree." Second, it
> seems like clean_sstate does a clean, but I'm not sure clean doesn't do
> something else that clean_sstate doesn't do.

FWIW, we do have this section of the reference manual:

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#shared-state-cache

I guess you already saw since you were part of the thread, but this post and
the ones that followed it may be of interest in terms of describing the
known situations where the system can't automatically know that something
has changed:

https://lists.yoctoproject.org/pipermail/yocto/2013-August/018022.html

> One more thing puzzles me. The original bbappend, which creates a service
> unit, contained these six lines:
> 
>     FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>     PRINC := "${@int(PRINC) + 2}"
>     inherit systemd
>     SRC_URI += "file://xinput-calibrator.service"
>     SYSTEMD_PACKAGES = "${PN}-systemd"
>     SYSTEMD_SERVICE = "${PN}.service"
> 
> Since I only wanted to replace the file, I thought it should be sufficient
> to put the following in my bbappend:
> 
>     FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>     PRINC := "${@int(PRINC) + 1}"
> 
> It didn't work, though. I blindly copied all six lines into my bbappend,
> and it worked. I suspect the systemd lines were necessary, though. I'm
> wondering why adding another copy of the string
> "file://xinput-calibrator.service" to SRC_URI is necessary. 

If xinput-calibrator.service genuinely is in the recipe's original SRC_URI
value, It isn't. However there is a difference between the FILESEXTRAPATHS
lines in the two instances - one points to a subdirectory called "files" and
the other to a directory called "${PN}" (substituting the recipe name in
there, of course). That might account for it going from not working to
working depending on where you put the service file next to your bbappend.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


      reply	other threads:[~2013-09-04 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-16 23:22 bbappend on top of bbappend Paul D. DeRocco
2013-08-22 10:28 ` Paul Eggleton
2013-08-22 17:58   ` Paul D. DeRocco
2013-09-04 11:15     ` Paul Eggleton [this message]

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=18138122.MaeQ4eSK19@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=pderocco@ix.netcom.com \
    --cc=yocto@yoctoproject.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.