Merge lp:~robru/qtubuntu/inline-gles-quilt into lp:qtubuntu

Proposed by Robert Bruce Park
Status: Merged
Approved by: MichaƂ Sawicz
Approved revision: 317
Merged at revision: 315
Proposed branch: lp:~robru/qtubuntu/inline-gles-quilt
Merge into: lp:qtubuntu
Diff against target: 200 lines (+169/-1)
4 files modified
debian/bileto_convert_to_gles (+28/-0)
debian/control (+2/-1)
debian/gles-patches/convert-to-gles.patch (+138/-0)
debian/gles-patches/series (+1/-0)
To merge this branch: bzr merge lp:~robru/qtubuntu/inline-gles-quilt
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+290662@code.launchpad.net

Commit message

Inline GLES packaging using a quilt patch.

To post a comment you must log in.
lp:~robru/qtubuntu/inline-gles-quilt updated
315. By Robert Bruce Park

Add quilt build-dep.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:314
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/30/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1229
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1203
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1203
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1201/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1201/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1201/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1201/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1201/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1201
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1201/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)
lp:~robru/qtubuntu/inline-gles-quilt updated
316. By Robert Bruce Park

Fix quilt dir name.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:315
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/31/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1230
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1204
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1204
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1202/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1202/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1202/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1202/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1202/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1202
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1202/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:316
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/32/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1231
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1205
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1205
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1203/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1203/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1203/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1203/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1203/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1203
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1203/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)
lp:~robru/qtubuntu/inline-gles-quilt updated
317. By Robert Bruce Park

Documentation tweaks.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:317
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/33/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1250
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1221
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1221
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1219/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1219/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1219/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1219/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1219/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1219
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1219/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)

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-04-01 23:20:41 +0000
4@@ -0,0 +1,28 @@
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 -eu
13+
14+# Steps to start a new quilt patch:
15+# quilt new convert-to-gles.patch
16+# quilt add debian/*
17+# # apply changes
18+
19+# Steps to refresh this quilt patch when nongles changes:
20+# quilt push -af
21+# # fix up
22+
23+# When finished, save quilt patch with:
24+# quilt refresh
25+# quilt pop -a
26+
27+export QUILT_PATCHES=debian/gles-patches
28+quilt push -a
29+
30+sed --in-place 's/^qtubuntu /qtubuntu-gles /g' debian/changelog
31+
32+rm --recursive --force ./.pc/
33
34=== modified file 'debian/control'
35--- debian/control 2015-12-07 13:52:12 +0000
36+++ debian/control 2016-04-01 23:20:41 +0000
37@@ -17,11 +17,12 @@
38 libxrender-dev,
39 qt5-default,
40 qtbase5-private-dev,
41+ quilt,
42 # if you don't have have commit access to this branch but would like to upload
43 # directly to Ubuntu, don't worry: your changes will be merged back into the
44 # upstream branch
45 Vcs-Bzr: lp:qtubuntu
46-Standards-Version: 3.9.4
47+Standards-Version: 3.9.6
48 Section: libs
49
50 Package: qtubuntu-android
51
52=== added directory 'debian/gles-patches'
53=== added file 'debian/gles-patches/convert-to-gles.patch'
54--- debian/gles-patches/convert-to-gles.patch 1970-01-01 00:00:00 +0000
55+++ debian/gles-patches/convert-to-gles.patch 2016-04-01 23:20:41 +0000
56@@ -0,0 +1,138 @@
57+Index: qtubuntu/debian/control
58+===================================================================
59+--- qtubuntu.orig/debian/control
60++++ qtubuntu/debian/control
61+@@ -1,4 +1,4 @@
62+-Source: qtubuntu
63++Source: qtubuntu-gles
64+ Priority: optional
65+ Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
66+ Build-Depends: debhelper (>= 9),
67+@@ -11,12 +11,20 @@ Build-Depends: debhelper (>= 9),
68+ libinput-dev,
69+ libmirclient-dev (>= 0.13.0),
70+ libmtdev-dev,
71++ libqt5gui5-gles,
72++ libqt5quick5-gles,
73++ libqt5quickparticles5-gles,
74++ libqt5quicktest5,
75++ libqt5quickwidgets5-gles,
76++ libqt5sensors5-dev,
77+ libubuntu-application-api-dev (>= 2.9.0),
78+ libudev-dev,
79+ libxkbcommon-dev,
80+ libxrender-dev,
81+ qt5-default,
82+- qtbase5-private-dev,
83++ qtbase5-gles-dev,
84++ qtbase5-private-gles-dev,
85++ qtdeclarative5-dev,
86+ quilt,
87+ # if you don't have have commit access to this branch but would like to upload
88+ # directly to Ubuntu, don't worry: your changes will be merged back into the
89+@@ -26,7 +34,7 @@ Standards-Version: 3.9.6
90+ Section: libs
91+
92+ Package: qtubuntu-android
93+-Architecture: armhf
94++Architecture: amd64 i386
95+ Multi-Arch: same
96+ Conflicts: qtubuntu-desktop,
97+ Replaces: qthybris (<< 0.37),
98+@@ -39,41 +47,12 @@ Provides: qtubuntu,
99+ Depends: ubuntu-application-api3-touch,
100+ ${misc:Depends},
101+ ${shlibs:Depends},
102+-Description: Qt plugins for Ubuntu Platform API (mobile)
103++Description: Qt plugins for Ubuntu Platform API (mobile) - OpenGLES
104+ QtUbuntu is a set of Qt5 components for the Ubuntu Platform API. It contains a
105+ QPA (Qt Platform Abstraction) plugin based on the Ubuntu Platform API and a
106+ legacy QPA plugin based on the compatibility layers. It also provides Qt
107+ bindings for Ubuntu Platform API features that are not exposed through the QPA
108+ plugins.
109+ .
110+- This variant of the package is for Android-based phones and tablets.
111+-
112+-Package: qtubuntu-desktop
113+-Architecture: any
114+-Multi-Arch: same
115+-Conflicts: qtubuntu-android,
116+-Replaces: qtubuntu (<< 0.52),
117+- qtubuntu-android,
118+-Breaks: qthybris (<< 0.37),
119+- unity8 (<< 7.85),
120+-Provides: qtubuntu,
121+-Depends: ubuntu-application-api3-desktop,
122+- ${misc:Depends},
123+- ${shlibs:Depends},
124+-Description: Qt plugins for Ubuntu Platform API (desktop)
125+- QtUbuntu is a set of Qt5 components for the Ubuntu Platform API. It contains a
126+- QPA (Qt Platform Abstraction) plugin based on the Ubuntu Platform API and a
127+- legacy QPA plugin based on the compatibility layers. It also provides Qt
128+- bindings for Ubuntu Platform API features that are not exposed through the QPA
129+- plugins.
130+- .
131+- This variant of the package is for GNU-based desktops.
132+-
133+-Package: qthybris
134+-Depends: qtubuntu-android,
135+- ${misc:Depends},
136+-Architecture: any
137+-Section: oldlibs
138+-Description: transitional dummy package
139+- This is a transitional dummy package for the qthybris -> qtubuntu
140+- transition.
141++ This variant of the package is for Android-based phones and tablets (built
142++ against the OpenGLES variant of qtbase).
143+Index: qtubuntu/debian/rules
144+===================================================================
145+--- qtubuntu.orig/debian/rules
146++++ qtubuntu/debian/rules
147+@@ -4,47 +4,25 @@
148+ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
149+
150+ ANDROID_DIR = build-android
151+-DESKTOP_DIR = build-desktop
152+ TMP1_DIR = $(CURDIR)/debian/tmp1
153+-TMP2_DIR = $(CURDIR)/debian/tmp2
154+-
155+-# We only want to build qtubuntu-android on arches using Qt built with OpenGL ES2.0
156+-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
157+-gles2_architectures = armhf
158+
159+ %:
160+ dh $@
161+
162+ override_dh_clean:
163+-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
164+ rm -rf $(TMP1_DIR)
165+-endif
166+- rm -rf $(TMP2_DIR)
167+ dh_clean
168+
169+ override_dh_auto_configure:
170+-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
171+ mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- "QMAKE_CXXFLAGS=-DPLATFORM_API_TOUCH" $(CURDIR)
172+-endif
173+- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- "QMAKE_CXXFLAGS=-DQTUBUNTU_USE_OPENGL" $(CURDIR)
174+
175+ override_dh_auto_build:
176+-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
177+ dh_auto_build -B$(ANDROID_DIR)
178+-endif
179+- dh_auto_build -B$(DESKTOP_DIR)
180+
181+ override_dh_auto_install:
182+ rm -f debian/*/usr/lib/*/qt5/examples/qtubuntu/qmlscene-ubuntu
183+-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
184+ mkdir -p $(TMP1_DIR) && cd $(ANDROID_DIR) && INSTALL_ROOT=$(TMP1_DIR) make install
185+ cd $(CURDIR)
186+-endif
187+- mkdir -p $(TMP2_DIR) && cd $(DESKTOP_DIR) && INSTALL_ROOT=$(TMP2_DIR) make install
188+- cd $(CURDIR)
189+
190+ override_dh_install:
191+-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
192+ dh_install --sourcedir=$(TMP1_DIR) -pqtubuntu-android
193+-endif
194+- dh_install --sourcedir=$(TMP2_DIR) -pqtubuntu-desktop
195
196=== added file 'debian/gles-patches/series'
197--- debian/gles-patches/series 1970-01-01 00:00:00 +0000
198+++ debian/gles-patches/series 2016-04-01 23:20:41 +0000
199@@ -0,0 +1,1 @@
200+convert-to-gles.patch

Subscribers

People subscribed via source and target branches