Merge lp:~unity-team/qtmir/inline-gles-quilt into lp:qtmir

Proposed by Michał Sawicz
Status: Rejected
Rejected by: Michał Sawicz
Proposed branch: lp:~unity-team/qtmir/inline-gles-quilt
Merge into: lp:qtmir
Diff against target: 262 lines (+234/-0)
5 files modified
debian/bileto_convert_to_gles (+13/-0)
debian/gles-patches/convert-to-gles.patch (+203/-0)
debian/gles-patches/series (+1/-0)
tests/CMakeLists.txt (+6/-0)
tests/convert-to-gles.sh (+11/-0)
To merge this branch: bzr merge lp:~unity-team/qtmir/inline-gles-quilt
Reviewer Review Type Date Requested Status
Robert Bruce Park (community) Disapprove
Unity8 CI Bot (community) continuous-integration Needs Fixing
Gerry Boland tentative Pending
Review via email: mp+290061@code.launchpad.net

This proposal supersedes a proposal from 2016-03-11.

Commit message

Inline GLES packaging

Description of the change

Experimenting with having GLES debian/ dir inlined in same trunk, and experimenting with train building gles package for you.

control.gles and rules.gles are copied verbatim from lp:qtmir/gles

=====

I've now employed quilt to do this, and added a test that runs in the non-gles tree.

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:453
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~robru/qtmir/inline-gles/+merge/288732/+edit-commit-message

https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/104/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/879
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/895
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/895
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/893/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/893/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/893/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/893/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/893/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/893
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/893/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/104/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:454
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~robru/qtmir/inline-gles/+merge/288732/+edit-commit-message

https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/105/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/880
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/896
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/896
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/894/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/894/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/894/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/894/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/894/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/894
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/894/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/105/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:455
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/106/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/881
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/897
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/897
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/895/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/895/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/895/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/895/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/895/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/895
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/895/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/106/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:456
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/107/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/882
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/898
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/898
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/896/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/896/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/896/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/896/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/896/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/896
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/896/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/107/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:457
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/111/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/912
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/928
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/928
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/926/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/926/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/926/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/926/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/926/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/926
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/926/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/111/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:459
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/112/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/915
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/930
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/930
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/928/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/928/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/928/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/928/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/928/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/928
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/928/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/112/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:460
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/113/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/916
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/932
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/932
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/930/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/930/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/930/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/930/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/930/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/930
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/930/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/113/rebuild

review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote : Posted in a previous version of this proposal

+sed --in-place 's/qtmir/qtmir-gles/g' debian/copyright debian/changelog
this will edit more than just the package names in the changelog. Example:

- * Depend on same-version qtmir-{desktop,android}
+ * Depend on same-version qtmir-gles-{desktop,android}

- * Migration of qtmir from the legacy Mir API
+ * Migration of qtmir-gles from the legacy Mir API

Could you make the sed replace a bit more strict, to prevent this?

I'm also a giant fan of explaining non-obvious things with a comment or readme - please add a readme to explain the purpose of the *.gles and bileto scripts.

Also, is editing "debian/copyright" necessary? Upstream name always being "qtmir" strikes me as more correct.

Looks fine to me otherwise.

review: Needs Fixing
Revision history for this message
Robert Bruce Park (robru) wrote : Posted in a previous version of this proposal

On Mon, Mar 21, 2016 at 7:55 AM, Gerry Boland
<email address hidden> wrote:
> Could you make the sed replace a bit more strict, to prevent this?

Can do.

> I'm also a giant fan of explaining non-obvious things with a comment or readme - please add a readme to explain the purpose of the *.gles and bileto scripts.

On it.

> Also, is editing "debian/copyright" necessary? Upstream name always being "qtmir" strikes me as more correct.

Well I wrote the script to minimize the diff against the existing
qtmir-gles package, eg, the existing qtmir-gles already defines
"Upstream-Name: qtmir-gles" in its debian/copyright.

Now that you mention it, since the field is called "Upstream" Name, it
does seem more correct to leave it as just qtmir, but that will
introduce a packaging diff when this code goes live.

--
robru

Revision history for this message
Robert Bruce Park (robru) wrote : Posted in a previous version of this proposal

Ok fixed sed, let me know if the comment is clear enough.

This is safe to merge as-is however the train implementation of this isn't in production yet so you have to keep maintaining lp:qtmir/gles for the time being.

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:461
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/122/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1025
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1041
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1041
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1039
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1039/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1039
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1039/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1039/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1039
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1039/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1039
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1039/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1039
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1039/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/122/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:461
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/142/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1117
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1117
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1117
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1115
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1115/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1115/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1115
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1115/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1115/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1115
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1115/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1115/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/142/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote : Posted in a previous version of this proposal

Tentative approval. Approach is good.

Already the build dependencies here are out of date, so this will need refreshing at land-time.

Would be cool to auto-generate the control.gles file from the control file, as build-dep changes are something easily forgotten in the gles file. But this will as first step.

review: Approve (tentative)
Revision history for this message
Robert Bruce Park (robru) wrote : Posted in a previous version of this proposal

Yeah it's difficult for me to identify which differences are because lp:qtmir/gles is languishing and which are the necessary changes for gles to actually work.

I like saviq's idea to use a patch instead of duplicating the files but i don't have enough knowledge of gles to produce the correct patch. This branch currently is just "merge lp:qtmir/gles into here" and doesn't make any attempt at reducing the delta.

Revision history for this message
Robert Bruce Park (robru) wrote :

Drop vcs-bzr/vcs-browser, when this branch lands everything will be unified under qtmir.

Also the sed is wrong, needs a space after qtmir-gles (my fault though)

Why do you drop --fail-missing? High chance of building empty packages there.

review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
463. By Michał Sawicz

Fix sed line and drop gles-specific Vcs headers

Revision history for this message
Michał Sawicz (saviq) wrote :

> Why do you drop --fail-missing? High chance of building empty packages there.

Because we're still installing the whole thing and only packaging a small part of it. With --fail-missing dpkg will complain that we're not packaging all the installed files.

Revision history for this message
Michał Sawicz (saviq) wrote :

Oh and fixed the other bits, thanks!

Revision history for this message
Robert Bruce Park (robru) wrote :

Wouldn't it then be more correct to delete the unnecessary files and keep --fail-missing?

Dropping --fail-missing terrifies me, I've seen to many packages be built empty and nobody noticed until it's too late.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Robert Bruce Park (robru) wrote :

Hmmm, tried running this in the staging train, not sure what happened to quilt here:

https://ci-train.staging.ubuntu.com/job/ubuntu-landing-003-1-build/1/console

+ su citrain-VwZ4uOHZ9KZ7SMLl6Fm6vGYN --command ./debian/bileto_convert_to_gles
+ QUILT_PATCHES=debian/gles-patches
+ quilt push -a
No series file found

I guess you need to export QUILT_PATCHES.

review: Needs Fixing
Revision history for this message
Robert Bruce Park (robru) wrote :

Also it's not entirely clear to me that your test makes sense, because if "quilt push -a" fails, that means bileto_convert_to_gles will fail before the package is even uploaded to the PPA, which means the packages won't build (even the nongles will be prevented from uploading to the PPA).

Unless you're intending that test to be run locally by devs before it goes into a silo.

Revision history for this message
Robert Bruce Park (robru) wrote :

Ok, I've started iterating on this in the ci train staging instance which has the new GLES magic live, see here:

https://code.launchpad.net/~robru/qtmir/inline-gles-quilt/+merge/290646

review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/bileto_convert_to_gles'
2--- debian/bileto_convert_to_gles 1970-01-01 00:00:00 +0000
3+++ debian/bileto_convert_to_gles 2016-03-30 22:58:26 +0000
4@@ -0,0 +1,13 @@
5+#!/bin/sh
6+
7+# This script converts the debian/ packaging into an alternate source package
8+# which builds with GLES. You should copy the source tree into a new directory
9+# before running this script (so you have one copy for GLES and one copy for
10+# regular GL).
11+
12+set -eux
13+
14+QUILT_PATCHES=debian/gles-patches
15+quilt push -a
16+
17+sed --in-place 's/^qtmir /qtmir-gles /g' debian/changelog
18
19=== added directory 'debian/gles-patches'
20=== added file 'debian/gles-patches/convert-to-gles.patch'
21--- debian/gles-patches/convert-to-gles.patch 1970-01-01 00:00:00 +0000
22+++ debian/gles-patches/convert-to-gles.patch 2016-03-30 22:58:26 +0000
23@@ -0,0 +1,203 @@
24+Index: qtmir/debian/control
25+===================================================================
26+--- qtmir.orig/debian/control
27++++ qtmir/debian/control
28+@@ -1,4 +1,4 @@
29+-Source: qtmir
30++Source: qtmir-gles
31+ Section: libs
32+ Priority: optional
33+ Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
34+@@ -16,7 +16,13 @@ Build-Depends: cmake,
35+ libmirserver-dev (>= 0.19.0),
36+ libmtdev-dev,
37+ libprocess-cpp-dev,
38++ libqt5gui5-gles,
39++ libqt5quick5-gles,
40++ libqt5quickparticles5-gles,
41++ libqt5quicktest5,
42++ libqt5quickwidgets5-gles,
43+ libqt5sensors5-dev,
44++ libqt5test5,
45+ libqtdbusmock1-dev (>= 0.2),
46+ libqtdbustest1-dev (>= 0.2),
47+ libubuntu-app-launch2-dev,
48+@@ -31,8 +37,8 @@ Build-Depends: cmake,
49+ # lttng-gen-ts needs python3, but doesn't depend on it itself: bug 1359147
50+ python3:any,
51+ qt5-default,
52+- qtbase5-dev,
53+- qtbase5-private-dev,
54++ qtbase5-gles-dev,
55++ qtbase5-private-gles-dev,
56+ qtdeclarative5-dev,
57+ qtdeclarative5-private-dev,
58+ Standards-Version: 3.9.5
59+@@ -45,7 +51,7 @@ Vcs-Browser: http://bazaar.launchpad.net
60+ Xs-Testsuite: autopkgtest
61+
62+ Package: qtmir-android
63+-Architecture: armhf
64++Architecture: amd64 i386
65+ Multi-Arch: same
66+ Conflicts: libqtmir,
67+ qtmir-desktop,
68+@@ -56,65 +62,10 @@ Replaces: libqtmir,
69+ Provides: qtmir,
70+ Depends: ${misc:Depends},
71+ ${shlibs:Depends},
72+-Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile)
73++Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile) - OpenGLES
74+ QtMir is a set of Qt5 components to enable one to write a Mir server with Qt.
75+ It contains a QPA (Qt Platform Abstraction) plugin which creates and manages
76+ a Mir server. It also exposes some internal Mir functionality.
77+ .
78+- This variant of the package is for Android-based phones and tablets.
79+-
80+-Package: qtmir-desktop
81+-Architecture: any
82+-Multi-Arch: same
83+-Conflicts: qtmir-android,
84+- qtubuntu-android,
85+-Replaces: libqtmir,
86+- qtmir-android,
87+- qtubuntu-android,
88+-Provides: qtmir,
89+-Depends: ${misc:Depends},
90+- ${shlibs:Depends},
91+-Description: Qt platform abstraction (QPA) plugin for a Mir server (desktop)
92+- QtMir is a set of Qt5 components to enable one to write a Mir server with Qt.
93+- It contains a QPA (Qt Platform Abstraction) plugin which creates and manages
94+- a Mir server. It also exposes some internal Mir functionality.
95+- .
96+- This variant of the package is for GNU-based desktops.
97+-
98+-Package: qtdeclarative5-qtmir-plugin
99+-Architecture: any
100+-Multi-Arch: same
101+-Pre-Depends: ${misc:Pre-Depends},
102+-Depends: qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}),
103+- ${misc:Depends},
104+- ${shlibs:Depends},
105+-Replaces: libqtmir,
106+- libunity-mir1,
107+-Conflicts: libqtmir,
108+- libunity-mir1,
109+-Provides: unity-application-impl,
110+- unity-application-impl-13,
111+-Description: Qt plugin for Unity specific Mir APIs
112+- QtMir provides Qt/QML bindings for Mir features that are exposed through the
113+- qtmir-desktop or qtmir-android QPA plugin such as Application management
114+- (start/stop/suspend/resume) and surface management.
115+-
116+-Package: qtmir-tests
117+-Architecture: any
118+-Multi-Arch: same
119+-Pre-Depends: ${misc:Pre-Depends},
120+-Depends: autopilot-qt5,
121+- littler,
122+- lttng-tools,
123+- mir-test-tools,
124+- python3-autopilot,
125+- python3-babeltrace,
126+- python3-evdev,
127+- python3-mir-perf-framework,
128+- qtdeclarative5-qtmir-plugin,
129+- qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}),
130+- ${misc:Depends},
131+- ${shlibs:Depends},
132+-Description: QtMir tests and demos
133+- This package provides benchmark tests and a simple shell and client using the
134+- QtMir QPA.
135++ This variant of the package is for Android-based phones and tablets (built
136++ against the OpenGLES variant of qtbase).
137+Index: qtmir/debian/qtdeclarative5-qtmir-plugin.install
138+===================================================================
139+--- qtmir.orig/debian/qtdeclarative5-qtmir-plugin.install
140++++ /dev/null
141+@@ -1,2 +0,0 @@
142+-usr/lib/*/qt5/qml/*
143+-usr/share/glib-2.0/schemas
144+Index: qtmir/debian/qtmir-desktop.install
145+===================================================================
146+--- qtmir.orig/debian/qtmir-desktop.install
147++++ /dev/null
148+@@ -1 +0,0 @@
149+-usr/lib/*/qt5/plugins/platforms/*
150+Index: qtmir/debian/qtmir-tests.install
151+===================================================================
152+--- qtmir.orig/debian/qtmir-tests.install
153++++ /dev/null
154+@@ -1,6 +0,0 @@
155+-usr/bin/qtmir-demo-client
156+-usr/bin/qtmir-demo-shell
157+-usr/share/applications/qtmir-demo-client.desktop
158+-usr/share/qtmir/benchmarks/*
159+-usr/share/qtmir/qtmir-demo-client/*
160+-usr/share/qtmir/qtmir-demo-shell/
161+Index: qtmir/debian/rules
162+===================================================================
163+--- qtmir.orig/debian/rules
164++++ qtmir/debian/rules
165+@@ -3,60 +3,27 @@
166+
167+ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
168+
169+-include /usr/share/dpkg/default.mk
170+-
171+ ANDROID_DIR = build-android
172+-DESKTOP_DIR = build-desktop
173+ TMP1_DIR = $(CURDIR)/debian/tmp1
174+-TMP2_DIR = $(CURDIR)/debian/tmp2
175+-
176+-# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0
177+-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
178+-gles2_architectures = armhf
179+-
180+-USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures))
181+
182+ %:
183+- dh $@ --parallel --fail-missing
184++ dh $@ --parallel
185+
186+ override_dh_clean:
187+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
188+ rm -rf $(TMP1_DIR)
189+-endif
190+- rm -rf $(TMP2_DIR)
191+ dh_clean
192+
193+ override_dh_auto_configure:
194+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
195+ mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
196+-# See comment in CMakeLists.txt
197+- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGL_BUT_LINK_AGAINST_OPENGLES=1
198+-else
199+- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
200+-endif
201+
202+ override_dh_auto_build:
203+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
204+ dh_auto_build -B$(ANDROID_DIR)
205+-endif
206+- dh_auto_build -B$(DESKTOP_DIR)
207+
208+ override_dh_auto_test:
209+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
210+ dh_auto_test -B$(ANDROID_DIR)
211+-endif
212+- dh_auto_test -B$(DESKTOP_DIR)
213+
214+ override_dh_auto_install:
215+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
216+ dh_auto_install -B$(ANDROID_DIR) --destdir=$(TMP1_DIR)
217+-endif
218+- dh_auto_install -B$(DESKTOP_DIR) --destdir=$(TMP2_DIR)
219+
220+ override_dh_install:
221+-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
222+ dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android
223+-endif
224+- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop
225+- dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin
226+- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests
227
228=== added file 'debian/gles-patches/series'
229--- debian/gles-patches/series 1970-01-01 00:00:00 +0000
230+++ debian/gles-patches/series 2016-03-30 22:58:26 +0000
231@@ -0,0 +1,1 @@
232+convert-to-gles.patch
233
234=== modified file 'tests/CMakeLists.txt'
235--- tests/CMakeLists.txt 2015-09-30 15:45:17 +0000
236+++ tests/CMakeLists.txt 2016-03-30 22:58:26 +0000
237@@ -3,3 +3,9 @@
238 add_subdirectory(framework)
239 add_subdirectory(mirserver)
240 add_subdirectory(modules)
241+
242+add_test(
243+ NAME convert-to-gles
244+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/convert-to-gles.sh
245+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
246+)
247
248=== added file 'tests/convert-to-gles.sh'
249--- tests/convert-to-gles.sh 1970-01-01 00:00:00 +0000
250+++ tests/convert-to-gles.sh 2016-03-30 22:58:26 +0000
251@@ -0,0 +1,11 @@
252+#!/bin/sh
253+
254+set -eux
255+
256+QUILT_EXIT=0
257+QUILT_PATCHES=debian/gles-patches
258+
259+quilt push -a || QUILT_EXIT=$?
260+quilt pop -a
261+
262+exit $QUILT_EXIT

Subscribers

People subscribed via source and target branches