Merge lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-app-desktop-install-fix into lp:ubuntu-calculator-app

Proposed by Bartosz Kosiorek
Status: Merged
Approved by: David Planella
Approved revision: 203
Merged at revision: 200
Proposed branch: lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-app-desktop-install-fix
Merge into: lp:ubuntu-calculator-app
Diff against target: 112 lines (+51/-11)
4 files modified
CMakeLists.txt (+10/-5)
app/CMakeLists.txt (+2/-6)
app/ubuntu-calculator-app.in (+3/-0)
debian/changelog (+36/-0)
To merge this branch: bzr merge lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-app-desktop-install-fix
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+262799@code.launchpad.net

Commit message

Fix installation on Ubuntu Desktop

Description of the change

Fix installation on Ubuntu Desktop

To post a comment you must log in.
199. By Bartosz Kosiorek

Update changelog
[ Bartosz Kosiorek ]
* Do not allow swiping in Landscape mode.
  Fixes: https://bugs.launchpad.net/bugs/1466635.
* Fix keyboard shortcuts (eg. Ctrl+C).
  Fixes: https://bugs.launchpad.net/bugs/1466634.
* Add additional comments to logaritm and modulo
  to avoid confusion during translation.
  Fixes: https://bugs.launchpad.net/bugs/1465297.
* Fix display issue.
  Fixes: https://bugs.launchpad.net/bugs/1465996.
[ Nicholas Skaggs ]
* Fix testability for screen components.
[ Niklas Wenzel ]
* Use longer swipe in autopilot tests for revealing the scientific keyboard.
  Fixes: https://bugs.launchpad.net/bugs/1464571.
* Fix typing special characters on hardware keyboards.
  Fixes: https://bugs.launchpad.net/bugs/1449037.
[ Victor Thompson ]
* Change favorites translatable string.
  Fixes: https://bugs.launchpad.net/bugs/1464463.
* Add haptic feedback to buttons
* Update math.js library. http://pad.lv/1439846
* Enable 'bug number' support to fix floating point math.
  http://pad.lv/1445152
* Modify splash screen. http://pad.lv/1377638
* Fix keyboard focus and disappearing cursor bug. http://pad.lv/1431548
* Fix directory layout for AP tests. http://pad.lv/1443680
* Modified layout to fit design
* Fix issue with building which corrupted translations
* Updated translations

200. By Bartosz Kosiorek

Add binary for running Calculator

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Hi Bartosz,

Thanks so much for looking into this! As you asked me for a review, I'll try to be thorough:

1. On the commit message for r199, there is no need to duplicate the Debian changelog on the commit message itself. Commit messages should be concise and to the point (e.g. "Updated Debian changelog"), in particular when the exact information can be seen in the commit (debian/changelog diff). This is not something that can be fixed now, or even an issue, it's just a recommendation for future commits.

2. In general, for each merge proposal, please only limit the changes related to the fix. This fix should only be a few lines and self-contained. I see many changes on this one that are not related, which make it difficult to review and make it more prone to introduce other issues.

3. I'm not sure why the change in r200 was introduced: as far as I know, there is no calculator app binary, and it makes the tests in Jenkins fail.

4. The rest of comments I've added inline in the merge proposal.

review: Needs Fixing
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Thanks for comments.
I will try apply your remarks today evening.

I explained my intention in diff comments below.

Revision history for this message
David Planella (dpm) wrote :

Added my replies inline, thanks!

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

I have added new bug which I solved accidentely

201. By Bartosz Kosiorek

Remove cleanup changes from MR

202. By Bartosz Kosiorek

Fix autopilot tests

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

All remarks was implemented.
I added some inline comments to better describe these changes.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

A comment on naming.

Revision history for this message
David Planella (dpm) wrote :

Just a few additional comments on debian/changelog and the launcher script. Looking good now, though!

review: Needs Fixing
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Response for comments.

203. By Bartosz Kosiorek

Fixes after review

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Added an inline comment to the debian/changelog, but approving nevertheless. Good work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-04-14 16:42:56 +0000
3+++ CMakeLists.txt 2015-06-25 20:39:01 +0000
4@@ -31,18 +31,17 @@
5 set(APP_HARDCODE ubuntu-calculator-app)
6 set(AUTOPILOT_DIR ubuntu_calculator_app)
7 set(MAIN_QML ${APP_HARDCODE}.qml)
8-set(ICON "${APP_HARDCODE}.png")
9+set(ICON_FILE "${APP_HARDCODE}.png")
10 set(DESKTOP_FILE "${APP_HARDCODE}.desktop")
11-set(AUTOPILOT_DIR ubuntu_calculator_app)
12 set(APP_VERSION 2.0)
13+set(AUTOPILOT_DIR ubuntu_calculator_app)
14
15 if(CLICK_MODE)
16 set(CMAKE_INSTALL_PREFIX "/")
17 set(UBUNTU-CALCULATOR-APP_DIR "${CMAKE_INSTALL_DATADIR}/qml")
18
19 set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}")
20- set(EXEC "qmlscene $@ ${UBUNTU-CALCULATOR-APP_DIR}/${MAIN_QML}")
21- set(MODULE_PATH ${QT_IMPORTS_DIR})
22+ set(EXEC "qmlscene -qt5 $@ ${UBUNTU-CALCULATOR-APP_DIR}/${MAIN_QML}")
23 if(NOT BZR_REVNO)
24 execute_process(
25 COMMAND bzr revno
26@@ -76,8 +75,14 @@
27 configure_file(${UBUNTU_MANIFEST_PATH} ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)
28 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json DESTINATION ${CMAKE_INSTALL_PREFIX})
29 install(FILES "${APP_HARDCODE}.apparmor" DESTINATION ${CMAKE_INSTALL_PREFIX})
30+ set(ICON ${ICON_FILE})
31 else(CLICK_MODE)
32- set(EXEC "qmlscene $@ -I ${MODULE_PATH} ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR}/${MAIN_QML}")
33+ set(ICON ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR}/${ICON_FILE})
34+ set(EXEC ${APP_NAME})
35+ configure_file(app/${APP_HARDCODE}.in
36+ ${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE})
37+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE}
38+ DESTINATION ${CMAKE_INSTALL_BINDIR})
39 endif(CLICK_MODE)
40
41 file(GLOB_RECURSE I18N_SRC_FILES
42
43=== modified file 'app/CMakeLists.txt'
44--- app/CMakeLists.txt 2015-04-14 16:42:56 +0000
45+++ app/CMakeLists.txt 2015-06-25 20:39:01 +0000
46@@ -3,12 +3,8 @@
47 add_custom_target(ubuntu-calculator-app_QMlFiles ALL SOURCES ${QML_JS_FILES})
48 endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
49
50-if(CLICK_MODE)
51- set(ICON ${ICON})
52- install(FILES graphics/${ICON} DESTINATION ${CMAKE_INSTALL_PREFIX})
53-endif(CLICK_MODE)
54-
55-install(FILES ${MAIN_QML} DESTINATION ${UBUNTU-CALCULATOR-APP_DIR})
56+install(FILES graphics/${ICON_FILE} DESTINATION ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR})
57+install(FILES ${MAIN_QML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR})
58
59 add_subdirectory(engine)
60 add_subdirectory(graphics)
61
62=== added file 'app/ubuntu-calculator-app.in'
63--- app/ubuntu-calculator-app.in 1970-01-01 00:00:00 +0000
64+++ app/ubuntu-calculator-app.in 2015-06-25 20:39:01 +0000
65@@ -0,0 +1,3 @@
66+#!/bin/sh
67+export QT_SELECT=qt5
68+exec qmlscene @CMAKE_INSTALL_PREFIX@/@UBUNTU-CALCULATOR-APP_DIR@/@MAIN_QML@
69
70=== modified file 'debian/changelog'
71--- debian/changelog 2014-12-11 11:09:09 +0000
72+++ debian/changelog 2015-06-25 20:39:01 +0000
73@@ -1,3 +1,39 @@
74+ubuntu-calculator-app (2.0.197) UNRELEASED; urgency=low
75+
76+ [ Bartosz Kosiorek ]
77+ * Fixes in creating .deb package (LP: #1466518) (LP: #1466530) (LP: #1468385)
78+ * Do not allow swiping in Landscape mode (LP: #1466635)
79+ * Fix keyboard shortcuts (eg. Ctrl+C) (LP: #1466634)
80+ * Add additional comments to logaritm and modulo
81+ to avoid confusion during translation (LP: #1465297)
82+ * Fix display issue (LP: #1465996)
83+
84+ [ Nicholas Skaggs ]
85+ * Fix testability for screen components.
86+
87+ [ Niklas Wenzel ]
88+ * Use longer swipe in autopilot tests for
89+ revealing the scientific keyboard (LP: #1464571)
90+ * Fix typing special characters on hardware keyboards (LP: #1449037)
91+
92+ [ Victor Thompson ]
93+ * Change favorites translatable string (LP: #1464463)
94+
95+ -- Bartosz Kosiorek <gang65@poczta.onet.pl> Thu, 25 Jun 2015 19:56:42 +0200
96+
97+ubuntu-calculator-app (2.0.182) vivid; urgency=medium
98+ * Add haptic feedback to buttons
99+ * Update math.js library (LP: #1439846)
100+ * Enable 'bug number' support to fix floating point math (LP: #1445152)
101+ * Modify splash screen. (LP: #1377638)
102+ * Fix keyboard focus and disappearing cursor bug. (LP: #1431548)
103+ * Fix directory layout for AP tests. (LP: #1443680)
104+ * Modified layout to fit design
105+ * Fix issue with building which corrupted translations
106+ * Updated translations
107+
108+ -- Bartosz Kosiorek <gang65@poczta.onet.pl> Thu, 15 Jun 2015 12:00:05 +0100
109+
110 ubuntu-calculator-app (0.1) vivid; urgency=low
111
112 * Initial release

Subscribers

People subscribed via source and target branches