* BitBake & ClearCase
@ 2012-11-13 11:35 news
2012-11-13 14:28 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: news @ 2012-11-13 11:35 UTC (permalink / raw)
To: bitbake-devel
Dear bitbake-developer-community,
I just stumbled across a problem and knows of no other advice than to
write to you here:
In my company we have to use bitbake in combination with ClearCase (CC).
Bitbake has some problems with the ClearCase-owned files called
?.copyarea.db?.
Unfortunately, CC adds such a file to each directory which is under
source-control.
The file is read-only and so the task do_unpack fails with the
following error message:
cp: cannot create regular file
`/home/[...]/testability-1.0-r0/./testability_src_gen/.copyarea.db':
Permission Denied
I did not find a solution, but I still hope that there is a way to
tell bitbake to exclude files in the source-code directory from
copying into the work-directory. I?m dreaming about a git-likewise-way
with the .gitignore file.
Thank you for your help in advance!
Sincerely yours
Christian Volk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BitBake & ClearCase
2012-11-13 11:35 BitBake & ClearCase news
@ 2012-11-13 14:28 ` Richard Purdie
2012-11-13 16:28 ` Mark Hatle
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-11-13 14:28 UTC (permalink / raw)
To: news; +Cc: bitbake-devel
On Tue, 2012-11-13 at 12:35 +0100, news@christianvolk.net wrote:
> Dear bitbake-developer-community,
>
> I just stumbled across a problem and knows of no other advice than to
> write to you here:
>
> In my company we have to use bitbake in combination with ClearCase (CC).
> Bitbake has some problems with the ClearCase-owned files called
> ?.copyarea.db?.
> Unfortunately, CC adds such a file to each directory which is under
> source-control.
> The file is read-only and so the task do_unpack fails with the
> following error message:
>
> cp: cannot create regular file
> `/home/[...]/testability-1.0-r0/./testability_src_gen/.copyarea.db':
> Permission Denied
I'm a little confused about what the real problem is here. cp should be
able to cope with a file that is marked as read-only. Is this saying the
target already exists and can't be written to? Or is it unable to read
from the source? Is the source locked?
Worst case you can implement a custom "unpack" function for your
clearcase fetcher like git does and in there, exclude the problematic
files.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BitBake & ClearCase
2012-11-13 14:28 ` Richard Purdie
@ 2012-11-13 16:28 ` Mark Hatle
0 siblings, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2012-11-13 16:28 UTC (permalink / raw)
To: bitbake-devel
On 11/13/12 8:28 AM, Richard Purdie wrote:
> On Tue, 2012-11-13 at 12:35 +0100, news@christianvolk.net wrote:
>> Dear bitbake-developer-community,
>>
>> I just stumbled across a problem and knows of no other advice than to
>> write to you here:
>>
>> In my company we have to use bitbake in combination with ClearCase (CC).
>> Bitbake has some problems with the ClearCase-owned files called
>> ?.copyarea.db?.
>> Unfortunately, CC adds such a file to each directory which is under
>> source-control.
>> The file is read-only and so the task do_unpack fails with the
>> following error message:
>>
>> cp: cannot create regular file
>> `/home/[...]/testability-1.0-r0/./testability_src_gen/.copyarea.db':
>> Permission Denied
>
> I'm a little confused about what the real problem is here. cp should be
> able to cope with a file that is marked as read-only. Is this saying the
> target already exists and can't be written to? Or is it unable to read
> from the source? Is the source locked?
Are you attempting to build inside of a ClearCase location? Or are you copying
from a ClearCase location within a recipe.. If it's the later, this is what
Richard is referring to, if it's the former.. It likely won't work well.
ClearCase has a number of issues with it's virtual filesystem that cause
problems during the build.
What we have recommended to our customers using clearcase, is to define an
alternative location for the 'tmp' directory that is outside of the clearcase
filesystem and somewhere local to the machine.
--Mark
> Worst case you can implement a custom "unpack" function for your
> clearcase fetcher like git does and in there, exclude the problematic
> files.
>
> Cheers,
>
> Richard
>
>
>
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-13 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 11:35 BitBake & ClearCase news
2012-11-13 14:28 ` Richard Purdie
2012-11-13 16:28 ` Mark Hatle
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.