The command listed in https://aur.archlinux.org/packages/nzbhydra2?O=10#comment-887324 doesn't work without further modifications because systemd doesn't expand variables in the Environment directive. As such, starting the service fails because the sh command can't be found. A possible workaround is to hardcode the path, i.e. Environment=PATH="/usr/lib/jvm/java-17-openjdk/bin:/usr/bin"
Search Criteria
Package Details: nzbhydra2 7.10.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/nzbhydra2.git (read-only, click to copy) |
---|---|
Package Base: | nzbhydra2 |
Description: | Search aggregator for newznab and torznab indexers. |
Upstream URL: | https://github.com/theotherp/nzbhydra2 |
Licenses: | Apache-2.0 |
Submitter: | fryfrog |
Maintainer: | fryfrog (jkhsjdhjs) |
Last Packager: | fryfrog |
Votes: | 18 |
Popularity: | 0.000000 |
First Submitted: | 2018-01-06 20:01 (UTC) |
Last Updated: | 2024-12-04 04:08 (UTC) |
Dependencies (5)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk17-openj9-binAUR, jre-zuluAUR, jre-zulu-fxAUR, jre21-zulu-binAUR, jre17-zulu-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- python (python37AUR, python311AUR, python310AUR)
- java-environment (jdk12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk11-jbr-xdgAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jdk-openj9AUR, jdk11-graalvm-ee-binAUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk21-graalvm-binAUR, jdk17-jetbrainsAUR, jdk8-openj9-binAUR, jdk-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, jdk21-jetbrains-gitAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, mandrel-binAUR, mandrel24-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jdk19-openjdkAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jabba-binAUR, jdk21-jetbrainsAUR, jdk17-zulu-prime-binAUR, zing-21-binAUR, zing-8-binAUR, jdk23-graalvm-ee-binAUR, java-openjdk-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, jdk8-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jre-jetbrainsAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jdkAUR, jdk21-jetbrains-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-android-studioAUR, jdk17-openj9-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk) (make)
- maven (mvnvmAUR) (make)
- jackettAUR (jackett-monoAUR, jackett-binAUR) (optional) – torrent indexer proxy
Required by (23)
- lidarr (optional)
- lidarr-bin (optional)
- lidarr-develop (optional)
- lidarr-develop-bin (optional)
- lidarr-nightly-bin (optional)
- prowlarr (optional)
- prowlarr-bin (optional)
- prowlarr-develop (optional)
- prowlarr-develop-bin (optional)
- prowlarr-nightly-bin (optional)
- radarr (optional)
- radarr-bin (optional)
- radarr-develop (optional)
- radarr-develop-bin (optional)
- radarr-nightly-bin (optional)
- readarr-develop (optional)
- readarr-develop-bin (optional)
- readarr-nightly-bin (optional)
- sonarr (optional)
- sonarr-bin (optional)
- sonarr-develop (optional)
- sonarr-develop-bin (optional)
- whisparr-nightly-bin (optional)
Sources (7)
IncredibleLaser commented on 2023-01-24 14:39 (UTC)
jkhsjdhjs commented on 2023-01-21 16:50 (UTC) (edited on 2023-01-21 17:08 (UTC) by jkhsjdhjs)
With the update to version 5, nzbhydra2 now requires java 17, so you'll have to make sure that nzbhydra2 is run with java 17: https://aur.archlinux.org/packages/nzbhydra2?O=10#comment-887324
This is only required for running, the package should build fine in any case.
Furthermore, while nzbhydra2 now also provides binaries for windows and linux (which are apparently built using GraalVM), this package will continue to build the generic jar, as it doesn't seem to be possible to build the binaries with OpenJDK and GraaVM is only available in the AUR.
sysfs commented on 2022-12-04 14:22 (UTC)
@jkhsjdhjs the AUR maintainers of the earth are great, but you exceed them all.
jkhsjdhjs commented on 2022-12-04 13:13 (UTC) (edited on 2022-12-04 13:31 (UTC) by jkhsjdhjs)
@hicklemon I was able to reproduce your issue by setting JAVA_HOME
to an arbitrary path. Please either set JAVA_HOME
correctly (export JAVA_HOME=/usr/lib/jvm/<jdk-of-your-choice>
) or unset it (unset JAVA_HOME
).
EDIT: I changed the PKGBUILD to require OpenJDK 11 for building and always build with OpenJDK 11 no matter what the default environment set with archlinux-java is.
You no longer have to change the default environment with archlinux-java to build this package!
I did it by exporting JAVA_HOME
in the build() and check() functions. They're doing it for official repository packages as well (e.g. tomcat8), so it should be fine.
sysfs commented on 2022-12-04 10:22 (UTC) (edited on 2022-12-04 10:22 (UTC) by sysfs)
i decided to update today, and i dunno why, but this decided to blow up! :) i was on java (17) NO, i was on 19!!! ... and everything was perfectly fine before. upon reading this thread, i've removed java 17 and installed java 11, and done the thing with archlinux-java as root as is tradition and it's torched.
==> Starting build()...
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: nzbhydra2
JAVA_HOME... story of my life.
jkhsjdhjs commented on 2022-11-29 18:15 (UTC)
I'm not sure why the github-release-plugin and other stuff like discordbot and githubbot were even built. It's not like they're required for nzbhydra, so I added a patch to skip building them.
Unfortunately at least mapping
also can't be built with OpenJDK 17, so older JDKs are still required.
I also added a check for unsupported JDKs to the build() function of the PKGBUILD.
jkhsjdhjs commented on 2022-11-29 17:15 (UTC)
@sovanyio Are you sure that OpenJDK 8 or 11 are actually being used? Because that is precisely the error I got when trying to build with OpenJDK 17. Try
# archlinux-java set java-11-openjdk
sovanyio commented on 2022-11-29 01:47 (UTC)
Build is failing in the maven github-release-plugin on openjdk 8 and 11 for me
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project github-release-plugin: Fatal error compiling: java.lang.ExceptionInInitializerError: Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs accessible: module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @6c07ad6b -> [Help 1]
fryfrog commented on 2022-11-29 01:11 (UTC)
Funny, I went looking for your email in your profile because doing this via comments felt silly, but it was hidden! I just found your email in my spam folder and unmarked it, so thats fine. We could also do nzbhydra2's discord. I pay very little attention to my irc client, sadly. Probably you were a victim of sending me a message that got ignored when I rebooted. :P
jkhsjdhjs commented on 2022-11-29 01:03 (UTC)
@fryfrog I never built .NET applications before, but I also never built Java with maven before this package. I'll give it a try :D
BTW: Before pushing the changes to this package I also sent you a mail and tried to contact you via IRC, since I wanted to discuss them with you. Is there any way I can contact you aside from AUR comments?
Pinned Comments
IncredibleLaser commented on 2023-01-24 14:39 (UTC)
The command listed in https://aur.archlinux.org/packages/nzbhydra2?O=10#comment-887324 doesn't work without further modifications because systemd doesn't expand variables in the Environment directive. As such, starting the service fails because the sh command can't be found. A possible workaround is to hardcode the path, i.e.
Environment=PATH="/usr/lib/jvm/java-17-openjdk/bin:/usr/bin"
jkhsjdhjs commented on 2023-01-21 16:50 (UTC) (edited on 2023-01-21 17:08 (UTC) by jkhsjdhjs)
With the update to version 5, nzbhydra2 now requires java 17, so you'll have to make sure that nzbhydra2 is run with java 17: https://aur.archlinux.org/packages/nzbhydra2?O=10#comment-887324
This is only required for running, the package should build fine in any case.
Furthermore, while nzbhydra2 now also provides binaries for windows and linux (which are apparently built using GraalVM), this package will continue to build the generic jar, as it doesn't seem to be possible to build the binaries with OpenJDK and GraaVM is only available in the AUR.