<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 15, 2015 at 8:57 AM, Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Le 15/06/2015 14:54, Oliver Grawert a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi,<br>
<br>
Am Montag, den 15.06.2015, 08:47 -0400 schrieb Michael Terry:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why not instead of a runtime solution, you just have py-snapper go<br>
through and adjust all shebangs right before creating the snap?<br>
-mt<br>
</blockquote>
this was my fallback idea ... but also the ugliest of all solutions (and<br>
possibly error prone)<br>
</blockquote>
<br></div></div>
That would solve, 90%+ of the existing issues, I agree. If we only focus on those, that makes sense.<br>
<br>
However, I can clearly see some apps doing some kind of:<br>
subprocess.call(["/usr/bin/python", "foo"])<br>
Should we care of those use cases? That's the real question I guess…</blockquote><div><br></div><div>(we could probably also find and detect such cases in Python code -- but they might be doing that in a C module or some such, agreed)</div><div><br></div><div>At some point, you have to scope the thing.  We can't fix everyone's hardcoded path code (which is often a bug, especially if "/usr" is the prefix used).</div><div><br></div><div>If we really want to be able to run 100% of our in-archive compiled code, we need a solution like overlayfs or deb2snap.</div><div><br></div><div>But if we're just talking "helping a maintainer package things up" then I think it's fine to fail in some corner cases where the maintainer can just fix their hardcoded-path bug anyway.</div><div> </div></div>-- <br><div class="gmail_signature"><div dir="ltr">-mt</div></div>
</div></div>