Re: classic 32 bit application

2017-04-04 Thread Loïc Minier
or some reason, create your own wrapper to launch your executable by calling the runtime linker directly (run "/lib/ld-linux.so.2" to get help output or see man page). Hope this helps! - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at:

Re: Issues creating webapps snaps with stric confinement

2017-03-31 Thread Loïc Minier
Hi Vincent, What plugs did you use? This is a quick&dirty snap I assembled recently which I tested successfully on top of X11: https://github.com/lool/soracom-console-snap/blob/master/snapcraft.yaml Cheers, - Loïc On Fri, Mar 31, 2017 at 3:28 PM, Vincent JOBARD wrote: > Hi Everyone > > I just

Re: udev rules

2017-03-21 Thread Loïc Minier
Hi! On Mon, Mar 20, 2017 at 8:29 PM, Jamie Strandboge wrote: > The aksusbd case seems like it could be covered by existing interface > techniques. The providing snap slots the hasp interface and that interface > could > add udev rules that point to (the snappy command aliased) > /snap/bin/aksusb

udev rules

2017-03-20 Thread Loïc Minier
gging requirements, not sure about the latter. Perhaps I should add these to some existing design doc? Thanks, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Triggering CI/snap builds on changes to snapcraft parts

2017-03-18 Thread Loïc Minier
x27;s the best practice to trigger snap builds/CI builds when changes are pushed to build-dependencies / parts of a snap? Should there be a way to parse part sources in snapcraft.yaml and check whether these have changed? Thanks! - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcra

Re: build.snapcraft.io and GitHub groups

2017-03-17 Thread Loïc Minier
Hi! Support for Github orgs in build.snapcraft.io is still WIP: https://github.com/canonical-ols/build.snapcraft.io/issues/132 Cheers, - Loïc Minier On Sat, Mar 18, 2017 at 12:49 AM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > Hello all, > > I t

Re: Netplan replug function is incompatible with ath9k_htc module

2017-03-14 Thread Loïc Minier
1) merge proposal against netplan 2) netplan upload to latest Ubuntu 3) backport to LTS / PPA against which Core images are built 4) next image build (every ~2w?) Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.co

Re: pro tip: use scriptlets instead of custom plugins

2017-02-20 Thread Loïc Minier
; I have a solution in place, so this was just FYI On Mon, Feb 20, 2017 at 6:33 PM, Kyle Fazzari wrote: > 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 bef

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: IPC between snaps

2017-02-09 Thread Loïc Minier
Hi, Yes, this is typically how you allow a snap to talk to snapd or docker daemon or lxd. You need a new interface to grant access to this socket path. If you'd like some examples or look at existing ones, grep for socket under github.com/snapcore/snapd/interfaces. Cheers, - Loïc On Thu, Feb 9,

Re: snapd available in Trusty Tahr

2017-02-08 Thread Loïc Minier
Hi! Awesome! Would be nice if this goodness would also be built for arm64: libseccomp in xenial/xenial-updates wasn't attempted on arm64 albeit xenial-backports carries an arm64 build, and snapd is blocked on that. Cheers, - Loïc On Tue, Jan 31, 2017 at 2:01 PM, Jamie Bennett wrote: > Hi, > >

Re: Using docker for clean builds of classic snaps

2017-02-05 Thread Loïc Minier
Hi Joseph, On Sun, Feb 5, 2017 at 3:13 PM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > $ sudo docker run -v $PWD:$PWD -w $PWD [my-image-id] snap install core && > snapcraft clean && snapcraft > 2017/02/05 14:07:35.998824 main.go:220: WARNING: cannot create syslog > logger > e

Re: dlopen cannot load shared library

2017-02-03 Thread Loïc Minier
see system libraries from the core snap which doesn't contain X11. I suggest you embed X11 and other libs that your dlopen-ed library depends on. Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: Using docker for clean builds of classic snaps

2017-02-02 Thread Loïc Minier
There are a bunch of Docker images providing snapcraft , unfortunately they are all behind. These should be autobuilt instead of manually updated, in the mean time I suggest you build your own (rel

Re: Relationship between snaps and containers, if any

2017-01-25 Thread Loïc Minier
you would want to run containers on top of an all snap system: when your workload is already packaged as a container, or when you want to use the resource limits featured in Docker or LXD (e.g. limit network usage, CPU usage etc.). Cheers, - Loïc Minier On Wed, Jan 25, 2017 at 12:53 AM, Luther G

Re: Yet more issues snapping

2017-01-16 Thread Loïc Minier
achieved by running the 16.04 Docker container. Cheers, - Loïc Minier On Mon, Jan 16, 2017 at 11:26 PM, Gareth France < gareth.fra...@cliftonts.co.uk> wrote: > Having given up all hope of ever being able to do a simple thing like > include pygtk in a snap I have rebuilt my package using

Locally extending trusted certificates

2017-01-06 Thread Loïc Minier
ns and I'd to hear how people think this should best be addressed in the snap/snapd world. Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: Development environment for debs and snaps for raspberry pi 3?

2016-12-15 Thread Loïc Minier
> > --Greg > > > On Tue, Dec 13, 2016 at 3:31 PM, Loïc Minier > wrote: > >> Hi! >> >> On Tue, Dec 13, 2016 at 8:46 PM, Dan Kegel wrote: >> >>> 2) if one were to want to use the official snappy core ubuntu 16.04 >>> for raspberry pi 3 a

Re: Development environment for debs and snaps for raspberry pi 3?

2016-12-13 Thread Loïc Minier
t inside lxd? > On top of what David Callé said about the classic snap, installing the LXD or Docker snaps and running snapcraft in a container would certainly work! I haven't tried running a full desktop and would love to hear how that fares :-) Cheers, - Loïc Minier -- Snapcraft ma

Re: docker snap not working

2016-12-06 Thread Loïc Minier
t; On 06/12/16 05:05, Manik Taneja wrote: > > > > On Dec 6, 2016, at 4:51 AM, Loïc Minier wrote: > > Hi, > > On Tue, Dec 6, 2016 at 3:49 AM, Peng Liu wrote: > >> There is some known issue of the docker snap, check the google doc for >> detailed inf

Re: docker snap not working

2016-12-06 Thread Loïc Minier
hostfs/sys The fix is in snap-confine git and is planned for upload this Friday. Best regards, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: is there an Avahi (mDNS) service snap?

2016-11-29 Thread Loïc Minier
Hi! I suggest you look at the short mDNS implementation used by snapweb; it relies on a Go module called github.com/presotto/go-mdns-sd: https://github.com/snapcore/snapweb/blob/master/avahi/avahi.go Cheers, - Loïc Minier PS: I've sent the same reply to your ask.u.c post :-) On Tue, N

Re: Docker to snappy

2016-11-28 Thread Loïc Minier
#x27;s likely simpler to snap Discourse! Have you tried this? Did you face some questions that we can perhaps help you with? Thanks for your work on getting Discourse on snappy systems! :-) Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: Snap hangs when accessing a special /dev/file (/dev/vcio) [ubuntu-core 16 / RaspberryPi2]

2016-11-07 Thread Loïc Minier
There is a GPIO interface and it was going through some fixes a couple of weeks ago as it would only work when first connected, but not after a reboot. On Mon, Nov 7, 2016 at 8:53 AM, Didier Roche wrote: > Le 06/11/2016 à

Re: [snaps/deb] Cross dependencies / forward compatibility between debs & snaps?

2016-11-05 Thread Loïc Minier
. It's exactly this kind of issues that NVidia is trying to solve with their fork! Obviously these are all long shots and I didn't provide any practical answer on improving deb to snap or snap to deb transition; this is a larger question not specific to the docker snap that we need to keep working on. Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: Confined Docker snap available

2016-11-01 Thread Loïc Minier
Hi, What's the output of snap --version? Thanks! - Loïc Minier On Tue, Nov 1, 2016 at 4:21 AM, Peng Liu wrote: > Hi Loïc, > > I encountered some errors when I tried to connect the interfaces, for > example: >

Re: Confined Docker snap available

2016-10-21 Thread Loïc Minier
Hi, On Fri, Oct 21, 2016 at 12:28 AM, Loïc Minier wrote: > > Very nice. What's the ETA on snap-declaration? > > (have to check on that; it's either just an admin thing or "soon") > So it's now exposed in the store web UI for reviews since a day or two. I

Re: Confined Docker snap available

2016-10-20 Thread Loïc Minier
On Thu, Oct 20, 2016 at 8:18 PM, Dustin Kirkland wrote: > > Because the docker.sock path is hardcoded in a lot of images, this snap > > conflicts with docker debs, so make sure you remove them first: > > sudo apt purge docker docker-engine > > Hmm, that feels like something Snaps should learn to

Re: Symbolic links inside .deb turning into directories

2016-10-19 Thread Loïc Minier
https://bugs.launchpad.net/snapcraft/+bug/1634813 On Wed, Oct 19, 2016 at 8:42 AM, Didier Roche wrote: > Le 18/10/2016 à 20:30, MikeB a écrit : > > Hi, > > > Hey Mike, > > > > I'm trying to use the new feature that allows debian packages to be used > as src. > > I have a Debian package that inst

Confined Docker snap available

2016-10-18 Thread Loïc Minier
gle.com/document/d/1JHa6tkuR9PtpnAVVmAJIAKuyKBy8E9ZkvG5Wbc6HZSY/edit?usp=sharing> ! Have fun and please report issues against https://github.com/docker-snap/docker Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lis

Re: add-apt-repository and snapcraft cleanbuild?

2016-10-16 Thread Loïc Minier
Until the feature gets added to snapcraft, you can use a simple shell script to start a container and setup the relevant deps, e.g. (script by mvo): https://raw.githubusercontent.com/mvo5/snapweb/feature/cleanbuild/cleanbuild.sh On Sat, Oct 15, 2016 at 8:26 PM, Dan Kegel wrote: > Hey all, > Day

Re: Removing a key

2016-10-13 Thread Loïc Minier
It is likely deleting keys isn't implemented yet: https://myapps.developer.ubuntu.com/docs/api/account.html In the mean time, I suggest you just register and use another key. Cheers, - Loïc Minier On Thu, Oct 13, 2016 at 11:54 PM, Luke Williams wrote: > Hello, > > That didn’t

Re: Different values of environment variables during build time and run time, eg. JAVA_HOME and PATH

2016-10-11 Thread Loïc Minier
Hi, The go plugin might be a good starting place to see how to achieve this; it uses its own _run() using a custom build environment rather than relying on the defaults. So in the ant plugin, change calls to self.run() with calls to self._run and define _run with your overloaded environment. Che

Re: Peculiar configure behaviour with cleanbuild

2016-10-09 Thread Loïc Minier
age/usr/lib -L/home/ubuntu/functy/stage/lib/x86_64-linux-gnu -L/home/ubuntu/functy/stage/usr/lib/x86_64-linux-gnu conftest.cpp -lglut >&5 ./configure: line 1588: g++: command not found After adding g++ to build-packages, configure works for me and build completes fine :-) Cheers, - Loïc Mini

Re: My second snap ;-)

2016-10-02 Thread Loïc Minier
Hi, Right; matplotlib expects matplotlibrc to be installed. Looking at matplotlib/__init__.py, you can see rc_params() calls matplotlib_fname() to get the default config filename. The search order there is: - `$PWD/matplotlibrc` - `$MATPLOTLIBRC/matplotlibrc` - `$MPLCONFIGDIR/matpl

Re: Announce: DOSBox snapped

2016-10-02 Thread Loïc Minier
Oh nice, that sounds pretty useful to wrap a bunch of DOS games; is this reusable as a snapcraft part to wrap games around? Thanks! - Loïc Minier On Sun, Oct 2, 2016 at 12:05 AM, Jacob Zimmermann wrote: > Hi > > I just added another piece to my collection of snapped emulators: &g

Re: Docker image for building Ubuntu (amd64/i386/armhf/arm64) snaps

2016-09-22 Thread Loïc Minier
Hi! Is there a big difference with the https://hub.docker.com/r/snapcore/snapcraft/ image? Perhaps we can merge the two to avoid confusion from end-users? Thanks, - Loïc On Thu, Sep 22, 2016 at 3:24 PM, Rex Tsai wrote: > > This image includes toolchains and snapcraft to help app developers (an

Re: Build snaps in container

2016-09-13 Thread Loïc Minier
heers, - Loïc On Tue, Sep 13, 2016 at 4:31 AM, YC Cheng wrote: > Hi Loic, > > Maybe you already knew that https://hub.docker.com/r/vicamo/ubuntu/tags/ > have both > > xenial-arm64 and xenial-armhf tag. > > YC > > 2016-09-12 23:00 GMT+08:00 Loïc Minier : > >>

Re: Build snaps in container

2016-09-12 Thread Loïc Minier
Hi folks, Could we also get the docker container snapcore/snapcraft built for ARM? (I'm using classic mode for now though.) Thanks! - Loïc Minier On Tue, Aug 23, 2016 at 2:48 PM, Sergio Schvezov < sergio.schve...@canonical.com> wrote: > > > El 23/08/16 a las 07:33, Loïc Min

Re: Access denied to /dev/ttyUSB0

2016-09-07 Thread Loïc Minier
Ok, then this should work: sudo snappy hw-assign yoursnap /dev/ttyUSB0 On Wed, Sep 7, 2016 at 4:41 PM, Jenny Murphy wrote: > Yes I am using Ubuntu 15.04 > On 7 Sep 2016 15:24, "Zygmunt Krynicki" > wrote: > >> >> > On 7 Sep 2016, at 16:05, Loïc Minier wr

Re: Access to a Serial Port using Java RXTX library

2016-09-07 Thread Loïc Minier
paths were not being set up correctly for me. > > I changed it to > case $JAVA_VERSION in > 1.2*|1.3*|1.4*|1.5*|1.7*) > > Thanks a million for your suggestion. > > Jenny > > > On 7 September 2016 at 15:01, Loïc Minier wrote: > >> Hi, >> >> I'm

Re: Access denied to /dev/ttyUSB0

2016-09-07 Thread Loïc Minier
Hi, You need to use: plugs: [serial-port] In your snapcraft.yaml; then you also have to connect your snap to that interface manually as it's not autoconnected; check "snap interfaces" to see which plugs and slots are connected. Cheers, - Loïc Minier On Wed, Sep 7, 2016 at

Re: Access to a Serial Port using Java RXTX library

2016-09-07 Thread Loïc Minier
Hi, I'm guessing the Java version change solved the rebuilding problem? Cheers, - Loïc Minier On Wed, Sep 7, 2016 at 3:32 PM, Jenny Murphy wrote: > Hi all, > This is solved . The problem was to do with the Java versions supported > by RXTX. > Jenny > > On 7 Septemb

Re: Access to a Serial Port using Java RXTX library

2016-09-06 Thread Loïc Minier
Hi Jenny, The INSTALL file suggests that RXTX implements custom locking which requires OS integration; because you want your app to be the only one accessing the serial port(s), you should build RXTX with --disable-lockfiles to disable this f

Re: Snappy takes long time to boot when no network

2016-09-01 Thread Loïc Minier
Hi Yann, Following up from our IRC exchange :-) What would you expect to be working before network is up? Is it startup of the snaps' services, or the console, or the Snapweb web UI etc. [1]? Cheers, - Loïc [1] of course, still need to address Snapweb not starting properly with no network On

Re: New ubuntu-device-flash cannot use own gadget snap?

2016-08-31 Thread Loïc Minier
sible but because ubuntu-device-flash ought to be replaced by ubuntu-image soon it's probably not worth addressing right now.) Cheers, - Loïc Minier On Wed, Aug 31, 2016 at 8:27 PM, Loïc Minier wrote: > Yep; but the failure in kpartx didn't seem specific to local vs remote > sna

Re: New ubuntu-device-flash cannot use own gadget snap?

2016-08-31 Thread Loïc Minier
w. Cheers, - Loïc On Wed, Aug 31, 2016 at 12:26 PM, Simon Fels wrote: > On 31.08.2016 12:16, Loïc Minier wrote: > > Works for me: > > > > $ sudo -E UBUNTU_DEVICE_FLASH_IGNORE_UNSTABLE_GADGET_DEFINITION=1 > > /snap/bin/ubuntu-device-flash --verbose core 16 -o snappy.img --chan

Re: New ubuntu-device-flash cannot use own gadget snap?

2016-08-31 Thread Loïc Minier
Works for me: $ sudo -E UBUNTU_DEVICE_FLASH_IGNORE_UNSTABLE_GADGET_DEFINITION=1 /snap/bin/ubuntu-device-flash --verbose core 16 -o snappy.img --channel edge --gadget pc --kernel pc-kernel --os ubuntu-core Determining gadget configuration 836.00 KB / 836.00 KB [=

Re: Does anyone know how to build snap for ARM architecture?

2016-08-23 Thread Loïc Minier
Hi, On Wed, Aug 24, 2016 at 7:34 AM, XiaoGuo Liu wrote: > I just now successfully used launchpad.net to build snaps for ARM > architecture. However, the precondition is that it works on my desktop > well. I am thinking whether there is an alternative way to compile snaps > for armhf in view of t

Re: Build snaps in container

2016-08-23 Thread Loïc Minier
ft/ https://hub.docker.com/r/sergiusens/snapcraft/ I guess we should consolidate these and have some kind of official Ubuntu namespace and images. Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: How do I get a postinst stage properly executed - traceroute will not install correctly

2016-08-09 Thread Loïc Minier
ll/remove/upgrade. If we had that piece of data, we could process it when unpacking a .deb without running the postinst as root. But because right now this information is buried inside a shell script which could be of any form and expects to be run as root, we can't use it without resortin

Re: How do I get a postinst stage properly executed - traceroute will not install correctly

2016-08-02 Thread Loïc Minier
move the binaries to the expected place!) Alternatively, you could also build traceroute from source instead of reusing the .deb. Cheers, - Loïc Minier -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft