@jkhsjdhjs, do your build skills work in .NET too? All of the sonarr, radarr, lidarr, readarr and prowlarr packages are binary too and I'd love for them to be source. But building .NET stuff is beyond my meagre talent, so they've remained binary w/o the -bin
name.
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)
fryfrog commented on 2022-11-29 00:55 (UTC)
fryfrog commented on 2022-11-29 00:41 (UTC)
Yeah, I think parsing output of archlinux-java get
for the correct version would be good. I'd probably also echo the command archlinux-java status
to them and suggest archlinux-java set java-11-openjdk
as the likely solution.
I'm not sure I'll get around to doing it soon, you're welcome to if you have time in the next day or two.
jkhsjdhjs commented on 2022-11-29 00:28 (UTC) (edited on 2022-11-29 00:30 (UTC) by jkhsjdhjs)
@fryfrog Since Java on Arch is a mess and this package has such weird requirements, I guess that would be a good idea. What do you think about just using archlinux-java get
for that in the prepare function? Do you implement it?
Edit: Or might as well put it in the build function, since that's where the requirement must be met.
fryfrog commented on 2022-11-29 00:21 (UTC)
I just tried to build it w/ the wrong java version and saw the error. Would it be crazy to check the current java version in the PKGBUILD
and exit if it is wrong?
jkhsjdhjs commented on 2022-11-28 23:38 (UTC) (edited on 2022-11-28 23:54 (UTC) by jkhsjdhjs)
This package is being built from source now. If you want to continue using a binary version of this package you can switch to https://aur.archlinux.org/packages/nzbhydra2-bin
If you continue using this package please mind that while it can be run with OpenJDK 17, it can only be built with OpenJDK 11 or older.
Both packages disable the self-updating functionality now, since it only creates litter in /usr
that isn't removed when the package is removed via the package manager. Furthermore we don't want the updating functionality in the first place, since updating is done via the package manager.
If you used the updating functionality in the past you may want to clean your /usr/lib/nzbhydra2
.
I also recommend setting updateCheckEnabled
to false
in /var/lib/nzbhydra2/nzbhydra.yml
, if you're using an existing config.
jkhsjdhjs commented on 2022-10-31 17:21 (UTC)
@fryfrog Sure, feel free to add me
fryfrog commented on 2022-10-31 16:34 (UTC)
@jkhsjdhjs, you've got some great ideas! How would you feel about co-maintainer and making them happen?
jkhsjdhjs commented on 2022-10-30 23:14 (UTC)
Also the README of nzbhydra2 states that the wrapper script that is currently used for launching isn't necessary: https://github.com/theotherp/nzbhydra2#how-to-run Thought I'd mention this as you wrote you are open for package improvements.
jkhsjdhjs commented on 2022-10-30 22:52 (UTC) (edited on 2022-10-30 22:52 (UTC) by jkhsjdhjs)
@fryfrog As per [1], additional constraints such as java-runtime-headless<=17
can be specified by listing the respective dependency multiple times. So in this case, you can leave java-runtime-headless>=8
as is and add java-runtime-headless<=17
.
If someone has multiple java versions installed they can either change their default java version using archlinux-java
or add an override using systemctl edit nzbhydra2
like the following:
[Service]
Environment=PATH="/usr/lib/jvm/java-11-openjdk/bin:$PATH"
Setting JAVA_HOME
as in [2] doesn't seem work here unfortunately.
[1] https://wiki.archlinux.org/title/PKGBUILD#depends
[2] https://wiki.archlinux.org/title/Java#Launching_an_application_with_the_non-default_java_version
fryfrog commented on 2022-09-19 19:33 (UTC)
@hicklemon, if you know of a good Arch way to handle this I'm open to package improvements. I just looked at my java setup and my system was just set to use java-11-openjdk
via archlinux-java
.
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.