Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: fixes for flatpak build #741

Draft
wants to merge 12 commits into
base: development
Choose a base branch
from
Draft

Conversation

mwilck
Copy link

@mwilck mwilck commented Jul 7, 2024

Hi Hervé

I've been trying to make the :flatpak:buildFlatpak work, so far without success.
This PR (DRAFT DRAFT, don't apply as-is) shows some of the fixes I made.

It's well possible that some of the commits are wrong. But I couldn't figure out better ways to overcome the various errors I encountered.

Feel free to ask back what I was trying to fix with the individual commits. I'll try to explain.

The last issue I encountered is that gradle (in the flatpak environment) doesn't find all dependencies for the schemas. It seems that schemas/build.gradle would also need a flatpakGradleGenerator task, and that this needs to be properly pulled in by flatpak/build.gradle. But that exceeds my basically non-existing gradle knowledge by far.

> Task :schemas:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':schemas:compileJava'.
> Could not resolve all files for configuration ':schemas:compileClasspath'.
   > Could not find org.codehaus.mojo:jaxb2-maven-plugin:2.5.0.
     Searched in the following locations:
       - file:/run/build/audiveris/dependencies/org/codehaus/mojo/jaxb2-maven-plugin/2.5.0/jaxb2-maven-plugin-2.5.0.pom
     Required by:
         project :schemas
   > Could not find org.apache.maven.plugin-tools:maven-plugin-annotations:3.5.1.
     Searched in the following locations:
       - file:/run/build/audiveris/dependencies/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5.1/maven-plugin-annotations-3.5.1.pom
     Required by:
         project :schemas

@mwilck mwilck force-pushed the development branch 5 times, most recently from 1f796ba to 0233d01 Compare September 29, 2024 10:51
Don't try to build the flatpak files while in flatpak.
The build result is not always "Audiveris-$version.tar". I am observing
"app-$VERSION".tar. Let's just use any .tar file, there will be just one.
Otherwise the flatpak-gradle-generator plugin is not found in the
flatpak environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant