Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] prelink: fix upstream version check
@ 2017-10-13 14:18 Alexander Kanavin
  2017-10-13 14:56 ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2017-10-13 14:18 UTC (permalink / raw)
  To: openembedded-core

Instead of reporting that we can update to a bogus version
report that upstream version is not known.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-devtools/prelink/prelink_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb
index a137a864921..570ef36a3cc 100644
--- a/meta/recipes-devtools/prelink/prelink_git.bb
+++ b/meta/recipes-devtools/prelink/prelink_git.bb
@@ -32,6 +32,8 @@ SRC_URI = "git://git.yoctoproject.org/prelink-cross.git;branch=cross_prelink \
            file://prelink.cron.daily \
            file://prelink.default \
 	   file://macros.prelink"
+UPSTREAM_CHECK_GITTAGREGEX = "upstream has no usable tags"
+UPSTREAM_VERSION_UNKNOWN = "1"
 
 TARGET_OS_ORIG := "${TARGET_OS}"
 OVERRIDES_append = ":${TARGET_OS_ORIG}"
-- 
2.14.1



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

* Re: [PATCH] prelink: fix upstream version check
  2017-10-13 14:18 [PATCH] prelink: fix upstream version check Alexander Kanavin
@ 2017-10-13 14:56 ` Mark Hatle
  2017-10-16 10:22   ` Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2017-10-13 14:56 UTC (permalink / raw)
  To: openembedded-core

On 10/13/17 9:18 AM, Alexander Kanavin wrote:
> Instead of reporting that we can update to a bogus version
> report that upstream version is not known.

You do know that there are release branches for prelink right?

http://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/refs/heads

cross_prelink and master are both 'release' quality branches.

Anything put there is a new version.


There is nothing for us to 'tag', since there are no formal versions.


Should be easy enough for the system to compare the SRCREV to the top of
cross_prelink.  If they don't match, an upgrade is needed.

--Mark

> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
> ---
>  meta/recipes-devtools/prelink/prelink_git.bb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb
> index a137a864921..570ef36a3cc 100644
> --- a/meta/recipes-devtools/prelink/prelink_git.bb
> +++ b/meta/recipes-devtools/prelink/prelink_git.bb
> @@ -32,6 +32,8 @@ SRC_URI = "git://git.yoctoproject.org/prelink-cross.git;branch=cross_prelink \
>             file://prelink.cron.daily \
>             file://prelink.default \
>  	   file://macros.prelink"
> +UPSTREAM_CHECK_GITTAGREGEX = "upstream has no usable tags"
> +UPSTREAM_VERSION_UNKNOWN = "1"
>  
>  TARGET_OS_ORIG := "${TARGET_OS}"
>  OVERRIDES_append = ":${TARGET_OS_ORIG}"
> 



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

* Re: [PATCH] prelink: fix upstream version check
  2017-10-13 14:56 ` Mark Hatle
@ 2017-10-16 10:22   ` Alexander Kanavin
  2017-10-16 14:48     ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2017-10-16 10:22 UTC (permalink / raw)
  To: Mark Hatle, openembedded-core

On 10/13/2017 05:56 PM, Mark Hatle wrote:
> On 10/13/17 9:18 AM, Alexander Kanavin wrote:
>> Instead of reporting that we can update to a bogus version
>> report that upstream version is not known.
> 
> You do know that there are release branches for prelink right?
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/refs/heads
> 
> cross_prelink and master are both 'release' quality branches.
> 
> Anything put there is a new version.
> 
> 
> There is nothing for us to 'tag', since there are no formal versions.
> 
> 
> Should be easy enough for the system to compare the SRCREV to the top of
> cross_prelink.  If they don't match, an upgrade is needed.

The system currently supports only comparing tags, not comparing 
commits. I've filed a bug for it long time ago:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=8133

and no progress happened. In the meantime, for projects where commit == 
release, the best we can do is to mark them as 'upstream version cannot 
be established'. For prelink, also an exclusion of a bogus tag is 
needed, so you, as the maintainer, won't get reminders to update to it.

Alex



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

* Re: [PATCH] prelink: fix upstream version check
  2017-10-16 10:22   ` Alexander Kanavin
@ 2017-10-16 14:48     ` Mark Hatle
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2017-10-16 14:48 UTC (permalink / raw)
  To: Alexander Kanavin, openembedded-core

On 10/16/17 5:22 AM, Alexander Kanavin wrote:
> On 10/13/2017 05:56 PM, Mark Hatle wrote:
>> On 10/13/17 9:18 AM, Alexander Kanavin wrote:
>>> Instead of reporting that we can update to a bogus version
>>> report that upstream version is not known.
>>
>> You do know that there are release branches for prelink right?
>>
>> http://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/refs/heads
>>
>> cross_prelink and master are both 'release' quality branches.
>>
>> Anything put there is a new version.
>>
>>
>> There is nothing for us to 'tag', since there are no formal versions.
>>
>>
>> Should be easy enough for the system to compare the SRCREV to the top of
>> cross_prelink.  If they don't match, an upgrade is needed.
> 
> The system currently supports only comparing tags, not comparing 
> commits. I've filed a bug for it long time ago:
> 
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=8133
> 
> and no progress happened. In the meantime, for projects where commit == 
> release, the best we can do is to mark them as 'upstream version cannot 
> be established'. For prelink, also an exclusion of a bogus tag is 
> needed, so you, as the maintainer, won't get reminders to update to it.

didn't realize this hadn't been implemented in the system yet.  Definitely
something that should be.

--Mark

> Alex
> 



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

end of thread, other threads:[~2017-10-16 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13 14:18 [PATCH] prelink: fix upstream version check Alexander Kanavin
2017-10-13 14:56 ` Mark Hatle
2017-10-16 10:22   ` Alexander Kanavin
2017-10-16 14:48     ` Mark Hatle

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