ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #01383
[Bug 1351065] Re: click_create_target erroneously removes existing chroot
This bug was fixed in the package qtcreator-plugin-ubuntu -
3.1.1+14.10.20140801-0ubuntu1
---------------
qtcreator-plugin-ubuntu (3.1.1+14.10.20140801-0ubuntu1) utopic; urgency=low
[ Zoltán Balogh ]
* Discover the processor type of the device and the emulator
* Use the click API to check if the chroot exists (LP: #1351065) (LP:
#1351065)
[ Benjamin Zeller ]
* Store architecture of a device in the devicetype ID. Fix all
existing devices and Kits .
-- Ubuntu daily release <ps-jenkins@xxxxxxxxxxxxxxxxxxx> Fri, 01 Aug 2014 16:05:25 +0000
** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1351065
Title:
click_create_target erroneously removes existing chroot
Status in Qt Creator plugins for Ubuntu:
Fix Committed
Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
Fix Released
Bug description:
Using the following script:
###
#!/bin/bash
set -e
ARCH=armhf
FRAMEWORK=ubuntu-sdk-14.10-dev2
SERIES=utopic
sudo /usr/share/qtcreator/ubuntu/scripts/click_create_target \
$ARCH $FRAMEWORK $SERIES
###
If you run this twice in a row, the first time it succeeds, but the
second time, you get:
---
A chroot for that name and architecture already exists.
Please see the man-page how to use it.
There was an error creating the click target, cleaning up
click target was removed successfully
---
Note how I pass ubuntu-sdk-14.10-dev2 as my requested framework.
However, `click chroot create` makes something called:
$ ls /var/lib/schroot/chroots/
click-ubuntu-sdk-14.10-armhf trusty-armhf utopic-amd64 utopic-armhf
See how it drops the -dev2 from the name of the chroot.
Thus, the checks in click_create_target where:
for FILE in $CHECK_FILES
[...]
for DIR in $CHECK_DIRS
Are not working properly, because:
CHECK_FILES=("/etc/schroot/chroot.d/click-${FRAMEWORK}-${ARCHITECTURE}")
CHECK_DIRS=("/var/lib/schroot/chroots/click-${FRAMEWORK}-${ARCHITECTURE}")
You need to do some mapping of frameworks from the command line to
what click chroot actually creates...
$ dpkg -l | grep qtcreator-plugin-ubuntu
ii qtcreator-plugin-ubuntu 3.1.1+14.10.20140728.1-0ubuntu1~0trusty1 amd64 Ubuntu plugin for Qt Creator IDE
ii qtcreator-plugin-ubuntu-common 3.1.1+14.10.20140728.1-0ubuntu1~0trusty1 all Common data files for the Ubuntu plugin for Qt Creator IDE
To manage notifications about this bug go to:
https://bugs.launchpad.net/qtcreator-plugin-ubuntu/+bug/1351065/+subscriptions