Cannot deploy scope to the phone

Bug #1378628 reported by XiaoGuo, Liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu
New
Undecided
Unassigned

Bug Description

With the latest RTM phone software and latest SDK (updated chroots for armhf), I created a template scope application. However, I cannot deploy it onto my phone.

13:20:11: Running steps for project scopetest1...
13:20:11: Starting: "/usr/share/qtcreator/ubuntu/scripts/qtc_chroot_make2"
Scanning dependencies of target hidden_files
[ 0%] Built target hidden_files
Scanning dependencies of target scope-static
[ 8%] Building CXX object src/CMakeFiles/scope-static.dir/api/client.cpp.o
[ 16%] Building CXX object src/CMakeFiles/scope-static.dir/scope/preview.cpp.o
[ 25%] Building CXX object src/CMakeFiles/scope-static.dir/scope/query.cpp.o
[ 33%] Building CXX object src/CMakeFiles/scope-static.dir/scope/scope.cpp.o
[ 33%] Built target scope-static
Scanning dependencies of target scope
Linking CXX shared library libcom.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.so
[ 33%] Built target scope
Scanning dependencies of target hidden_test_fixtures
[ 33%] Built target hidden_test_fixtures
Scanning dependencies of target gmock
[ 41%] Building CXX object tests/gmock/CMakeFiles/gmock.dir/usr/src/gtest/src/gtest-all.cc.o
[ 50%] Building CXX object tests/gmock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
Linking CXX static library libgmock.a
[ 50%] Built target gmock
Scanning dependencies of target gmock_main
[ 58%] Building CXX object tests/gmock/CMakeFiles/gmock_main.dir/usr/src/gtest/src/gtest-all.cc.o
[ 66%] Building CXX object tests/gmock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o
[ 75%] Building CXX object tests/gmock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
Linking CXX static library libgmock_main.a
[ 75%] Built target gmock_main
Scanning dependencies of target gtest
[ 83%] Building CXX object tests/gmock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
Linking CXX static library libgtest.a
[ 83%] Built target gtest
Scanning dependencies of target gtest_main
[ 91%] Building CXX object tests/gmock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
Linking CXX static library libgtest_main.a
[ 91%] Built target gtest_main
Scanning dependencies of target scope-unit-tests
[100%] Building CXX object tests/unit/CMakeFiles/scope-unit-tests.dir/scope/test-scope.cpp.o
Linking CXX executable scope-unit-tests
[100%] Built target scope-unit-tests
13:20:34: The process "/usr/share/qtcreator/ubuntu/scripts/qtc_chroot_make2" exited normally.
[ 0%] Built target hidden_files
[ 33%] Built target scope-static
[ 33%] Built target scope
[ 33%] Built target hidden_test_fixtures
[ 50%] Built target gmock
[ 75%] Built target gmock_main
[ 83%] Built target gtest
[ 91%] Built target gtest_main
[100%] Built target scope-unit-tests
Install the project...
-- Install configuration: ""
-- Installing: .ubuntu-sdk-deploy//manifest.json
-- Installing: .ubuntu-sdk-deploy//scopetest1.apparmor
-- Installing: .ubuntu-sdk-deploy/scopetest1/libcom.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.so
-- Installing: .ubuntu-sdk-deploy/scopetest1/com.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.ini
-- Installing: .ubuntu-sdk-deploy/scopetest1/icon.png
-- Installing: .ubuntu-sdk-deploy/scopetest1/logo.png
-- Installing: .ubuntu-sdk-deploy/scopetest1/screenshot.png
13:20:35: The process "/usr/share/qtcreator/ubuntu/scripts/qtc_chroot_make2" exited normally.
Successfully built package in './com.ubuntu.developer.liu-xiao-guo.scopetest1_0.1_all.click'.
13:20:35: The process "/usr/bin/click" exited normally.
13:20:35: The click package has been created in /home/liuxg/Examples/build-scopetest1-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default
= control =
Package: com.ubuntu.developer.liu-xiao-guo.scopetest1
Version: 0.1
Click-Version: 0.4
Architecture: all
Maintainer: XiaoGuo, Liu <email address hidden>
Installed-Size: 434
Description: scopetest1

= manifest =
{
    "architecture": "all",
    "description": "A simple Unity scope that accesses local content",
    "framework": "ubuntu-sdk-14.04",
    "hooks": {
        "scopetest1": {
            "apparmor": "scopetest1.apparmor",
            "scope": "scopetest1"
        }
    },
    "installed-size": "434",
    "maintainer": "XiaoGuo, Liu <email address hidden>",
    "name": "com.ubuntu.developer.liu-xiao-guo.scopetest1",
    "title": "scopetest1",
    "version": "0.1"
}

= md5sums =
53fc545c6f30f75b8bdeede64aed64ab scopetest1.apparmor
5753d1aee6c3b16a9d3073f2782e4c22 scopetest1/com.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.ini
0ff0f14a21043354284835f5e430401f scopetest1/icon.png
7c4c236d9c45f47749ec46fd9dda8822 scopetest1/libcom.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.so
40e53d9ca223d10df1edb24985cfebe6 scopetest1/logo.png
9f4c2f055fe2979d037f44e988e09d87 scopetest1/qtc_device_debughelper.py
9f1d5be52fbbfae6cb207c221fc84ae4 scopetest1/screenshot.png

= preinst =
#! /bin/sh
echo "Click packages may not be installed directly using dpkg."
echo "Use 'click install' instead."
exit 1

= hooks =
Traceback (most recent call last):
  File "/usr/bin/click-show-files", line 51, in <module>
    review_content_hub = cr_content_hub.ClickReviewContentHub(sys.argv[1])
  File "/usr/lib/python3/dist-packages/clickreviews/cr_content_hub.py", line 27, in __init__
    ClickReview.__init__(self, fn, "content_hub")
  File "/usr/lib/python3/dist-packages/clickreviews/cr_common.py", line 86, in __init__
    control_file = self._extract_control_file()
  File "/usr/lib/python3/dist-packages/clickreviews/cr_common.py", line 145, in _extract_control_file
    fh = open_file_read(os.path.join(self.unpack_dir, "DEBIAN/control"))
  File "/usr/lib/python3/dist-packages/clickreviews/cr_common.py", line 383, in open_file_read
    orig = codecs.open(path, 'r', "UTF-8")
  File "/usr/lib/python3.4/codecs.py", line 896, in open
    file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/clickreview-ojeb7ral/DEBIAN/control'

= click-check-lint =
{
  "error": {
    "lint_control_architecture_valid_contents": {
      "manual_review": false,
      "text": "found binaries for architecture 'all': scopetest1/libcom.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.so"
    }
  },
  "info": {
    "lint_DEBIAN_extra_files": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_DEBIAN_has_control": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_DEBIAN_has_manifest": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_DEBIAN_has_md5sums": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_DEBIAN_has_preinst": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_click_files": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_click_local_extensions": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_architecture_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_architecture_specified_needed": {
      "manual_review": false,
      "text": "SKIPPED: architecture is 'all'"
    },
    "lint_control_architecture_valid": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_click_version_up_to_date": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_description_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Architecture": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Click-Version": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Description": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Installed-Size": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Maintainer": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Package": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_has_Version": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_installed_size": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_maintainer_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_package_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_structure": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_control_version_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_description": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_description_present": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_exclusive_hooks_scopetest1": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_external_symlinks": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_framework": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hardcoded_paths": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hooks_multiple_apps": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hooks_redflag_scopetest1": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hooks_scopetest1_apparmor": {
      "manual_review": false,
      "text": "OK (run check-security for more checks)"
    },
    "lint_hooks_scopetest1_apparmor_known": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hooks_scopetest1_scope_known": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_hooks_scopetest1_valid": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_icon_present": {
      "manual_review": false,
      "text": "Skipped, optional icon not present"
    },
    "lint_maintainer_domain": {
      "manual_review": false,
      "text": "OK (package domain=('com.ubuntu.developer.', 'net.launchpad.'))"
    },
    "lint_maintainer_format": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_maintainer_present": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_manifest_architecture_valid": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_md5sums": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_arch_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_arch_valid": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_format": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_matches_namespace": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_pkgname_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_package_filename_version_match": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_pkgname_valid": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_preinst": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_sdk_security_extension_scopetest1": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_title": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_title_present": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_vcs_files": {
      "manual_review": false,
      "text": "OK"
    },
    "lint_version_valid": {
      "manual_review": false,
      "text": "OK"
    }
  },
  "warn": {}
}

= click-check-content-hub =
{
  "error": {},
  "info": {},
  "warn": {}
}

= click-check-desktop =
{
  "error": {},
  "info": {
    "desktop_files_usable": {
      "manual_review": false,
      "text": "Skipped: could not find any desktop files"
    }
  },
  "warn": {}
}

= click-check-functional =
{
  "error": {},
  "info": {
    "functional_qml_applicationName_matches_manifest": {
      "manual_review": false,
      "text": "OK (not QML)"
    },
    "functional_qml_application_uses_QtWebKit": {
      "manual_review": false,
      "text": "OK"
    },
    "functional_qml_application_uses_UbuntuWebView_0.2": {
      "manual_review": false,
      "text": "OK"
    },
    "functional_qml_application_uses_friends": {
      "manual_review": false,
      "text": "OK"
    }
  },
  "warn": {}
}

= click-check-online-accounts =
{
  "error": {},
  "info": {},
  "warn": {}
}

= click-check-push-helper =
{
  "error": {},
  "info": {},
  "warn": {}
}

= click-check-scope =
{
  "error": {},
  "info": {
    "scope_ini_scopetest1_scope_required_fields": {
      "manual_review": false,
      "text": "OK"
    },
    "scope_ini_scopetest1_scope_section": {
      "manual_review": false,
      "text": "OK"
    }
  },
  "warn": {
    "scope_ini_scopetest1_scope_unknown_fields": {
      "manual_review": false,
      "text": "Unknown field in 'scopetest1/com.ubuntu.developer.liu-xiao-guo.scopetest1_scopetest1.ini': debugmode"
    }
  }
}

= click-check-security =
{
  "error": {
    "security_policy_groups_safe_scopetest1 (debug)": {
      "manual_review": false,
      "text": "(REJECT) reserved policy group 'debug': not for production use"
    },
    "security_policy_groups_scopes (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "found inappropriate policy groups: debug"
    },
    "security_template_exists (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "specified unsupported template 'ubuntu-scope-network'"
    }
  },
  "info": {
    "security_ignored_fields (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_groups_duplicates_scopetest1 (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_groups_exists_scopetest1 (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_groups_valid_scopetest1 (debug)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_vendor (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_version_exists (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_policy_version_is_highest (1.2, scopetest1.apparmor)": {
      "manual_review": false,
      "text": "1.1 != 1.2"
    },
    "security_policy_version_matches_framework (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_redflag_fields (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_template_exists (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_template_valid (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    },
    "security_template_with_policy_version (scopetest1.apparmor)": {
      "manual_review": false,
      "text": "OK"
    }
  },
  "warn": {}
}

= click-check-url-dispatcher =
{
  "error": {},
  "info": {},
  "warn": {}
}

** Errors found **
/home/liuxg/Examples/build-scopetest1-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default/./com.ubuntu.developer.liu-xiao-guo.scopetest1_0.1_all.click: FAIL
Error while building/deploying project scopetest1 (kit: UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic))
When executing step 'UbuntuSDK Click build'
13:20:36: Elapsed time: 00:25.

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

Same issue. I don't know why, but SDK always ITSELF adds "debug" policy group and itself rejects it.

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.