[oe] [meta-qt5][PATCH] Change default SRC_URI from github.com to code.qt.io

Samuli Piippo samuli.piippo at gmail.com
Mon Jul 30 10:23:06 UTC 2018


Have you been using codereview.qt-project.org as the QT_GIT previously?
refs/changes/* are gerrit and CI specific refs and are never be
mirrored to github or code.qt.io

-samuli

On 28 July 2018 at 03:03, Martin Jansa <martin.jansa at gmail.com> wrote:
> In the end it took 60 hours for qtbase, 10 hours for qtdeclarative..
>
> On Fri, Jul 27, 2018 at 9:21 AM Martin Jansa <martin.jansa at gmail.com> wrote:
>
>> One disadvantage of this is that fetching from code.qt.io seems to be
>> significantly slower than from github.com.
>>
>> One extreme case is just running in one of my old build dirs, where the
>> checkout from code.qt.io wasn't updated on premirror for quite long time
>> and now the do_fetch of qtbase is already running for 43 hours..
>>
>> Most of the time it's removing various refs from gerrit reviews:
>> $ tail
>> work/x86_64-linux/qtbase-native/5.9.6+gitAUTOINC+9c50112304-r0/temp/log.do_fetch
>>  x [deleted]         (none)     -> refs/changes/83/75483/6
>>  x [deleted]         (none)     -> refs/changes/83/75783/1
>>  x [deleted]         (none)     -> refs/changes/83/75783/2
>>  x [deleted]         (none)     -> refs/changes/83/75783/3
>>  x [deleted]         (none)     -> refs/changes/83/75783/4
>>  x [deleted]         (none)     -> refs/changes/83/75783/5
>>  x [deleted]         (none)     -> refs/changes/83/75783/6
>>  x [deleted]         (none)     -> refs/changes/83/7583/1
>>  x [deleted]         (none)     -> refs/changes/83/76183/1
>>  x [deleted]         (none)     -> refs/changes/83/76183/2
>>
>> and there is a lot of them:
>> $ grep -c deleted
>> work/x86_64-linux/qtbase-native/5.9.6+gitAUTOINC+9c50112304-r0/temp/log.do_fetch
>> 81174
>>
>> $ grep -c deleted.*refs/changes
>> work/x86_64-linux/qtbase-native/5.9.6+gitAUTOINC+9c50112304-r0/temp/log.do_fetch
>> 63253
>>
>> $ grep -c deleted.*refs/builds
>> work/x86_64-linux/qtbase-native/5.9.6+gitAUTOINC+9c50112304-r0/temp/log.do_fetch
>> 17921
>>
>> Yes it might be faster to delete the archive from premirror and do clone
>> from scratch, but other developers wouldn't know what to do with local
>> downloads directory.
>>
>> On Fri, Mar 2, 2018 at 5:19 PM Mikko Gronoff <mikko.gronoff at qt.io> wrote:
>>
>>> There have been issues in the past with github qt mirror being out of
>>> sync with code.qt.io for certain module repos. Right now there's been a
>>> several days long break in update cycle for seemingly all the qt
>>> modules where content has not been pushed to the github mirror. Change
>>> the default SRC_URI to the more reliable code.qt.io.
>>>
>>> Change-Id: Ic7d3b9a82ef0ae502e99a8516ef78ca09250fd1e
>>> Signed-off-by: Mikko Gronoff <mikko.gronoff at qt.io>
>>> Reviewed-by: Samuli Piippo <samuli.piippo at qt.io>
>>> ---
>>>  conf/layer.conf                              | 4 ++--
>>>  recipes-qt/examples/qt5everywheredemo_1.0.bb | 3 ++-
>>>  2 files changed, 4 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/conf/layer.conf b/conf/layer.conf
>>> index 7751ce2..f540710 100644
>>> --- a/conf/layer.conf
>>> +++ b/conf/layer.conf
>>> @@ -33,7 +33,7 @@ LICENSE_PATH += "${LAYERDIR}/licenses"
>>>
>>>  IMAGE_FEATURES[validitems] += "qtcreator-debug"
>>>
>>> -QT_GIT ?= "git://github.com/qt"
>>> -QT_LABS_GIT ?= "git://github.com/qt-labs"
>>> +QT_GIT_PROJECT ?= "qt"
>>> +QT_GIT ?= "git://code.qt.io/${QT_GIT_PROJECT}
>>> <http://code.qt.io/$%7BQT_GIT_PROJECT%7D>"
>>>  QT_GIT_PROTOCOL ?= "git"
>>>  QT_EDITION ?= "opensource"
>>> diff --git a/recipes-qt/examples/qt5everywheredemo_1.0.bb
>>> b/recipes-qt/examples/qt5everywheredemo_1.0.bb
>>> index dfbe4ae..36d57f1 100644
>>> --- a/recipes-qt/examples/qt5everywheredemo_1.0.bb
>>> +++ b/recipes-qt/examples/qt5everywheredemo_1.0.bb
>>> @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM =
>>> "file://qml/QtDemo/main.qml;endline=39;md5=7d80863906a4bc8ffc
>>>  DEPENDS = "qtdeclarative qtxmlpatterns qtgraphicaleffects qtsvg
>>> qtmultimedia"
>>>
>>>  SRCREV = "35d72a2eba7456a2efc5eb8b77afbc00f69ba0ac"
>>> -SRC_URI = "${QT_LABS_GIT}/qt-labs-qt5-everywhere-demo"
>>> +QT_GIT_PROJECT = "qt-labs"
>>> +SRC_URI = "${QT_GIT}/qt5-everywhere-demo"
>>>
>>>  S = "${WORKDIR}/git/QtDemo"
>>>
>>> --
>>> 2.7.4
>>>
>>> --
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>>
>>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list