<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 21, 2015 at 6:49 AM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">for the use cases robert and dider describe we have the framework<br>
concept ... snaps can depend on frameworks ....<br>
<br>
i.e. in the request above i would define:<br>
<br>
- CUPS framework (to be re-used in all desktop snaps)<br></blockquote><div><br></div><div>Robert, you mentioned needing a socket.  Look at lp:~mir-team/mir/snappy-packaging for an example of setting up apparmor exceptions for a shared socket (in Mir's case, /run/mir_socket).</div><div><br></div><div>You also mentioned a library.  I'd not bother with trying to share that via the framework.  Just have snaps build libcups into themselves.  Deduplication will solve the space problem.</div><div><br></div><div>And for ease-of-bootstrapping, maybe check out deb2snap (<a href="https://github.com/mikix/deb2snap">https://github.com/mikix/deb2snap</a>).  I don't want to recommend it as a turnkey solution.  But it may make it easier to get up and running when you're starting with software that's already packaged in Ubuntu.  Again, you can see the branch above for an example of making a framework with it.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- Mir framework<br>
- XMir framework (for legacy apps, but not inside the Mir framework so<br>
low end phones and embedded installscan drop it)</blockquote><div><br></div><div>I would argue XMir doesn't need to be a framework-level entity (or at least, we don't want to make X seem so well supported, preferring to push people to use a toolkit that supports Mir directly).</div><div><br></div><div>I've successfully made snaps that depended on a Mir framework and just bundled Xorg/XMir into their own snap.  </div><div><br></div><div>-mt</div></div>
</div></div>