Re: [System Enablement] New releases Feb 2017 - week 08

2017-02-20 Thread Konrad Zapałowicz
Hey everyone, We have found a problem with udisks2 snap which makes it fail to perform auto-mount on a systems with big number of mount points. This is fixed now and following revisions are available for testing in candidate channel: udisks2 - 2.1.7-5: * Fix automount failed on system with huge

Position-independent code and Ubuntu 16.10

2017-02-20 Thread Joseph Rushton Wakeling
Hello all, Turns out my ldc2 compiler snap fails to work correctly on Ubuntu 16.10. When linking programs it falls over with the following message: /usr/bin/ld: /snap/ldc2/4/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can n

Re: New stable "core" and "ubuntu-core" snaps released

2017-02-20 Thread Selene Scriven
* Manik Taneja wrote: > * Max Brustkern wrote: > > I'd like to trigger tests to run when new core snaps are > > available in the stable and candidate channels. What's the > > best way to check that? > > i suspect that you will like to run tests after installing a > newer rev of a snap from th

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Loïc Minier
I can't really say how common this is; it's the first time I had to hack around stage-packages; it could indeed have been addressed through a plugin I was just thinking that if you add pre- post- hooks for every step of the lifecycle, then one before pull would have worked for me here; I have a so

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Kyle Fazzari
On Feb 20, 2017 9:14 AM, "Loïc Minier" wrote: On Mon, Feb 20, 2017 at 5:55 PM, Kyle Fazzari wrote: > > - 'prepare' runs before build > - 'build' replaces plugin build (including install) > - 'install' runs after build. This is useful e.g. for a Makefile with no > installation targets, or copy

Re: Can't update snapweb

2017-02-20 Thread Chris
On Mon, 2017-02-20 at 09:02 -0500, Alexandre Abreu wrote: > > > > > > > On Sun, Feb 19, 2017 at 2:24 AM, Chris wrote: > > > > > > Through out the day when it comes time for snap refresh to run I've > > > noticed that it can't update snapweb. Running manually shows > > > > > > > > > > > > chris

Re: Can't update snapweb

2017-02-20 Thread Chris
On Mon, 2017-02-20 at 11:09 +0100, David Barth wrote: > > > On Sun, Feb 19, 2017 at 2:24 AM, Chris wrote: > > Through out the day when it comes time for snap refresh to run I've > > noticed that it can't update snapweb. Running manually shows > > > > > > > > chris@localhost:~$ sudo snap refresh

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Olivier Tilloy
On Mon, Feb 20, 2017 at 5:55 PM, Kyle Fazzari wrote: > On Feb 20, 2017 6:23 AM, "Olivier Tilloy" > wrote: > > On Fri, Feb 17, 2017 at 12:11 AM, Leo Arias wrote: >> Hello! >> >> This week I've been cleaning a few of my old snaps, using some of the >> new features in more recent versions of snapcr

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Loïc Minier
On Mon, Feb 20, 2017 at 5:55 PM, Kyle Fazzari wrote: > > - 'prepare' runs before build > - 'build' replaces plugin build (including install) > - 'install' runs after build. This is useful e.g. for a Makefile with no > installation targets, or copying over some config files after the plugin > does

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Kyle Fazzari
On Feb 20, 2017 6:23 AM, "Olivier Tilloy" wrote: On Fri, Feb 17, 2017 at 12:11 AM, Leo Arias wrote: > Hello! > > This week I've been cleaning a few of my old snaps, using some of the > new features in more recent versions of snapcraft. At first I wasn't > convinced about scriptlets, but now I th

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Mark Shuttleworth
On 20/02/17 15:22, Olivier Tilloy wrote: > One thing that bit me is that I was expecting the 'install' scriptlet > to replace the `make install` step when using the make plugin, but it > doesn't. It runs `make`, `make install`, and then the install > scriptlet. Note that the documentation is reason

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Olivier Tilloy
On Fri, Feb 17, 2017 at 12:11 AM, Leo Arias wrote: > Hello! > > This week I've been cleaning a few of my old snaps, using some of the > new features in more recent versions of snapcraft. At first I wasn't > convinced about scriptlets, but now I think they are great. Take a > look at this diff: > >

Re: Can't update snapweb

2017-02-20 Thread Alexandre Abreu
> On Sun, Feb 19, 2017 at 2:24 AM, Chris wrote: > >> Through out the day when it comes time for snap refresh to run I've >> noticed that it can't update snapweb. Running manually shows >> >> chris@localhost:~$ sudo snap refresh >> error: cannot perform the following tasks: >> - Run configure hook

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Oliver Grawert
hi, Am Montag, den 20.02.2017, 16:35 +0300 schrieb Vasilisc: >  > $ test2 > /snap/test2/x1/bin/run.sh: line 4: xdg-open: command not found > > $ cat /snap/test2/current/bin/run.sh > > #!/bin/bash > > PATH="$PATH:$SNAP/usr/local/bin" > xdg-open "http://google.com"; > > >

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Vasilisc
20.02.2017 16:13, Oliver Grawert пишет: hi, Am Montag, den 20.02.2017, 14:44 +0300 schrieb Vasilisc: $ echo $PATH /home/vasilisc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: /sbin:/bin:/usr/games:/usr/local/games:/snap/bin this is not the PATH your snap sees at execution time, just

Re: The situation with xdg-open

2017-02-20 Thread Oliver Grawert
hi, Am Montag, den 20.02.2017, 16:16 +0300 schrieb Vasilisc: > 20.02.2017 15:32, Gustavo Niemeyer пишет: > > > > Hi there, > > > > The problem there is that the confined xdg-open currently depends > > on > > snapd-xdg-open, which is a server listening on dbus for the calls. > > > > We're changin

Re: The situation with xdg-open

2017-02-20 Thread Vasilisc
20.02.2017 15:32, Gustavo Niemeyer пишет: Hi there, The problem there is that the confined xdg-open currently depends on snapd-xdg-open, which is a server listening on dbus for the calls. We're changing that mechanism in the short term so snapd will implement that logic internally, precisely to

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Oliver Grawert
hi, Am Montag, den 20.02.2017, 14:44 +0300 schrieb Vasilisc: >  > > $ echo $PATH > /home/vasilisc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: > /sbin:/bin:/usr/games:/usr/local/games:/snap/bin > this is not the PATH your snap sees at execution time, just your users PATH used at login t

Re: Determining the set of snapd capabilities

2017-02-20 Thread Gustavo Niemeyer
The intent of assumes features was to try not to overuse, because it becomes hard to use and hard to maintain. The ideal candidate for a custom entry on assumes are those features that can exist in one distribution but not the other, due to constraints which are unrelated to it being merely an old

Re: xdg-open doesn't work only in xubuntu

2017-02-20 Thread Gustavo Niemeyer
Please see the response to your other message on this topic. On Mon, Feb 20, 2017 at 6:14 AM, Vasilisc wrote: > This test case does not work in Xubuntu. > - > name: test2 > version: "1" > summary: TEst > description: | > TEST > confinement: strict > architectures: [amd64]

Re: The situation with xdg-open

2017-02-20 Thread Gustavo Niemeyer
Hi there, The problem there is that the confined xdg-open currently depends on snapd-xdg-open, which is a server listening on dbus for the calls. We're changing that mechanism in the short term so snapd will implement that logic internally, precisely to remove that extra moving piece and "flakine

Re: Pi2 and 3 image improvements (GLES, GPIO)

2017-02-20 Thread Oliver Grawert
hi, Am Samstag, den 18.02.2017, 18:22 +0530 schrieb Santosh Mahto: > Hi All, > > Same issue happening with me now as faced by Alejandro, > H/W : rpi3 > I used latest core from edge channel then installed mir-libs(edge, > devmode) , mir-kiosk(edge, devmode) > and mir-kiosk-apps(edge, devmode)  with

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Vasilisc
20.02.2017 14:20, Oliver Grawert пишет: hi, Am Montag, den 20.02.2017, 13:54 +0300 schrieb Vasilisc: I got /snap/test2/x1/command-test2.wrapper: 8: exec: xdg-open: not found do you see: /snap/core/current/usr/local/bin/xdg-open on your system ? you also dont need to ship bash: /snap/core/cu

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Oliver Grawert
hi, Am Montag, den 20.02.2017, 13:54 +0300 schrieb Vasilisc: > I got > /snap/test2/x1/command-test2.wrapper: 8: exec: xdg-open: not found do you see: /snap/core/current/usr/local/bin/xdg-open on your system ? you also dont need to ship bash: /snap/core/current/bin/bash ships it ... looks to me

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Vasilisc
20.02.2017 13:34, Oliver Grawert пишет: looks like you explicitly asked for trouble here ... :) adding xdg-open (via xdg-utils) will replace/override the xdg-open that is already shipped in the core snap (which is a dbus service that hands the url to the outside of the confined space). first of

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Oliver Grawert
hi, Am Montag, den 20.02.2017, 12:29 +0300 schrieb Vasilisc: > Please ignore my previous letter. > This test case does not work in Xubuntu. > - > name: test2 > version: "1" > summary: TEst > description: | >  TEST > confinement: strict > architectures: [amd64] > > apps: >  

The situation with xdg-open

2017-02-20 Thread Vasilisc
Snapcraft.yaml - name: test2 version: "1" summary: TEst description: | TEST confinement: strict architectures: [amd64] apps: test2: command: xdg-open "http://google.com"; plugs: [network, network-bind, x11, home, unity7, gsettings] parts: integration: plugi

Re: Can't update snapweb

2017-02-20 Thread David Barth
On Sun, Feb 19, 2017 at 2:24 AM, Chris wrote: > Through out the day when it comes time for snap refresh to run I've > noticed that it can't update snapweb. Running manually shows > > chris@localhost:~$ sudo snap refresh > error: cannot perform the following tasks: > - Run configure hook of "snapw

[System Enablement] New releases Feb 2017 - week 08

2017-02-20 Thread Konrad Zapalowicz
Hey everyone, new releases of the following snaps were pushed into the candidate channel. tpm 1.2-5: * Snap aliases for all TPM tools (LP: #1653699) * Fix typo in tpm.restictpubek (LP: #1637251) udisks2 2.1.7-4: * Add automount capabilities via ciborium --- An overview of which revisions / v

xdg-open doesn't work only in xubuntu (v2)

2017-02-20 Thread Vasilisc
Please ignore my previous letter. This test case does not work in Xubuntu. - name: test2 version: "1" summary: TEst description: | TEST confinement: strict architectures: [amd64] apps: test2: command: xdg-open "http://google.com"; plugs: [network, network-bind, x

xdg-open doesn't work only in xubuntu

2017-02-20 Thread Vasilisc
This test case does not work in Xubuntu. - name: test2 version: "1" summary: TEst description: | TEST confinement: strict architectures: [amd64] apps: test2: command: xdg-open "http://google.com"; plugs: [network, network-bind, x11, home, unity7, gsettings] part