← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1351065] Re: click_create_target erroneously removes existing chroot

 

** Changed in: qtcreator-plugin-ubuntu
       Status: Fix Committed => 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 Released
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