Skip to contentSkip to conversation

glibc: fix upstream version check

PATCH In review Alexander Kanavin 2 participants 7 messages Mar 17, 2018 – Mar 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glibc: fix upstream version check

Exclude x.y.90* pre-release versions in particular.

---
 meta/recipes-core/glibc/cross-localedef-native_2.27.bb | 2 +-
 meta/recipes-core/glibc/glibc_2.27.bb                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/cross-localedef-native_2.27.bb +1 -1
index f1e4a657cf4..6344c7acd05 100644
@@ -19,7 +19,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:"
 
 SRCBRANCH ?= "release/${PV}/master"
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
-UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)"
 
 SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
 SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
meta/recipes-core/glibc/glibc_2.27.bb +1 -1
index c4042d16fe2..827857dfc84 100644
@@ -12,7 +12,7 @@ SRCREV ?= "23158b08a0908f381459f273a984c6fd328363cb"
 SRCBRANCH ?= "release/${PV}/master"
 
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
-UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
            file://etc/ld.so.conf \
Signature · 1 line
2.16.1
#1 lore raw
Quoted 2 lines · Alexander Kanavin

Exclude x.y.90* pre-release versions in particular.

Looks ok. So I guess it pokes at master branch right ?

Quoted 40 lines
---
 meta/recipes-core/glibc/cross-localedef-native_2.27.bb | 2 +-
 meta/recipes-core/glibc/glibc_2.27.bb                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/cross-localedef-native_2.27.bb +1 -1
index f1e4a657cf4..6344c7acd05 100644
@@ -19,7 +19,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:"
 
 SRCBRANCH ?= "release/${PV}/master"
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
-UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)"
 
 SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
 SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
meta/recipes-core/glibc/glibc_2.27.bb +1 -2
index c4042d16fe2..827857dfc84 100644
@@ -12,7 +12,7 @@ SRCREV ?= "23158b08a0908f381459f273a984c6fd328363cb"
 SRCBRANCH ?= "release/${PV}/master"
 
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
-UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
            file://etc/ld.so.conf \
--

2.16.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 6 lines · Khem Raj
Quoted 2 lines · Alexander Kanavin

Exclude x.y.90* pre-release versions in particular.

Looks ok. So I guess it pokes at master branch right ?

It lists all tags regardless of branch and picks the highest.

Alex

#3 lore raw
Quoted 9 lines · Alexander Kanavin
Quoted 6 lines · Khem Raj
Quoted 2 lines · Alexander Kanavin

Exclude x.y.90* pre-release versions in particular.

Looks ok. So I guess it pokes at master branch right ?

It lists all tags regardless of branch and picks the highest.

I think that does not work effectively for how glibc release works we should probably track the Release branch name and deduce version from there

Quoted 4 lines

Alex

#4 lore raw
Quoted 4 lines · Khem Raj

It lists all tags regardless of branch and picks the highest.

I think that does not work effectively for how glibc release works we should probably track the Release branch name and deduce version from there

Glibc does tag their releases, so I'm not sure why you want to track branch names instead, they contain no additional information.

Alex

#5 lore raw
Quoted 11 lines · Alexander Kanavin
Quoted 6 lines · Khem Raj

It lists all tags regardless of branch and picks the highest.

I think that does not work effectively for how glibc release works we should probably track the Release branch name and deduce version from there

Glibc does tag their releases, so I'm not sure why you want to track branch names instead, they contain no additional information.

that works too I guess if we have good enough filters to detect it. It seems there is more noise in tags than in branches,

Quoted 2 lines

Alex

#6 lore raw
Quoted 2 lines · Khem Raj

that works too I guess if we have good enough filters to detect it. It seems there is more noise in tags than in branches,

That's what UPSTREAM_CHECK_GITTAGREGEX is for. You can set it to filter precisely the tags you want.

Alex