MMAL/RPI libraries needed for snappy

2017-02-06 Thread Anton Smith
Hi, I'm not 100% sure this is the root cause, but: I am trying to compile a version of ffmpeg on snappy (building a snap), that will take advantage of the raspberry pi accelerated h264 decode/encoding. While doing this, I get MMAL not found by ffmpeg. This leads me to believe that MMAL is not

Re: HowTo: How to create a snap for a Python app with networking using snapcraft in Ubuntu 16.04

2017-02-06 Thread Didier Roche
Le 06/02/2017 à 10:56, Simos Xenitellis a écrit : > Hi All, > > I wrote an article about creating a snap for an existing Python > program using the new snapcraft 2.26. Then, I uploaded to the Ubuntu > Store. > > I am looking forward to receiving feedback :-) > > Link: > https://blog.simos.info/how

Re: Which interface exposes user folder to root

2017-02-06 Thread Tonny Tzeng
Hi Jamie, Thanks for the detailed explanation, it's really helpful! However, I am hesitated to package my example files in the snap, just curious, what's the proper way to package a "development snap" which reads user given files and requires root permission? For example, I'd like to package nece

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread XiaoGuo Liu
Hi Jamie, For my sample app at https://github.com/liu-xiao-guo/helloworld-fifo, I tried to use the /tmp file to create a file, and finally I get a file on my Desktop like: root@liuxg:/tmp/snap.1000_snap.hello.fifo_TovLTW/tmp# ls anothefile It seems to me that the path is still related to the co

Re: license.txt and snap/ directory

2017-02-06 Thread Joseph Rushton Wakeling
On 07/02/17 00:24, Kyle Fazzari wrote: The fact that an empty directory is created here is a bug[1]. [1]: https://bugs.launchpad.net/snapcraft/+bug/1660890 BTW, talking of empty directories, it's not the only example I've come across: in my ldc2 snap, I wind up with an empty dir: usr/li

Re: license.txt and snap/ directory

2017-02-06 Thread Joseph Rushton Wakeling
On 07/02/17 00:24, Kyle Fazzari wrote: The fact that an empty directory is created here is a bug[1]. It should only create that directory if there's something to put in there. What Sergio is saying is this: Snapcraft-specific things, like hooks from snapcraft parts, command wrappers (eventually,

Re: license.txt and snap/ directory

2017-02-06 Thread Kyle Fazzari
On 02/06/2017 03:03 PM, Joseph Rushton Wakeling wrote: > On 06/02/17 23:40, Sergio Schvezov wrote: >> If it is not defined anywhere though, this is just a de-facto standard >> as it really is upto each person creating there snap about where to >> put it. > > Well, that's what I'm saying -- IMO i

Re: license.txt and snap/ directory

2017-02-06 Thread Joseph Rushton Wakeling
On 06/02/17 23:40, Sergio Schvezov wrote: If it is not defined anywhere though, this is just a de-facto standard as it really is upto each person creating there snap about where to put it. Well, that's what I'm saying -- IMO it should be defined (as I believe it used to be). Files owned by

Re: license.txt and snap/ directory

2017-02-06 Thread Sergio Schvezov
On Mon, 6 Feb 2017 23:09:04 +0100, Joseph Rushton Wakeling wrote: > On 06/02/17 00:00, Sergio Schvezov wrote: >> We removed all traces of license.txt from our > >>

license.txt and snap/ directory

2017-02-06 Thread Joseph Rushton Wakeling
On 06/02/17 00:00, Sergio Schvezov wrote: We removed all traces of license.txt from our documentation months ago as snapd made no use of it. That said you are free to drop license file inside the snap wherever you want. Just to follow up a little here: I'm honestly not sure I like this change.

Re: please try my golang snap

2017-02-06 Thread Michael Hudson-Doyle
On 6 February 2017 at 02:55, Shuduo Sang wrote: > > > On Fri, Feb 3, 2017 at 4:52 PM, Shuduo Sang > wrote: > >> Hi, >> >> I got following output after run it: >> >> $ go-17-mwhudson.go-17 >> /snap/go-17-mwhudson/2/gowrapper: line 3: /snap/go-17-mwhudson/2/bin/go: >> No such file or directory >>

Re: the ppp interface (and general renaming/transitioning of interfaces)

2017-02-06 Thread Jamie Bennett
On 06/02/17 at 04:06P, Oliver Grawert wrote: > hi, > Am Montag, den 06.02.2017, 15:50 +0100 schrieb Simon Fels: > >  > > I've just checked this and all pppd things are still in core. See > > https://paste.ubuntu.com/23941360/ > > > wow, this is weird, yes, it is indeed still in there, i was 100% s

Re: Snap security questions

2017-02-06 Thread Jamie Strandboge
On Fri, 2017-02-03 at 19:59 +0800, James Henstridge wrote: > On 1 February 2017 at 22:46, Jamie Strandboge wrote: > > > > On Wed, 2017-02-01 at 20:33 +0800, James Henstridge wrote: > > > > > > 2. Use of the libapparmor aa_is_enabled and aa_query_label APIs > > > > > > When deciding whether to d

Re: Issue with oneshot daemon

2017-02-06 Thread Jamie Strandboge
On Mon, 2017-02-06 at 14:04 -0500, MikeB wrote: > In my snapcraft.yaml, I define a oneshot daemon. > > >   opx-init: > command: usr/bin/opx-init > daemon: oneshot > > When I install the snap on Ubuntu-Core, I see the following in the syslog... > > Feb  6 18:46:49 localhost systemd[1]: >

Re: Issue with oneshot daemon

2017-02-06 Thread Sergio Schvezov
On Mon, 6 Feb 2017 14:04:58 -0500, MikeB wrote: > In my snapcraft.yaml, I define a oneshot daemon. > > > opx-init: > command: usr/bin/opx-init > daemon: oneshot > > When I install the snap on Ubuntu-Core, I see the following in the syslog... > > Feb 6 18:46:49 localhost systemd[1]: > sna

Issue with oneshot daemon

2017-02-06 Thread MikeB
In my snapcraft.yaml, I define a oneshot daemon. opx-init: command: usr/bin/opx-init daemon: oneshot When I install the snap on Ubuntu-Core, I see the following in the syslog... Feb 6 18:46:49 localhost systemd[1]: snap.openswitch-x870.opx-init.service: Service has Restart= setting o

Re: Reject snaps that are identical to previous revision?

2017-02-06 Thread Spencer
Okay, then the snaps were different for some reason on my end. Good to know this check is already in place. Sent from my iPhone > On Feb 6, 2017, at 8:27 AM, Daniel Manrique > wrote: > >> On Mon, Feb 6, 2017 at 2:05 AM, Spencer Parkin >> wrote: >> So, I'm sure it comes as no surprise to th

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Jamie Strandboge
On Mon, 2017-02-06 at 09:25 -0800, Kyle Fazzari wrote: > > On 02/06/2017 09:21 AM, Jamie Strandboge wrote: > > > > On Sun, 2017-02-05 at 08:04 +0800, XiaoGuo Liu wrote: > > > > > > Hi Oli, > > > > > > Does it mean all of the snaps have the same /tmp or each snap has its own > > > /tmp? I am a l

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Luca Dionisi
On Mon, Feb 6, 2017 at 6:19 PM, Jamie Strandboge wrote: > On Sat, 2017-02-04 at 15:53 +0100, Luca Dionisi wrote: >> Although I wouldn't spend too much on this IPC issue (the IPC task is >> needed only for a testing tool that I won't deploy anywhere) in order >> to go ahead I am going to explore ot

Re: Which interface exposes user folder to root

2017-02-06 Thread Jamie Strandboge
On Mon, 2017-02-06 at 23:10 +0800, Tonny Tzeng wrote: > Hi, > > The 'home' interface provides non-hidden files access to the snap defined > commands, but what if specific commands need to be run with 'sudo', how can > I read files from my user folder? For example, from below syslog, I run my > sna

Re: unity8-session snap on pi2

2017-02-06 Thread Víctor R . Ruiz
Hi: On Mon, Feb 6, 2017 at 3:39 PM, Oliver Grawert wrote: > far from being usable or anything ... > but... > http://imgur.com/a/ddqjQ > > shows the unity8-session snap running on top of Ubuntu Core 16 on a pi2 > on todays edge image :) Oh, this is really nice. Congratulations, Oliver! Lookin

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Kyle Fazzari
On 02/06/2017 09:21 AM, Jamie Strandboge wrote: > On Sun, 2017-02-05 at 08:04 +0800, XiaoGuo Liu wrote: >> Hi Oli, >> >> Does it mean all of the snaps have the same /tmp or each snap has its own >> /tmp? I am a little bit confused about this. >> > > You might be confused because the behavior cha

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Jamie Strandboge
On Sun, 2017-02-05 at 08:04 +0800, XiaoGuo Liu wrote: > Hi Oli, > > Does it mean all of the snaps have the same /tmp or each snap has its own > /tmp? I am a little bit confused about this. > You might be confused because the behavior changed. For a long time, each snap *command* had its own /tmp

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Jamie Strandboge
On Sat, 2017-02-04 at 15:53 +0100, Luca Dionisi wrote: > Although I wouldn't spend too much on this IPC issue (the IPC task is > needed only for a testing tool that I won't deploy anywhere) in order > to go ahead I am going to explore other possibilities. I want to  try > with DBus. Do you know of

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Jamie Strandboge
On Sat, 2017-02-04 at 12:00 +0100, Luca Dionisi wrote: > On Sat, Feb 4, 2017 at 11:43 AM, Oliver Grawert wrote: > > > > hi, > > Am Freitag, den 03.02.2017, 21:04 +0100 schrieb Luca Dionisi: > > > > > > What is the best place to write (and read) a temporary FIFO file from > > > a confined snap ap

unity8-session snap on pi2

2017-02-06 Thread Oliver Grawert
hi, far from being usable or anything ...  but...  http://imgur.com/a/ddqjQ shows the unity8-session snap running on top of Ubuntu Core 16 on a pi2 on todays edge image :) ciao oli signature.asc Description: This is a digitally signed message part -- Snapcraft mailing list Snapcraft@li

Re: Reject snaps that are identical to previous revision?

2017-02-06 Thread Daniel Manrique
On Mon, Feb 6, 2017 at 2:05 AM, Spencer Parkin wrote: > So, I'm sure it comes as no surprise to the readers of this mailing list > that I am a complete moron; and as further evidence of that, I recently > uploaded a "new" snap that was actually identical to the revision I already > had released to

Which interface exposes user folder to root

2017-02-06 Thread Tonny Tzeng
Hi, The 'home' interface provides non-hidden files access to the snap defined commands, but what if specific commands need to be run with 'sudo', how can I read files from my user folder? For example, from below syslog, I run my snap with 'sudo' to enable the bluetooth, but once I run the snap wit

Re: the ppp interface (and general renaming/transitioning of interfaces)

2017-02-06 Thread Oliver Grawert
hi, Am Montag, den 06.02.2017, 15:50 +0100 schrieb Simon Fels: >  > I've just checked this and all pppd things are still in core. See > https://paste.ubuntu.com/23941360/ > wow, this is weird, yes, it is indeed still in there, i was 100% sure it was dropped together with the watchdog package when

Re: Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Oliver Grawert
hi, Am Montag, den 06.02.2017, 14:09 + schrieb Sunny Bhayani: >  > > > > does lsmod show you the module for your wlan device loaded ? do > you see > > > > any errors in dmesg if you load it manually ? > > > >  > lsmod just shows us the squashfs module. > We manually tried to copy the Wifi kerne

Re: the ppp interface (and general renaming/transitioning of interfaces)

2017-02-06 Thread Simon Fels
On 06.02.2017 15:48, Simon Fels wrote: > On 06.02.2017 14:36, Oliver Grawert wrote: >> hi, >> >> on the core images we currently provide a ppp interface that used to be >> used for pppd access in 15.04 images and also gives access to >> /dev/tty[0-9]. >> >> with series 16 the pppd binary was droppe

Re: the ppp interface (and general renaming/transitioning of interfaces)

2017-02-06 Thread Simon Fels
On 06.02.2017 14:36, Oliver Grawert wrote: > hi, > > on the core images we currently provide a ppp interface that used to be > used for pppd access in 15.04 images and also gives access to > /dev/tty[0-9]. > > with series 16 the pppd binary was dropped from the core snap and a > pppd snap was add

Re: HowTo: How to create a snap for a Python app with networking using snapcraft in Ubuntu 16.04

2017-02-06 Thread XiaoGuo Liu
Hi Simos, Thanks! It is really nice to see the tutorial, and it is very detailed. Best regards, XiaoGuo On Mon, Feb 6, 2017 at 5:56 PM, Simos Xenitellis wrote: > Hi All, > > I wrote an article about creating a snap for an existing Python > program using the new snapcraft 2.26. Then, I uploaded

Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Sunny Bhayani
Hi Oliver, Thank you for your time. > > We are using Eragon410 board to use the Ubuntu-Core OS on it. The Eragon410 > > board is based on Dragonboard410c board. > > > > We have tried to follow all the steps mentioned by the Canonical Team, to > > build our gadget snap and kernel snap (based on

the ppp interface (and general renaming/transitioning of interfaces)

2017-02-06 Thread Oliver Grawert
hi, on the core images we currently provide a ppp interface that used to be used for pppd access in 15.04 images and also gives access to /dev/tty[0-9]. with series 16 the pppd binary was dropped from the core snap and a pppd snap was added to the store which provides all the ppp functionality, b

Re: Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Oliver Grawert
hi, Am Montag, den 06.02.2017, 13:21 +0100 schrieb Oliver Grawert: >  > > ISSUE 4: > > We built the Dragonboard410c kernel source, Gadget snap and thereby > > created the Ubuntu OS snap. But when we boot the Ubuntu Core, we > > get > > this error: > > http://pastebin.com/h2eJG1yw > did you properly

Re: Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Oliver Grawert
hi, On Mo, 2017-02-06 at 13:21 +0100, Oliver Grawert wrote: > > we get this error: > > http://pastebin.com/h2eJG1yw > did you properly list the required firmware to be included with the > initrd in the "kernel-initrd-fws:" option of your kernel snap > snapcraft.yaml ? > oops, sorry, the name of t

Re: Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Oliver Grawert
hi, On Sa, 2017-02-04 at 09:20 +, Sunny Bhayani wrote: >  > ISSUE 1: > .. > We are able to see the firmware binaries for Wifi in the rootfs at > "/lib/firmware" where they are expected. But we are not able to see > the Wifi interface (wlan0). > does lsmod show you the module for your wlan devi

Re: Snapcraft lifecycle documentation?

2017-02-06 Thread Sergio Schvezov
On Fri, 3 Feb 2017 16:45:33 -0800, Ruddick Lawrence wrote: > Hi, > > Is there any documentation on the details of what happens during the > different lifecycles (pull, build, stage, prime, snap)? I couldn't find any > outside of https://snapcraft.io/docs/reference/snapcraft-command, and there > wer

Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

2017-02-06 Thread Sunny Bhayani
Hi, We are using Eragon410 board to use the Ubuntu-Core OS on it. The Eragon410 board is based on Dragonboard410c board. We have tried to follow all the steps mentioned by the Canonical Team, to build our gadget snap and kernel snap (based on the Dragonboard410c). Thereby, we are able to gen

Snapcraft lifecycle documentation?

2017-02-06 Thread Ruddick Lawrence
Hi, Is there any documentation on the details of what happens during the different lifecycles (pull, build, stage, prime, snap)? I couldn't find any outside of https://snapcraft.io/docs/reference/snapcraft-command, and there were a few things discovered by trial and error that surprised me (such a

Re: Snap icon in the Ubuntu Store

2017-02-06 Thread David Barth
On Mon, Feb 6, 2017 at 9:43 AM, XiaoGuo Liu wrote: > Hi Kyle, > > Thanks for your reply. I cannot remember it exactly whether I set an icon > for it or not. But this is definitely a confusing part. > > I think snapweb may have a bug for it since I change another picture in my > package, but it is

HowTo: How to create a snap for a Python app with networking using snapcraft in Ubuntu 16.04

2017-02-06 Thread Simos Xenitellis
Hi All, I wrote an article about creating a snap for an existing Python program using the new snapcraft 2.26. Then, I uploaded to the Ubuntu Store. I am looking forward to receiving feedback :-) Link: https://blog.simos.info/how-to-create-a-snap-for-a-python-app-with-networking-using-snapcraft-

Re: Snap icon in the Ubuntu Store

2017-02-06 Thread XiaoGuo Liu
Hi Kyle, Thanks for your reply. I cannot remember it exactly whether I set an icon for it or not. But this is definitely a confusing part. I think snapweb may have a bug for it since I change another picture in my package, but it is not reflected at all after the new installation. Best regards,

RE: Using docker for clean builds of classic snaps

2017-02-06 Thread VanCutsem, Geoffroy
> -Original Message- > From: snapcraft-boun...@lists.snapcraft.io [mailto:snapcraft- > boun...@lists.snapcraft.io] On Behalf Of Joseph Rushton Wakeling > Sent: Sunday, February 5, 2017 11:52 PM > To: snapcraft@lists.snapcraft.io > Subject: Re: Using docker for clean builds of classic snap