Bug #9739
closedUpdate flatpak runtime from 19.08 to 21.08
100%
Description
Chirp flatpak currently uses the 19.08 runtime, but that runtime is deprecated.
I've been able to build the chirp flatpak with the 21.08 runtime. A small patch is needed, and I've come up with two different ways to make the build succeed. The basic issue with using runtime 21.08 is that the libxml component tries (and fails) to build with python3.9, so we have to tell it to use python2.7 instead.
In version1.patch, the approach is to modify the configure script within the libxml component. The modified configure script then looks for python2.7, finds it, and the build succeeds.
In version2.patch, the approach is to pass an option flag into the libxml configure script, telling it to look for python in /app rather than in /bin. By looking in /app, the configure script finds the correct python2.7, and the build succeeds.
My opinion is that version2.patch is cleaner, but either one would let us move off the deprecated 19.08 runtime.
Files
Updated by Jim Unroe almost 3 years ago
- Status changed from New to Feedback
This is related to issue #9727.
Jim KC9HI
Updated by Tony Fuller over 2 years ago
I'll work with Dan to test out the patches.
I'm curious where did you found the manifest.json file @steve cox? Is this part of the flatpak itself or did I miss it in the repository somewhere?
Thanks!
Updated by Steven Falco over 2 years ago
It is part of the flatpak itself. It really should be in a repo too, though. If you can add it somewhere, that would be great.
Updated by Tony Fuller over 2 years ago
Hi Steven,
I have built the flatpak locally with your patch and tested it. All looks good to me.
I'll send an email to Dan with a reformatted patch (he is using a yml file in his build) and link back to this ticket.
Thanks for tracking down the libxml2 fix also! It's greatly appreciated.
Tony
Updated by Steven Falco over 2 years ago
Excellent - glad to help. Is the yml file in a repository somewhere? I'd like to have a copy.
Updated by Tony Fuller over 2 years ago
- File com.danplanet.chirp.yml com.danplanet.chirp.yml added
Hi Steven,
I'll ask Dan if he can add it to the repo. You can also find it attached with your fix added.
Tony
Updated by Guiqi Yu over 2 years ago
I cannot use the file yml or patch, may you show me the specific usage of them?
Updated by Steven Falco over 2 years ago
I used the following command line:
flatpak-builder --force-clean build-dir --repo repo/ manifest.json
You can probably substitute the yml file for manifest.json, but I personally haven't tried that. You'll also need to have a copy of "chirp-daily.tar.gz" in the directory.
Once the above is completed, you can then build the bundle via:
flatpak build-bundle repo/ chirp.flatpak com.danplanet.chirp
Updated by Tony Fuller over 2 years ago
Hey Steven,
I wanted to let you know that I did send in the patch you provided here to Dan. He emailed back and said that the next Flatpak build should be on the 21.08 runtime -- he is just waiting on some functional changes to hit before rebuilding everything (MacOS and Windows included)
Still waiting to hear back on where the Flatpak build file will get stored, but I proposed this idea as well :)
Thanks,
Tony
Updated by Tony Fuller about 2 years ago
- Status changed from Feedback to Resolved
- % Done changed from 0 to 100
Updated by Bernhard Hailer almost 2 years ago
- Status changed from Resolved to Closed
- Model affected changed from (All models) to Flatpak