qt5: Allow disabling SHA validation for branch
PATCH 1/1 qt5: Allow disabling SHA validation for branch
Qt releases are done from a release branch (5.x.x), which is later merged back to a stable branch (5.x) and then removed. When a recipe is updated to use the released SHA from the release branch, it will eventually break when the release branch is removed. This happens because bitbake tries to validate that given SHA is found from the given branch. Add additional variable that can be used to disable the SHA check when branch is known to be later removed, but SHA remains valid.
--- recipes-qt/qt5/qt5-git.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-qt/qt5/qt5-git.inc +2 -1
@@ -3,10 +3,11 @@ QT_MODULE ?= "${BPN}" QT_MODULE_BRANCH ?= "5.6" +QT_MODULE_NOBRANCH ?= "0" # each module needs to define valid SRCREV SRC_URI = " \ - ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ + ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};nobranch=${QT_MODULE_NOBRANCH};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ " S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
Quoted 18 lines · Samuli Piippo
Qt releases are done from a release branch (5.x.x), which is later merged back to a stable branch (5.x) and then removed. When a recipe is updated to use the released SHA from the release branch, it will eventually break when the release branch is removed. This happens because bitbake tries to validate that given SHA is found from the given branch. Add additional variable that can be used to disable the SHA check when branch is known to be later removed, but SHA remains valid.
Signed-off-by Samuli Piippo <[email protected]>--- recipes-qt/qt5/qt5-git.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)recipes-qt/qt5/qt5-git.inc +0
-0
recipes-qt/qt5/qt5-git.inc line 6
Quoted 4 lines
recipes-qt/qt5/qt5-git.inc +1
-0@@ -3,10 +3,11 @@ QT_MODULE ?= "${BPN}" QT_MODULE_BRANCH ?= "5.6" +QT_MODULE_NOBRANCH ?= "0"
Why not put whole ";nobranch=1" here (and empty by default) to keep the SRC_URI shorter for recipe versions which don't have this issue?
Or evenQT_MODULE_BRANCH_PARAM = "branch=${QT_MODULE_BRANCH}"
which your recipes can replace with nobranch=1 and SRC_URI will stay simple:
${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};${QT_MODULE_BRANCH_PARAM};protocol=${QT_GIT_PROTOCOL}
Quoted 15 lines
recipes-qt/qt5/qt5-git.inc +1
-1# each module needs to define valid SRCREV SRC_URI = " \ - ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ + ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};nobranch=${QT_MODULE_NOBRANCH};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ " S = "${WORKDIR}/git"Signature · 7 lines
1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]