<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 24, 2015 at 2:44 PM, <span dir="ltr"><<a href="mailto:robert_joslyn@selinc.com" target="_blank">robert_joslyn@selinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Continuing my desire to package Postgres in a snap, I came across another<br>
issue. Postgres has several binaries that contain underscores that I need<br>
to use in my snap. Presently, underscores are not allowed in binary or<br>
service names. Sergio mentioned on GitHub that this is due to how the<br>
APP_ID is generated.<br>
<br>
Are there any plans to remove this restriction? I can work around this,<br>
but it's an unfortunate limitation.<br></blockquote><br></div><div class="gmail_quote">Declaring a binary exposes said binary outside of the package, so say that in my snap I have<br><br></div><div class="gmail_quote">$ find . <br></div><div class="gmail_quote">bin/binary_1<br></div><div class="gmail_quote">bin/binary_2<br></div><div class="gmail_quote">bin/service<br></div><div class="gmail_quote">lib/...<br>...<br><br></div><div class="gmail_quote"><br>Say I want to expose binary_2 to the outside world, then in snapcraft.yaml, I'd write<br><br></div><div class="gmail_quote">name: mysnap<br></div><div class="gmail_quote">binaries:<br></div><div class="gmail_quote"> binary-2:<br></div><div class="gmail_quote"> exec: bin/binary_2<br><br></div><div class="gmail_quote">Once this snap is installed on the system, it would be accessed as:<br><br></div><div class="gmail_quote">$ mysnap.binary-2<br><br></div><div class="gmail_quote">Now, if bin/service wants to call binary_2, it doens't need to invoke its external representation, it can just execve binary_2 and it should all work fine.<br><br></div><div class="gmail_quote">Hope this helps<br></div><div class="gmail_quote">Sergio<br><br></div><div class="gmail_quote">PS: sorry for insisting, but askubuntu :-)<br></div></div></div>