Merge lp:~robru/cordova-ubuntu/packaging into lp:cordova-ubuntu

Proposed by Robert Bruce Park
Status: Rejected
Rejected by: Robert Bruce Park
Proposed branch: lp:~robru/cordova-ubuntu/packaging
Merge into: lp:cordova-ubuntu
Diff against target: 87 lines (+21/-6)
4 files modified
CMakeLists.txt (+6/-1)
debian/changelog (+10/-1)
debian/control (+4/-4)
debian/qtdeclarative5-cordova-2.8-plugin.install (+1/-0)
To merge this branch: bzr merge lp:~robru/cordova-ubuntu/packaging
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Maxim Ermilov (community) Needs Fixing
Review via email: mp+180641@code.launchpad.net

Commit message

Moved assets from /usr/lib to /usr/share.

Description of the change

* Moved assets from /usr/lib to /usr/share, fixing many lintian warnings.
* updated homepage/vcs-bzr fields in debian/control, since the project has moved.

To post a comment you must log in.
lp:~robru/cordova-ubuntu/packaging updated
230. By Robert Bruce Park

Fix symlink.

Revision history for this message
Maxim Ermilov (zaspire) wrote :

> Moved assets from /usr/lib to /usr/share
bad idea
1. CaptureWidget.qml/InAppBrowser.qml uses relative paths.
If assets will store in different folder this files should be generated during build(to support running from build directory) _&_ install.
2. other components store assets in same way

> updated homepage/vcs-bzr fields in debian/control, since the project has moved.
It's better split this branch

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

No, the bad idea is having arch-independent qml/image files living under /usr/lib/[arch]. Moving them under /usr/share isn't optional, it's required by the filesystem. So far we've been using symlinks in order to avoid breaking qml's relative paths that insist on storing everything under /usr/lib.

The only thing I can't figure out is why this project is different and isn't working the same way as other projects that I've made this change to.

Revision history for this message
Maxim Ermilov (zaspire) wrote :

> So far we've been using symlinks in order to avoid breaking
symlinks will work.

> 9 +INSTALL(CODE "EXECUTE_PROCESS(COMMAND
> 10 + ln -sf /usr/share/cordova-ubuntu-${VERSION}/assets
> 11 + ${PROJECT_BINARY_DIR}/CordovaUbuntu.${VERSION})")
incorrect.
${PROJECT_BINARY_DIR} is building dir.

extra symlink should be created during build to support running from build directory.

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

Yes? Syntax of `ln` is that the target of the symlink goes first, and the place the symlink is created goes second. So in this case we're creating a symlink in the build dir that points at where stuff is going to get installed to. Then the regular debhelper stuff picks up that symlink and includes it in the final package, so that the symlink gets installed into the system correctly. I'm not sure what you're claiming is 'incorrect' about this. That symlink is really the only part of this that *is* correct. Build a deb from this branch, the symlink is there and points at the right place. All that's missing is somehow having a symlink in the source tree so that in-tree builds continue to function.

I tried just commiting a symlink to the source tree itself, but unfortunately cmake follows it during build time, and you end up with the asset files duplicated *both* in /usr/share and in /usr/lib, which is wrong and terrible.

Revision history for this message
Maxim Ermilov (zaspire) wrote :

I fix problems with symlinks & push changes to trunk.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

230. By Robert Bruce Park

Fix symlink.

229. By Robert Bruce Park

Move assets out of /usr/lib into /usr/share.

228. By Robert Bruce Park

Minor packaging fixes.

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 2013-07-17 22:47:09 +0000
3+++ CMakeLists.txt 2013-08-16 19:46:29 +0000
4@@ -74,6 +74,11 @@
5 COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/CordovaView.qml ${PROJECT_BINARY_DIR}/CordovaUbuntu.${VERSION}
6 DEPENDS ${tmp} cordovaubuntuplugin ${PROJECT_BINARY_DIR}/CordovaView.qml
7 )
8+
9+INSTALL(CODE "EXECUTE_PROCESS(COMMAND
10+ ln -sf /usr/share/cordova-ubuntu-${VERSION}/assets
11+ ${PROJECT_BINARY_DIR}/CordovaUbuntu.${VERSION})")
12+
13 file(GLOB tmp xml/*)
14 add_custom_command(
15 OUTPUT ${PROJECT_BINARY_DIR}/xml
16@@ -180,7 +185,7 @@
17 install (TARGETS cordova-ubuntu-${VERSION} DESTINATION bin)
18 install (TARGETS echoplugin DESTINATION share/cordova-ubuntu-${VERSION}/www)
19 install (TARGETS coreplugins DESTINATION lib/cordova-ubuntu-${VERSION}/)
20-install (DIRECTORY ${PROJECT_BINARY_DIR}/www ${PROJECT_BINARY_DIR}/xml DESTINATION share/cordova-ubuntu-${VERSION})
21+install (DIRECTORY assets ${PROJECT_BINARY_DIR}/www ${PROJECT_BINARY_DIR}/xml DESTINATION share/cordova-ubuntu-${VERSION})
22 install (FILES ${PROJECT_BINARY_DIR}/www/cordova-${VERSION}.js DESTINATION share/cordova-ubuntu-${VERSION}/www)
23 install (FILES src/cordova.h src/cplugin.h DESTINATION include/cordova-ubuntu-${VERSION}/)
24 install (DIRECTORY ${PROJECT_BINARY_DIR}/qml DESTINATION share/cordova-ubuntu-${VERSION})
25
26=== renamed directory 'Cordovaqt/assets' => 'assets'
27=== modified file 'debian/changelog'
28--- debian/changelog 2013-07-17 02:52:18 +0000
29+++ debian/changelog 2013-08-16 19:46:29 +0000
30@@ -1,13 +1,22 @@
31+cordova-ubuntu (2.8.0+13.10.20130816-0ubuntu1) UNRELEASED; urgency=low
32+
33+ * Minor packaging fixes.
34+ * Automatic snapshot from revision 227 (bootstrap).
35+
36+ -- Robert Bruce Park <robert.park@canonical.com> Fri, 16 Aug 2013 12:25:24 -0600
37+
38 cordova-ubuntu (2.8.0~rc2bzr130621-0saucy2) saucy; urgency=low
39
40 * updated version.
41
42 -- Maxim Ermilov <maxim.ermilov@canonical.com> Fri, 2 Jul 2013 14:57:18 -0400
43+
44 cordovaqt (2.8.0~rc2bzr130621-0raring1) raring; urgency=low
45
46 * updated version.
47
48 -- Maxim Ermilov <maxim.ermilov@canonical.com> Fri, 2 Jul 2013 14:57:18 -0400
49+
50 cordovaqt (2.3.0~rc2bzr130621-0raring6) raring; urgency=low
51
52 * Rename cordovaqt-dev, qtdeclarative5-cordova-2.3-plugin.
53@@ -17,7 +26,7 @@
54 cordovaqt (2.3.0~rc2bzr130621-0saucy1) UNRELEASED; urgency=low
55
56 * Latest snapshot
57- * Rename cordovaqt-runtime package cordovaqt-2.3 to allow parallel,
58+ * Rename cordovaqt-runtime package cordovaqt-2.3 to allow parallel,
59 versioned installs.
60 * Added transitional package for cordovaqt-runtime.
61 * Build for arch any, we no longer need to limit the arch list
62
63=== modified file 'debian/control'
64--- debian/control 2013-07-17 23:01:08 +0000
65+++ debian/control 2013-08-16 19:46:29 +0000
66@@ -16,10 +16,10 @@
67 qtsensors5-dev,
68 qtsystems5-dev,
69 Standards-Version: 3.9.4
70-Homepage: https://launchpad.net/campo
71-# If you aren't a member of ~campo but need to upload packaging changes,
72-# just go ahead. ~campo will notice and sync up the code again.
73-Vcs-Bzr: https://code.launchpad.net/~campo/campo/trunk
74+Homepage: https://launchpad.net/cordova-ubuntu
75+# If you aren't a member of ~cordova-ubuntu but need to upload packaging changes,
76+# just go ahead. ~cordova-ubuntu will notice and sync up the code again.
77+Vcs-Bzr: https://code.launchpad.net/~cordova-ubuntu/cordova-ubuntu/trunk
78
79 Package: cordova-ubuntu-2.8
80 Architecture: any
81
82=== modified file 'debian/qtdeclarative5-cordova-2.8-plugin.install'
83--- debian/qtdeclarative5-cordova-2.8-plugin.install 2013-07-17 22:57:34 +0000
84+++ debian/qtdeclarative5-cordova-2.8-plugin.install 2013-08-16 19:46:29 +0000
85@@ -1,1 +1,2 @@
86 usr/lib/*/qt5/qml/
87+usr/share/cordova-ubuntu-*/assets

Subscribers

People subscribed via source and target branches