Project

General

Profile

Actions

Bug #9739

closed

Update flatpak runtime from 19.08 to 21.08

Added by Steven Falco almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/04/2022
Due date:
% Done:

100%

Estimated time:
Chirp Version:
daily
Model affected:
Flatpak
Platform:
Linux
Debug Log:
I read the instructions above:

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

version1.patch (1.49 KB) version1.patch Steven Falco, 02/04/2022 09:35 PM
version2.patch (863 Bytes) version2.patch Steven Falco, 02/04/2022 09:35 PM
com.danplanet.chirp.yml (6.47 KB) com.danplanet.chirp.yml Flatpak build w libxml2 fix Tony Fuller, 03/03/2022 07:41 PM
Actions #1

Updated by Jim Unroe almost 3 years ago

  • Status changed from New to Feedback

This is related to issue #9727.

Jim KC9HI

Actions #2

Updated by Tony Fuller almost 3 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!

Actions #3

Updated by Steven Falco almost 3 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.

Actions #4

Updated by Tony Fuller almost 3 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

Actions #5

Updated by Steven Falco almost 3 years ago

Excellent - glad to help. Is the yml file in a repository somewhere? I'd like to have a copy.

Actions #6

Updated by Tony Fuller almost 3 years ago

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

Actions #7

Updated by Steven Falco almost 3 years ago

Thanks, Tony. I appreciate it.

Actions #8

Updated by Guiqi Yu almost 3 years ago

I cannot use the file yml or patch, may you show me the specific usage of them?

Actions #9

Updated by Steven Falco almost 3 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

Actions #10

Updated by Tony Fuller almost 3 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

Actions #11

Updated by Steven Falco almost 3 years ago

Thanks, Tony. Great progress!

Actions #12

Updated by Tony Fuller over 2 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Bernhard Hailer almost 2 years ago

  • Status changed from Resolved to Closed
  • Model affected changed from (All models) to Flatpak
Actions

Also available in: Atom PDF