From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] siteinfo: add existiance check for site config file
Date: Thu, 23 May 2013 11:08:42 -0500 [thread overview]
Message-ID: <519E3F0A.8070608@windriver.com> (raw)
In-Reply-To: <519E3B03.6080708@linux.intel.com>
On 5/23/13 10:51 AM, Saul Wold wrote:
>
>
> Ignore this patch, I was quick on the draw and did not notice the
> listdir which means the file is there,
Could the issue be that the file -was- there, then we ncurses updated it and now
it's no longer there? (or in the process of being written?)
I've definitely seen this failure before.. so there is some kind of race.
--Mark
> Sau!
>
> On 05/23/2013 07:37 AM, Saul Wold wrote:
>> There is a condition where ncurses adds a site config file to CONFIG_SITE list
>> and then binutils configure tries to use the siteinfo list before ncurses has
>> installed the file. The existance test is there in the BBPATH search, but not
>> in the SYSROOTCACHE check, so add it here.
>>
>> Signed-off-by: Saul Wold <sgw@linux.intel.com>
>> ---
>> meta/classes/siteinfo.bbclass | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
>> index 09f88c6..87a4225 100644
>> --- a/meta/classes/siteinfo.bbclass
>> +++ b/meta/classes/siteinfo.bbclass
>> @@ -139,7 +139,8 @@ def siteinfo_get_files(d, no_cache = False):
>> if os.path.isdir(path_siteconfig):
>> for i in os.listdir(path_siteconfig):
>> filename = os.path.join(path_siteconfig, i)
>> - sitefiles += filename + " "
>> + if os.path.exists(filename):
>> + sitefiles += filename + " "
>>
>> return sitefiles
>>
>>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
prev parent reply other threads:[~2013-05-23 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-23 14:37 [PATCH] siteinfo: add existiance check for site config file Saul Wold
2013-05-23 15:51 ` Saul Wold
2013-05-23 16:08 ` Mark Hatle [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=519E3F0A.8070608@windriver.com \
--to=mark.hatle@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