cordova-ubuntu should add the click chroot dependency via an exec shell command

Bug #1411304 reported by David Barth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cordova Ubuntu
Fix Released
Medium
Maxim Ermilov

Bug Description

It is complicated to install the cordova build packages.

1. We could exec a shell to do the 'sudo click chroot maint install ... "
2. Once we once the package in the archive, we could just have 1 virtual package with the right dependencies

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

bad idea

Changed in cordova-ubuntu:
status: New → Won't Fix
Maxim Ermilov (zaspire)
Changed in cordova-ubuntu:
status: Won't Fix → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :

Maxim: Why do you think this is a bad idea? Which solution would you propose to make the installation for new users easier?

Revision history for this message
David Barth (dbarth) wrote :

We discussed the bug last week, and agreed this was worth doing in the end. Maxim is looking into it now.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Today, I made my first cmdline Cordova app. However, I also got the following error like:

liuxg@liuxg:~/web/test-app/www$ cordova build --device
Error: icon does not exist: /home/liuxg/web/test-app/platforms/ubuntu/www/img/icon.png
    at Object.module.exports.update_manifest (/usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/metadata/ubuntu_parser.js:98:33)
    at Object.module.exports.update_from_config (/usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/metadata/ubuntu_parser.js:59:21)
    at Object.module.exports.update_project (/usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/metadata/ubuntu_parser.js:147:21)
    at /usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/prepare.js:122:27
    at Array.map (native)
    at /usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/prepare.js:65:40
    at _fulfilled (/usr/share/cordova-cli/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/share/cordova-cli/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/share/cordova-cli/node_modules/q/q.js:749:13)
    at /usr/share/cordova-cli/node_modules/q/q.js:509:49
liuxg@liuxg:~/web/test-app/www$ cordova build --device
Running command: /home/liuxg/web/test-app/platforms/ubuntu/cordova/build --device
Building Phone Application...
Error: missing armhf chroot
run:
sudo click chroot -a armhf -f ubuntu-sdk-14.10 create
sudo click chroot -a armhf -f ubuntu-sdk-14.10 install cmake libicu-dev:armhf pkg-config qtbase5-dev:armhf qtchooser qtdeclarative5-dev:armhf qtfeedback5-dev:armhf qtlocation5-dev:armhf qtmultimedia5-dev:armhf qtpim5-dev:armhf libqt5sensors5-dev:armhf qtsystems5-dev:armhf
Error: /home/liuxg/web/test-app/platforms/ubuntu/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)
liuxg@liuxg:~/web/test-app/www$

Is there anyway to make the life easier for the developers. I think we probably need to get the libraries into the chroots to make it easier.

David Barth (dbarth)
Changed in cordova-ubuntu:
status: In Progress → Fix Released
importance: Undecided → Medium
assignee: nobody → Maxim Ermilov (zaspire)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.