All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: bbappend recipe causes errors with only two lines of code
Date: Tue, 11 Nov 2014 09:19:45 -0700	[thread overview]
Message-ID: <54623721.8000207@mlbassoc.com> (raw)
In-Reply-To: <ca96b16ed0e3c0413d554c852210f8e0eb4ffc55@webmail.adam.com.au>

On 2014-11-10 12:14, peterengcomau001@adam.com.au wrote:
> I am using Yocto 1.6.1 and run a build that works fine.
>
> I add a new layer and recipe ~/poky/meta-atmel-lsp/recipes-lsp/lighttpd with a recipe lighttpd_1.4.33.bbappend and this has only two lines:
>
> FILESEXTRAPATHS_prepend := "#{THISDIR}/files:"
> SRC_URI = "file://lighttpd.conf"
>
> This results in a failure: /home/lachlan/poky/meta/recipes-extended/lighttpd/lightpd_1.4.33.bb, do_install
> Not that the lighttpd.conf file is in the 'files' directory as is identical to the original
>
> If I remove the line SRC_URI= ....... , the build works OK
>
> If I now change absolutely nothing other than un-comment one line (the mod_WebDAV module) in the local lighttpd.conf file:
> This results in a failure: /home/lachlan/poky/meta/recipes-extended/lighttpd/lightpd_1.4.33.bb, do_unpack
>
> If I go back to the original lighttpd.conf file in my local 'files' directory then do the following ->
>
> If I change the second line to SCR_URI += "file://lighttpd.conf"
> I get the same do_unpack error
>
> If i change the second line to SRC_URI_append = "file://lighttpd.conf" it also get the do_unpack error.
>
> If I merge the two lines into one so ther is now only the one line SRC_URI_append = "file://${THISDIR}/files/lighttpdconf"
> I get an error: Unable to get checksum for lighttpd SRC_URI entry lighttpd.conf No such file found, and it refers to the
> original recipe locations in poky/meta/recipes-extended/lighttpd/files/lighttpd.conf
>
> I get the same error using a single line when I uses SRC_URI =, or SRC_URI += , instead of SRC_URI_append.
>
> I run $ bitabke -c cleansstate  between builds.
>
> What could be causing the error. There is only two lines in the bbappend file and the included file is identical to the original .conf file.

Try setting this line
   FILESEXTRAPATHS_prepend := "#{THISDIR}/files:"
to be
   FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


      reply	other threads:[~2014-11-11 16:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-10 19:14 bbappend recipe causes errors with only two lines of code peterengcomau001
2014-11-11 16:19 ` Gary Thomas [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=54623721.8000207@mlbassoc.com \
    --to=gary@mlbassoc.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.