Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] oe/path.py: call /bin/cp directly
@ 2013-08-13  7:09 wenzong.fan
  2013-08-13  7:09 ` [PATCH 1/1] " wenzong.fan
  0 siblings, 1 reply; 4+ messages in thread
From: wenzong.fan @ 2013-08-13  7:09 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

This avoids running cp with interactive mode on some hosts if defined:
    
        alias cp='cp -i'

The following changes since commit 16d522bcd1f1b7741577fa31fab7e2129da0cae9:

  maintainers.inc: reassign maintainers, remove obsolete recipes (2013-08-12 13:13:05 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib wenzong/fix_alias_cp
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/fix_alias_cp

Wenzong Fan (1):
  oe/path.py: call /bin/cp directly

 meta/lib/oe/path.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] oe/path.py: call /bin/cp directly
  2013-08-13  7:09 [PATCH 0/1] oe/path.py: call /bin/cp directly wenzong.fan
@ 2013-08-13  7:09 ` wenzong.fan
  2013-08-16 17:11   ` Saul Wold
  0 siblings, 1 reply; 4+ messages in thread
From: wenzong.fan @ 2013-08-13  7:09 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

This avoids running cp with interactive mode if defined:

    alias cp='cp -i'

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta/lib/oe/path.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index da044ba..6933977 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -97,7 +97,7 @@ def copyhardlinktree(src, dst):
         check_output(cmd, shell=True, stderr=subprocess.STDOUT)
         if os.path.isdir(src):
             src = src + "/*"
-        cmd = 'cp -afl %s %s' % (src, dst)
+        cmd = '/bin/cp -afl %s %s' % (src, dst)
         check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     else:
         copytree(src, dst)
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] oe/path.py: call /bin/cp directly
  2013-08-13  7:09 ` [PATCH 1/1] " wenzong.fan
@ 2013-08-16 17:11   ` Saul Wold
  2013-08-19  2:07     ` wenzong fan
  0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2013-08-16 17:11 UTC (permalink / raw)
  To: wenzong.fan; +Cc: openembedded-core

On 08/13/2013 12:09 AM, wenzong.fan@windriver.com wrote:
> From: Wenzong Fan <wenzong.fan@windriver.com>
>
> This avoids running cp with interactive mode if defined:
>
>      alias cp='cp -i'
>
> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
> ---
>   meta/lib/oe/path.py |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
> index da044ba..6933977 100644
> --- a/meta/lib/oe/path.py
> +++ b/meta/lib/oe/path.py
> @@ -97,7 +97,7 @@ def copyhardlinktree(src, dst):
>           check_output(cmd, shell=True, stderr=subprocess.STDOUT)
>           if os.path.isdir(src):
>               src = src + "/*"
> -        cmd = 'cp -afl %s %s' % (src, dst)
> +        cmd = '/bin/cp -afl %s %s' % (src, dst)

As Richard points out in the Consolidated Pull, this is the wrong way to 
go about this, there are possibly other places that will have similar 
issues and we can't fix then all this way.

A better solution is to add a sanity check and suggest that the user 
needs to fix their environment to ensure the build will succeed.

Sau!
>           check_output(cmd, shell=True, stderr=subprocess.STDOUT)
>       else:
>           copytree(src, dst)
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] oe/path.py: call /bin/cp directly
  2013-08-16 17:11   ` Saul Wold
@ 2013-08-19  2:07     ` wenzong fan
  0 siblings, 0 replies; 4+ messages in thread
From: wenzong fan @ 2013-08-19  2:07 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

On 08/17/2013 01:11 AM, Saul Wold wrote:
> On 08/13/2013 12:09 AM, wenzong.fan@windriver.com wrote:
>> From: Wenzong Fan <wenzong.fan@windriver.com>
>>
>> This avoids running cp with interactive mode if defined:
>>
>>      alias cp='cp -i'
>>
>> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
>> ---
>>   meta/lib/oe/path.py |    2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
>> index da044ba..6933977 100644
>> --- a/meta/lib/oe/path.py
>> +++ b/meta/lib/oe/path.py
>> @@ -97,7 +97,7 @@ def copyhardlinktree(src, dst):
>>           check_output(cmd, shell=True, stderr=subprocess.STDOUT)
>>           if os.path.isdir(src):
>>               src = src + "/*"
>> -        cmd = 'cp -afl %s %s' % (src, dst)
>> +        cmd = '/bin/cp -afl %s %s' % (src, dst)
>
> As Richard points out in the Consolidated Pull, this is the wrong way to
> go about this, there are possibly other places that will have similar
> issues and we can't fix then all this way.
>
> A better solution is to add a sanity check and suggest that the user
> needs to fix their environment to ensure the build will succeed.

Ok, I will update the patch for this issue.

Thanks
Wenzong

>
> Sau!
>>           check_output(cmd, shell=True, stderr=subprocess.STDOUT)
>>       else:
>>           copytree(src, dst)
>>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-19  2:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13  7:09 [PATCH 0/1] oe/path.py: call /bin/cp directly wenzong.fan
2013-08-13  7:09 ` [PATCH 1/1] " wenzong.fan
2013-08-16 17:11   ` Saul Wold
2013-08-19  2:07     ` wenzong fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox