Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] copyleft_compliance fixes
@ 2013-06-10 20:46 Christopher Larson
  2013-06-10 20:46 ` [PATCH 1/2] copyleft_compliance: handle localpaths ending with '/' Christopher Larson
  2013-06-10 20:46 ` [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task Christopher Larson
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Larson @ 2013-06-10 20:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

The following changes since commit b4f208f418d18f2a4e78a56bebacef481061d917:

  tar: don't mv tar for nativesdk (2013-06-10 18:06:33 +0100)

are available in the git repository at:

  https://github.com/kergoth/oe-core.git copyleft-compliance-fixes
  https://github.com//tree/copyleft-compliance-fixes

Christopher Larson (2):
  copyleft_compliance: handle localpaths ending with '/'
  copyleft_compliance: set 'dirs' flag on task

 meta/classes/copyleft_compliance.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
1.8.3



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

* [PATCH 1/2] copyleft_compliance: handle localpaths ending with '/'
  2013-06-10 20:46 [PATCH 0/2] copyleft_compliance fixes Christopher Larson
@ 2013-06-10 20:46 ` Christopher Larson
  2013-06-10 20:46 ` [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task Christopher Larson
  1 sibling, 0 replies; 4+ messages in thread
From: Christopher Larson @ 2013-06-10 20:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/copyleft_compliance.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index 06b0227..adb48be 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -39,6 +39,8 @@ python do_prepare_copyleft_sources () {
         local = os.path.normpath(fetch.localpath(u.url))
         if local.endswith('.bb'):
             continue
+        elif local.endswith('/'):
+            local = local[:-1]
 
         if u.mirrortarball:
             tarball_path = os.path.join(dl_dir, u.mirrortarball)
-- 
1.8.3



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

* [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task
  2013-06-10 20:46 [PATCH 0/2] copyleft_compliance fixes Christopher Larson
  2013-06-10 20:46 ` [PATCH 1/2] copyleft_compliance: handle localpaths ending with '/' Christopher Larson
@ 2013-06-10 20:46 ` Christopher Larson
  2013-06-10 20:54   ` Otavio Salvador
  1 sibling, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2013-06-10 20:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

Without this, due to bitbake defaulting to ${B}, it's possible to get ${S}
inadvertantly created before do_unpack, breaking the unpack of git sources,
which expect the destination to not exist.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/copyleft_compliance.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index adb48be..6b30b87 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -63,4 +63,5 @@ python do_prepare_copyleft_sources () {
 }
 
 addtask prepare_copyleft_sources after do_fetch before do_build
+do_prepare_copyleft_sources[dirs] = "${WORKDIR}"
 do_build[recrdeptask] += 'do_prepare_copyleft_sources'
-- 
1.8.3



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

* Re: [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task
  2013-06-10 20:46 ` [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task Christopher Larson
@ 2013-06-10 20:54   ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-06-10 20:54 UTC (permalink / raw)
  To: Christopher Larson
  Cc: Christopher Larson,
	Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

On Mon, Jun 10, 2013 at 5:46 PM, Christopher Larson <kergoth@gmail.com>wrote:

> From: Christopher Larson <chris_larson@mentor.com>
>
> Without this, due to bitbake defaulting to ${B}, it's possible to get ${S}
> inadvertantly created before do_unpack, breaking the unpack of git sources,
> which expect the destination to not exist.
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
>

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

[-- Attachment #2: Type: text/html, Size: 1367 bytes --]

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

end of thread, other threads:[~2013-06-10 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-10 20:46 [PATCH 0/2] copyleft_compliance fixes Christopher Larson
2013-06-10 20:46 ` [PATCH 1/2] copyleft_compliance: handle localpaths ending with '/' Christopher Larson
2013-06-10 20:46 ` [PATCH 2/2] copyleft_compliance: set 'dirs' flag on task Christopher Larson
2013-06-10 20:54   ` Otavio Salvador

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