Merge lp:~3v1n0/unity8/mirsocket-env-set into lp:unity8

Proposed by Marco Trevisan (Treviño) on 2016-06-09
Status: Merged
Approved by: Albert Astals Cid on 2016-06-10
Approved revision: 2442
Merged at revision: 2502
Proposed branch: lp:~3v1n0/unity8/mirsocket-env-set
Merge into: lp:unity8
Diff against target: 22 lines (+13/-0)
1 file modified
data/unity8.conf (+13/-0)
To merge this branch: bzr merge lp:~3v1n0/unity8/mirsocket-env-set
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve on 2016-06-19
Albert Astals Cid (community) 2016-06-09 Approve on 2016-06-10
Review via email: mp+296944@code.launchpad.net

Commit Message

Unity8.conf: ensure MIR_SOCKET is set for future customers (such as the dash)

This ensures that if we run unity8 as standalone in Mir on X/KMS the MIR_SOCKET
is defined for other clients.

Description of the Change

Loading unity8 clients (such as the dash) in Mir or Mir on X can fail if no MIR_SOCKET is set, let's try to fallback to the standard paths.

Indicators client just creates dynamic components without being informative on failures...

* Are there any related MPs required for this MP to build/function as expected?

No

 * Did you perform an exploratory manual test run of your code change and any related functionality?

Yes, tested both running unity8 from the builddir and the system-wide installed one.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

N/A

 * If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
Albert Astals Cid (aacid) wrote :

How do i test this? i.e. how do i make it fail without this branch and then work with this branch?

review: Needs Information
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2442
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1450/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/1928
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/989
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/989
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/989
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1954
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1889
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1889
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1889
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1880/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1880
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1880/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1450/rebuild

review: Needs Fixing (continuous-integration)
Marco Trevisan (Treviño) (3v1n0) wrote :

To get unity8 running in mir on X properly without crashing you'd need lp:~gerboland/qtmir/fix-gl-on-x11, in case you don't get mouse events you'd also need lp:~3v1n0/qtmir/ensure-activate-window.

Then just
   initctl set-env -g QT_QPA_PLATFORM=mirserver
   start unity8 #(or use the ./run.sh)

Albert Astals Cid (aacid) wrote :

I did use a branch with both the fix-gl and the ensure-activate-window and this branch but unity8-dash still doesn't start up

I get

ERROR: Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >
std::exception::what: bind: L’adreça ja és en ús

The bind error translates to "address in use"

review: Needs Fixing
Marco Trevisan (Treviño) (3v1n0) wrote :

Ouch, I just pasted the wrong thing here

It was:
   initctl set-env -g QT_QPA_PLATFORM=ubuntumirclient
   start unity8 #(or use the ./run.sh)

Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass? If not, please explain why.
Yes

review: Approve
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2442
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1524/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2027
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1036
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1036
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1036
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2055
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1970
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1970
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1970
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1961/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1961
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1961/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1524/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity8.conf'
2--- data/unity8.conf 2016-03-14 07:30:54 +0000
3+++ data/unity8.conf 2016-06-09 14:14:44 +0000
4@@ -55,6 +55,19 @@
5 exec ${BINARY:-unity8} $ARGS
6
7 post-start script
8+ # If no MIR_SOCKET was defined on launch, we try to set one here
9+ if [ -z "$(initctl get-env --global UNITY_MIR_SOCKET)" ]; then
10+ if [ -S "$XDG_RUNTIME_DIR/mir_socket" ]; then
11+ mir_socket=$XDG_RUNTIME_DIR/mir_socket
12+ elif [ -S "/tmp/mir_socket" ]; then
13+ mir_socket=/tmp/mir_socket
14+ fi
15+
16+ if [ -n "$mir_socket" ]; then
17+ initctl set-env --global MIR_SOCKET="$mir_socket"
18+ fi
19+ fi
20+
21 initctl emit --no-wait indicator-services-start
22 end script
23

Subscribers

People subscribed via source and target branches