Package Details: hydrus 571-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-04-18 14:00 (UTC)

Latest Comments

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

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

And1G commented on 2022-10-15 21:57 (UTC)

Does this work for anybody right now? Got to build 502-1 without documentation, but now getting only this error log on start:

Traceback (most recent call last):
  File "/opt/hydrus/hydrus/hydrus_client.py", line 24, in <module>
    from hydrus.client.gui import QtInit
  File "/opt/hydrus/hydrus/client/gui/QtInit.py", line 33, in <module>
    from qtpy import QtCore as QC
  File "/usr/lib/python3.10/site-packages/qtpy/QtCore.py", line 90, in <module>
    Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton
  File "/usr/lib/python3.10/enum.py", line 480, in __setattr__
    raise AttributeError('Cannot reassign members.')
AttributeError: Cannot reassign members.

Any ideas?

Score_Under commented on 2022-10-02 19:44 (UTC) (edited on 2022-10-02 19:46 (UTC) by Score_Under)

To work around this, you can build without the documentation by removing the packages from the makedepends list and removing the mkdocs invocation in build() as well as the help argument to cp in package(). Other than that there isn't much that can be done from this pkgbuild until the jsmin package is updated by its AUR maintainer

(If this were gentoo I could lock this stuff behind a USE flag but I am not aware of any similar mechanism in PKGBUILDs)