<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Hi Pavel, <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
The flatpak build script and a simple makefile is at&nbsp; <br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<a href="https://gist.github.com/goldstar611/cb0037ee29ae315bb2f0211e69d95799">https://gist.github.com/goldstar611/cb0037ee29ae315bb2f0211e69d95799</a>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
It is not very refined but it works.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
I'd be interested in testing the AppImage and providing feedback. Let me know how to get it once it exists :)<span id="ms-outlook-android-cursor"></span><br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Tony <br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Pavel Milanes Costa (CO7WT) &lt;pavelmc@gmail.com&gt;<br>
<b>Sent:</b> Wednesday, July 8, 2020 10:06:17 PM<br>
<b>To:</b> Tony Fuller &lt;goldstar611@hotmail.com&gt;; chirp_devel@intrepid.danplanet.com &lt;chirp_devel@intrepid.danplanet.com&gt;<br>
<b>Subject:</b> Re: [chirp_devel] &quot;Success&quot; to port Chirp as a stand alone app for Ubuntu Bionic...</font>
<div>&nbsp;</div>
</div>
<div>
<p>Hi Tony et al<br>
</p>
<p>I have a some experience with pyinstaller and linuxdeploy to release multi-platform tools in other projects (Win &#43; Lin &#43; Mac) as an quasi standalone app; with some tweaks you can make it work flawlessly, the trick is to use the lowest version kernel available,
 being the &quot;standard&quot; the latest LTS version of the OS, in Ubuntu ecosystem that's 16.04</p>
<p>The trick is the libc version and the full backwards compatibility of new version with older ones, with time and testing maybe using 14.04 as base will fill all the gaps<br>
</p>
<p>I can try to play with it locally and then with travis-ci for the automation process</p>
<p>I'm eager to see/test the flatpack script, can anyone point me to it?</p>
<p>IMHO the appimage format is better than flatpack/snap in this scenario, as it's 100% portable, aka: no need to install anything or tied to a particular distro/version if created wisely</p>
<p>I will be testing the two variants, pyinstaller &amp; appimage, as usual, little free time, but I will keep the list posted on any advance and will be grateful of feedback on tests.</p>
<p>Cheers, Pavel<br>
</p>
<div class="x_moz-cite-prefix">El 3/7/20 a las 14:38, Tony Fuller escribió:<br>
</div>
<blockquote type="cite">
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Hi Pavel, <br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Don't forget Ubuntu Focal is only one of many distributions affected by the python2 support drop.<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Things may have changed but when I played with pyinstaller before I found the resulting executable was not compatible across Ubuntu versions (i.e. a executable created on 18.04 wasn't compatible with 16.04 etc.) Some variations may work but I think the dynamic
 link to glibc was one root cause. What this implies is the build system needing to run the script on multiple OS roots (in a docker/chroot/VM) which would then output a number of executable files. Linux users would have no issue downloading the correct version
 but the build system doesn't scale when you include other distributions (suse/fedora/Debian/etc). Maybe there's an advanced option I missed in pyinstaller to resolve those issues.
<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
I still think using flatpak or snap is a better way to unify the currently fragmented Linux support. There already exists a working flatpak script, I have not see any Snap build scripts yet.
<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
I'm happy to chat more about unifying Linux support for CHIRP too. Let me know if you find the same results.<span id="x_ms-outlook-android-cursor"></span>
<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Tony <br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b>
<a class="x_moz-txt-link-abbreviated" href="mailto:chirp_devel-bounces@intrepid.danplanet.com">
chirp_devel-bounces@intrepid.danplanet.com</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:chirp_devel-bounces@intrepid.danplanet.com">
&lt;chirp_devel-bounces@intrepid.danplanet.com&gt;</a> on behalf of Pavel Milanes Costa (CO7WT) via chirp_devel
<a class="x_moz-txt-link-rfc2396E" href="mailto:chirp_devel@intrepid.danplanet.com">
&lt;chirp_devel@intrepid.danplanet.com&gt;</a><br>
<b>Sent:</b> Friday, July 3, 2020 1:23:00 PM<br>
<b>To:</b> chirp_devel <a class="x_moz-txt-link-rfc2396E" href="mailto:chirp_devel@intrepid.danplanet.com">
&lt;chirp_devel@intrepid.danplanet.com&gt;</a><br>
<b>Subject:</b> [chirp_devel] &quot;Success&quot; to port Chirp as a stand alone app for Ubuntu Bionic...</font>
<div>&nbsp;</div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hi, playing here with pyinstaller and at first glance I managed to run
<br>
latest chirp from the hg repository.<br>
<br>
See here <a href="https://pasteboard.co/JfYqbrL.png">https://pasteboard.co/JfYqbrL.png</a> for a pic of it.<br>
<br>
There are warnings in the import with some modules, but that must be a <br>
few hours of work to make it happy.<br>
<br>
That's build on a Ubuntu 18.04 lxc image and crafted with pyinstaller <br>
(there are other options) packed as a really standalone app (just give <br>
exec permissions and fire it, no dependencies or other installs)<br>
<br>
Is there a solution like this already?<br>
<br>
It worth to work on this pro provide a way for the Focal users?<br>
<br>
I can at the end provide a script or a recipe to build it on any of the <br>
free platforms out there (travis, etc)<br>
<br>
Cheers, Pavel.<br>
<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a class="x_moz-txt-link-abbreviated" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers">
http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</div>
</span></font></div>
</blockquote>
</div>
</body>
</html>