build error :
raccoon-4.24.0.tar.gz ... FAILED
Git Clone URL: | https://aur.archlinux.org/raccoon.git (read-only, click to copy) |
---|---|
Package Base: | raccoon |
Description: | Alternative Google Play (with GUI) client to download Android APK files to your computer |
Upstream URL: | https://raccoon.onyxbits.de/ |
Licenses: | Apache |
Submitter: | si_kabayan |
Maintainer: | fordprefect (di72nn) |
Last Packager: | fordprefect |
Votes: | 50 |
Popularity: | 0.34 |
First Submitted: | 2014-11-04 21:18 (UTC) |
Last Updated: | 2023-02-06 12:35 (UTC) |
build error :
raccoon-4.24.0.tar.gz ... FAILED
Compilation in a clean chroot fails:
FAILURE: Build failed with an exception.
* Where:
Settings file '/build/raccoon/src/raccoon4-4.20.0/settings.gradle'
* What went wrong:
Could not compile settings file '/build/raccoon/src/raccoon4-4.20.0/settings.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 62
java.lang.IllegalArgumentException: Unsupported class file major version 62
For what it's worth, "java-environment" installs Java 18. I looked at the upstream website, but I couldn't find any obvious indication of whether raccoon has any compatibility issues with that.
Hmmm... now it gives another error:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/vtitov/.cache/yay/raccoon/src/raccoon4-4.19.0/build.gradle'
* What went wrong:
Could not compile build file '/home/vtitov/.cache/yay/raccoon/src/raccoon4-4.19.0/build.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
I removed Java11 and now have only Java16, but I still have this error unfortunately. I switched to raccoon-bin
and it works, thanks.
First you patch the build.gradle
file to make it compatible with Gradle 7: https://gist.github.com/di72nn/3a4b74bbeb789107195b57a65fa5cfec
(you can partially do it with sed
or something, because the patch won't apply when dependency versions change).
Then you either build with system gradle (run gradle -Pversion=$pkgver fatJar
) or you patch the gradle wrapper version in the gradle/wrapper/gradle-wrapper.properties
file (to have it say something like distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
) and build with the wrapper (./gradlew -Pversion=$pkgver fatJar
).
You don't need to patch the gradle version in the build.gradle
, because it is used only for gradle wrapper generation, which is not performed during the build.
@dreieck: Sorry, my fault. Gradlew uses a downloaded gradle, not the system installed one. I have experimentally patched the build.gradle for the higher version. Could you try if this fixes the problems? Also, gradle was removed as build dep (since it gets downloaded anyways). Any hint on how to build using the local installed gradle is appreciated.
Is it somehow possible that the gradle-6.8.2-all.zip
does get downloaded before build()
? With integrity checksum??
Best: Include the required gradle version as makedepend and modify the build()
-process to use pre-installed gradle
.
Regards & thanks for the package!
==> Starting build()...
Downloading https://services.gradle.org/distributions/gradle-6.8.2-all.zip
..............10%....
[... still downloading ...]
@di72nn: the preferred approach is definitely to update gradle, which is currently at 7.2 in the repos.
Gradle <7 doesn't support Java >=16.
You can use archlinux-java
to change your default or do something like this before building:
export PATH="/usr/lib/jvm/java-11-openjdk/bin:$PATH"
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
(any Java version from 8 to 15 should do).
I don't know what is the preferred approach for packaging.
@Fuzzy: Builds fine for me. Are you sure you are on a fully updated machine? Maybe try building in a clean chroot (see archwiki for details).
Got an error when building 4.19.0-1:
Execution failed for task ':compileJava'.
> java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x309a237c) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x309a237c
Pinned Comments
fordprefect commented on 2019-03-07 11:59 (UTC) (edited on 2019-03-07 12:00 (UTC) by fordprefect)
This package builds the raccoon software from source. Since the mainainer is in the process of abandoning Github (see [0] for reasons) and the sources are not available otherwise yet, this package will sit at the last released version published on Github, until new sources are available. If you wish to use the more recent versions of the program instead of waiting for the sources to be released, you can use raccoon-bin [1] as a workaround for now.
Please don't flag this package out-of-date, unless new source versions are available. Thank you for your understanding.
[0] https://blog.onyxbits.de/so-long-github-and-thanks-for-all-the-fish-746/
[1] https://aur.archlinux.org/packages/raccoon-bin/