@Score_Under
Various Arch packages also provide -docs packages, which are split off into their own package, but built from the same PKGBUILD.
Why not just make the docs optional?
| Git Clone URL: | https://aur.archlinux.org/hydrus.git (read-only, click to copy) |
|---|---|
| Package Base: | hydrus |
| Description: | Danbooru-like image tagging and searching system for the desktop |
| Upstream URL: | http://hydrusnetwork.github.io/hydrus/ |
| Licenses: | WTFPL |
| Conflicts: | hydrus-docs-dummy |
| Submitter: | Score_Under |
| Maintainer: | Score_Under (turtletowerz) |
| Last Packager: | turtletowerz |
| Votes: | 51 |
| Popularity: | 0.95 |
| First Submitted: | 2015-02-28 18:11 (UTC) |
| Last Updated: | 2026-04-30 01:09 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 15 Next › Last »
@Score_Under
Various Arch packages also provide -docs packages, which are split off into their own package, but built from the same PKGBUILD.
Why not just make the docs optional?
The reason it's built this way right now is because it's all from the same sources. Now that the jsmin package has been orphaned and allowed to update again, the python2 dependency chain should be gone. Since docs installed seems to be the norm for Arch packages, what is the problem that having the docs installed, or having mkdocs installed, is causing for you?
Wouldn't it be easier for all, if the package was split in hydrus and e.g. hydrus-docs? From looking at the PKGBUILD I do not see a reason not to do this. This seems to be the way many packages handle offline docs that are rather rarely needed.
@HydrusUser You might find it useful to use an AUR helper that supports the removal of makedepends packages automatically after an install, or add an alias to do this. See here: https://bbs.archlinux.org/viewtopic.php?id=176614
Without MkDocs, Hydrus will simply ask you if you want to open a webpage for the online version of the help menu instead. I'd imagine that the number of users that need an offline help is extremely small, so I personally don't see the need to keep MkDocs. It's very annoying having to remove it every single time there's an update.
@Firegem I don't want to stop building docs if possible, as that impacts the help menu in the program, so for now I've forked the AUR package in question (python-jsmin), and hopefully it'll be disowned at some point so I can revert it again. Hopefully people's AUR helpers should cotton on and realise that they don't need to pull in the original problematic version but I don't know how intelligent those tools are in terms of dependency solving.
BTW, python2-bin should solve the problem for people who don't want to build the package themselves, or if the worst comes to the worst, I'm hosting the deps prebuilt by an automated jenkins thing (https://gurren.score.moe/jenkins/job/pkgbuilds/)
I think this package should stop building documentation. There's no reason to expect people to download and compile python2 by default. Also see: https://github.com/hydrusnetwork/hydrus/issues/1243
I was able to solve the ongoing upstream issue by replacing python-qtpy from community with python-qtpy-git from AUR. This installed v2.3.0, which contains the fix. Hopefully the community package can be updated soon, as this release has been out for over two weeks!
"If you want to manually apply the patch you can do so removing from the pkgbuild the lines marked with - in the patch and adding lines marked with + in the patch. All lines not starting with - or + are there to show where the changes should be made and are not part of those changes."
Thank you for explaining this. I was able to edit the build files, and it built and updated Hydrus successfully. Thanks for the help!
If you want to manually apply the patch you can do so removing from the pkgbuild the lines marked with - in the patch and adding lines marked with + in the patch. All lines not starting with - or + are there to show where the changes should be made and are not part of those changes.
If you have the repo checked out then you should be able to use either git apply or patch -Np1 with this patch file as input, and that should apply the changes automatically.
Pinned Comments
turtletowerz commented on 2025-02-05 23:14 (UTC)
The AUR package for JpegXL support is outdated and does not build. If you need JpegXL support, follow the instructions in the comment I posted to update the PKGBUILD.