zegervdv / homebrew-zathura

Homebrew formulae to build Zathura on Mac OS X
547 stars 43 forks source link

zathura-pdf-poppler: Utils::InreplaceError: inreplace failed #36

Closed lamyergeier closed 5 years ago

lamyergeier commented 5 years ago

I had updated brew twice and ran brew doctor, which shows no errors or warnings. Then,

$ brew install zathura-pdf-poppler
==> Installing zathura-pdf-poppler from zegervdv/zathura
==> Installing dependencies for zegervdv/zathura/zathura-pdf-poppler: qt and poppler
==> Installing zegervdv/zathura/zathura-pdf-poppler dependency: qt
==> Downloading https://download.qt.io/official_releases/qt/5.12/5.12.2/single/qt-everywhere-src-
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/e5a2d7ee7f598b577626dc985c25e12295b25bda81034b73b235541875d3bd4d--qt-everywhere-src-5.12.2.tar.xz
Error: An exception occurred within a child process:
  Utils::InreplaceError: inreplace failedqtbase/src/gui/configure.json:
  expected replacement of "[ \"xcb/xcb.h\", \"X11/Xlib.h\", \"X11/Xlib-xcb.h\" ]," with "[ \"xcb/xcb.h\", \"X11/Xlib.h\", \"X11/Xlib-xcb.h\", \"xcb/shm.h\" ],"
zegervdv commented 5 years ago

That’s an issue in the qt package. You should file an issue with them.

lamyergeier commented 5 years ago

Ok. I will update here, after qt resolves this. qt: Build a bottle for Linuxbrew by iMichka · Pull Request #11696 · Homebrew/linuxbrew-core

lamyergeier commented 5 years ago

qt: Build a bottle for Linuxbrew by iMichka · Pull Request #11696 · Homebrew/linuxbrew-core has been solved.

But there is an issue due to a dependency librsvg

==> Installing zegervdv/zathura/zathura-pdf-poppler dependency: librsvg[39
==> Downloading https://download.gnome.org/sources/librsvg/2.44/librsvg-2.44.14.
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/187724066117e46df98b76ec7212ee0dc3906e5e93f4e4a048c8ae371d4c55c5--librsvg-2.44.14.tar.xz
==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Cellar/librsvg/2.44.14_1 --d
==> make install gdk_pixbuf_binarydir=/home/linuxbrew/.linuxbrew/Cellar/librsvg/
Last 15 lines from /home/nikhil/.cache/Homebrew/Logs/librsvg/02.make:
warning: unused variable: `enable_background`
   --> rsvg_internals/src/drawing_ctx.rs:358:17
    |
358 |             let enable_background = values.enable_background;
    |                 ^^^^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_enable_background`
    |
    = note: #[warn(unused_variables)] on by default

    Finished release [optimized + debuginfo] target(s) in 3m 36s
make[2]: Leaving directory '/tmp/librsvg-20190701-24686-h338zb/librsvg-2.44.14'
Makefile:1438: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/tmp/librsvg-20190701-24686-h338zb/librsvg-2.44.14'
Makefile:1745: recipe for target 'install' failed
make: *** [install] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting