Package Details: hydrus 601-1

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: custom
Conflicts: hydrus-docs-dummy
Submitter: Score_Under
Maintainer: Score_Under
Last Packager: Score_Under
Votes: 40
Popularity: 0.89
First Submitted: 2015-02-28 18:11 (UTC)
Last Updated: 2024-12-04 21:42 (UTC)

Dependencies (40)

Required by (2)

Sources (5)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 13 Next › Last »

ardency commented on 2022-11-25 00:34 (UTC)

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!

HydrusUser commented on 2022-10-22 20:10 (UTC)

"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!

Score_Under commented on 2022-10-22 19:51 (UTC) (edited on 2022-10-22 19:55 (UTC) by Score_Under)

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.

HydrusUser commented on 2022-10-22 19:47 (UTC)

"The patch I sent was in unified diff format and should be able to be processed by any standard patching tool"

I was just going to manually edit the build file in Pamac and remove the parts for McDocs (though maybe that was a stupid idea); I'm not sure how to run this patch. Sorry, I'm new to all this.

Score_Under commented on 2022-10-22 19:31 (UTC)

Nothing from the depends array should be removed, only from makedepends, and it is because those three exist to translate documentation from markdown to HTML at build time.

The patch I sent was in unified diff format and should be able to be processed by any standard patching tool

HydrusUser commented on 2022-10-22 19:25 (UTC)

Thanks for the fast reply, but now I'm even more confused. This looks like it has a lot more than just removing MkDocs. Why would I remove everything in depends=?

Score_Under commented on 2022-10-22 19:10 (UTC)

@HydrusUser

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ depends=(python python-opencv python-beautifulsoup4 python-yaml
          python-pysocks python-psutil python-send2trash python-html5lib
          python-requests python-qtpy emoji-font python-mpv
          python-service-identity fmt pyside6)
-makedepends=(git 'mkdocs>=1.3.0' mkdocs-material 'pymdown-extensions>=9.4')
+makedepends=(git)
 optdepends=('ffmpeg: show duration and other information on video thumbnails'
             'miniupnpc: automatic port forwarding'
             'desktop-file-utils: to add Hydrus to your desktop environment menus'
@@ -49,9 +49,6 @@ build() {

   msg 'Compiling .py files...'
   python -OO -m compileall -fq .
-
-  msg 'Building documentation...'
-  mkdocs build -d help
 }

 package() {
@@ -59,7 +56,7 @@ package() {

   # Create /opt/hydrus and copy hydrus files to there
   install -m755 -d "${pkgdir}/opt/hydrus"
-  cp -r help hydrus static client.pyw server.py "${pkgdir}/opt/hydrus/"
+  cp -r hydrus static client.pyw server.py "${pkgdir}/opt/hydrus/"

   # Create and populate /opt/hydrus/bin
   install -d -m755 "${pkgdir}/opt/hydrus/bin"

You will also enjoy a much faster build time and much smaller installation size.

HydrusUser commented on 2022-10-22 19:07 (UTC)

Can you tell me the EXACT parts I need to remove in order to build Hydrus without MkDocs? I'm also confused what you mean by the help argument to cp in package().

And1G commented on 2022-10-17 20:02 (UTC)

Thanks @Score_Under, downgrading to pyside6-6.3.2-1 did the trick as a workaround.

Score_Under commented on 2022-10-16 03:40 (UTC)

@And1G, this seems to have been triggered by a Pyside6 update which has broken qtpy. Some potential workarounds:

  • Remove the Qt.MouseButton.MiddleButton = part of that line (line 90 of /usr/lib/python3.10/site-packages/qtpy/QtCore.py)
  • Revert to old pyside6 from Arch Linux archive (at 2022-10-13)
  • Build without pyside6 in deps, remove pyside6 from system, try a different python qt6 implementation

Upstream issue: https://github.com/spyder-ide/qtpy/issues/373