[Interest] How checkout Qt 5.5.1 branch to build?

Edward Sutton edward.sutton at subsite.com
Fri Nov 20 15:40:12 CET 2015


Thanks Jakob.

A comment in QTBUG-49133 init-repository cannot clone revisions from deleted release branches<https://bugreports.qt.io/browse/QTBUG-49133> mentioned a work-around is to use
git submodule update —recursive


As an SVN user, I am not sure what that really does.  It sounds like a better SVN-externals-thing.

It may be wasting more time than needed, or getting more source than needed?

I am not sure when I should call it.

My concern was that init-repository never finishes whatever it needs to do when it bails-out when qt3d is encountered.

Here is what my Jenkins build job looks like now for checkout.


git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout v5.5.1

echo First call to init-repository will fail due to qt3d, append true to hide qt3d failure
perl init-repository || true

echo Fix using git submodule update —recursive
git submodule update —recursive

echo Finish init-repository with force, append true to hide qt3d failure
perl init-repository -f || true

-Ed


On Nov 20, 2015, at 8:19 AM, Jakob Magiera <JAM at ivu.de<mailto:JAM at ivu.de>> wrote:

Great find, Edward, I was hoping for that! :-)

Meanwhile, I’ve hacked the script to suit my needs, see the loop in line 377:

    foreach my $module (@modules) {
        my $bname = $subbranches{$module};
        if ($bname ne "" && $bname =~ /^\d/) {
            $bname = "v".$bname;
        }
        $self->git_clone_one_submodule($subdirs{$module}, $subbases{$module}, $bname);
    }

Von: Edward Sutton [mailto:edward.sutton at subsite.com]
Gesendet: Freitag, 20. November 2015 14:15
An: Jakob Magiera
Cc: Alejandro Exojo; interest at qt-project.org<mailto:interest at qt-project.org>
Betreff: Re: [Interest] How checkout Qt 5.5.1 branch to build?

Thanks Jakob.

There is a bug report that matches my issue:

QTBUG-49133 init-repository cannot clone revisions from deleted release branches<https://bugreports.qt.io/browse/QTBUG-49133>

init-repository should be able to clone every released version of Qt.

-Ed


On Nov 20, 2015, at 1:55 AM, Jakob Magiera <JAM at ivu.de<mailto:JAM at ivu.de>> wrote:

I think you may be running into the same problem as I did, see http://lists.qt-project.org/pipermail/interest/2015-October/019488.html

I think the perl script is broken when it comes to checking out tags instead of branches.

Not sure where to report this bug.

Jakob

Von: Interest [mailto:interest-bounces at qt-project.org] Im Auftrag von Edward Sutton
Gesendet: Donnerstag, 19. November 2015 21:25
An: Alejandro Exojo
Cc: interest at qt-project.org<mailto:interest at qt-project.org>
Betreff: Re: [Interest] How checkout Qt 5.5.1 branch to build?


On Nov 19, 2015, at 1:34 PM, Alejandro Exojo <suy at badopi.org<mailto:suy at badopi.org>> wrote:

El Thursday 19 November 2015, Edward Sutton escribió:
I get a fatal: Remote branch 5.5.1 not found in upstream origin after
trying to init-repository.


After reading the "Branch Guidelines" at
https://wiki.qt.io/Branch_Guidelines I expected the branch to be named
“5.5.1”.

What am I doing wrong here?


git clone git://code.qt.io/qt/qt5.git

cd qt5

git checkout 5.5.1

Quoting the wiki page you mention:

"has a name like 5.3.1. It is (usually) created from the stable branch when a
release is imminent. It is terminated by a release tag, after which the branch
is deleted."

You want the v5.5.1 tag.

Thanks.

My goal is to source code debug an issue I have with QBluetoothSocket stopping to send data in Qt 5.5.1 commercial release.

If I want to source code debug, I need to build “v5.5.1” correct?


From this page, I understand that “v” prefixes are tags.

http://code.qt.io/cgit/qt/qt5.git/

Checking out “v5.5.1” fails to init repository because of qt3d.

I do not understand how qt3d not be included in the Qt “v5.5.1" release?

I can build branch “5.5” and it builds qt3d with no problem.

Isn’t “v5.5.1” newer than branch “5.5” ?

-Ed


<image001.png>








--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net<http://disperso.net/>
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151120/2d2ddf88/attachment.html>


More information about the Interest mailing list