Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc-shared-source: Set empty SRC_URI
@ 2015-09-23 21:33 Richard Purdie
  2015-09-25 11:03 ` Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2015-09-23 21:33 UTC (permalink / raw)
  To: openembedded-core

gcc-source is the only gcc recipe meant to handle the fetch/unpack/patch
tasks, the other gcc recipes then depend on this.

This approach has been creating some confusion for tools like the archiver.
The simplest way to signal to these processes that there is no source
is to empty SRC_URI at the same time we disable the other tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/recipes-devtools/gcc/gcc-shared-source.inc b/meta/recipes-devtools/gcc/gcc-shared-source.inc
index 9acffb1..aac4b49 100644
--- a/meta/recipes-devtools/gcc/gcc-shared-source.inc
+++ b/meta/recipes-devtools/gcc/gcc-shared-source.inc
@@ -5,5 +5,7 @@ do_fetch[noexec] = "1"
 deltask do_unpack
 deltask do_patch
 
+SRC_URI = ""
+
 do_configure[depends] += "gcc-source-${PV}:do_preconfigure"
 do_populate_lic[depends] += "gcc-source-${PV}:do_unpack"




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

* Re: [PATCH] gcc-shared-source: Set empty SRC_URI
  2015-09-23 21:33 [PATCH] gcc-shared-source: Set empty SRC_URI Richard Purdie
@ 2015-09-25 11:03 ` Alexander Kanavin
  2015-09-25 11:11   ` Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2015-09-25 11:03 UTC (permalink / raw)
  To: openembedded-core

On 09/24/2015 12:33 AM, Richard Purdie wrote:
> gcc-source is the only gcc recipe meant to handle the fetch/unpack/patch
> tasks, the other gcc recipes then depend on this.
>
> This approach has been creating some confusion for tools like the archiver.
> The simplest way to signal to these processes that there is no source
> is to empty SRC_URI at the same time we disable the other tasks.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

This has broken the upstream version check for the gcc recipes, which 
was working fine before:

http://packages.yoctoproject.org/


Alex





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

* Re: [PATCH] gcc-shared-source: Set empty SRC_URI
  2015-09-25 11:03 ` Alexander Kanavin
@ 2015-09-25 11:11   ` Alexander Kanavin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2015-09-25 11:11 UTC (permalink / raw)
  To: openembedded-core

On 09/25/2015 02:03 PM, Alexander Kanavin wrote:

>> gcc-source is the only gcc recipe meant to handle the fetch/unpack/patch
>> tasks, the other gcc recipes then depend on this.
>>
>> This approach has been creating some confusion for tools like the
>> archiver.
>> The simplest way to signal to these processes that there is no source
>> is to empty SRC_URI at the same time we disable the other tasks.
>>
>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> This has broken the upstream version check for the gcc recipes, which
> was working fine before:
>
> http://packages.yoctoproject.org/

Actually, maybe the problem is not with this patch, but with the 
upstream version checker that defaults to 1.0 when the SRC_URI is empty 
or points to a local file. In that case, it should simply set the 
upstream version to the version of the recipe itself. I'll file a bug.


Alex



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

end of thread, other threads:[~2015-09-25 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 21:33 [PATCH] gcc-shared-source: Set empty SRC_URI Richard Purdie
2015-09-25 11:03 ` Alexander Kanavin
2015-09-25 11:11   ` Alexander Kanavin

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