Package Details: pdf2djvu 0.9.19-3

Git Clone URL: https://aur.archlinux.org/pdf2djvu.git (read-only, click to copy)
Package Base: pdf2djvu
Description: Creates DjVu files from PDF files
Upstream URL: https://jwilk.net/software/pdf2djvu
Licenses: GPL
Submitter: arojas
Maintainer: blueowl
Last Packager: blueowl
Votes: 6
Popularity: 0.000000
First Submitted: 2021-05-08 09:21 (UTC)
Last Updated: 2024-07-09 22:16 (UTC)

Latest Comments

« First ‹ Previous 1 2

Kamilcuk commented on 2021-11-18 08:50 (UTC)

I added an issue upstream https://github.com/jwilk/pdf2djvu/issues/149

frankspace commented on 2021-11-16 15:53 (UTC)

Thanks! That would be helpful.

ed_o commented on 2021-11-16 09:46 (UTC)

@frankspace No, I am not really familiar with using chroot to test packages. I do not have either packages you mentioned installed in my system, but please let me know if sending to your email address the list of my installed packages may help you narrow down the possible cause of the issue

frankspace commented on 2021-11-16 05:23 (UTC)

Interesting. Are you compiling it in a chroot? I'm trying to figure this out, and I have a suspicion that it may have something to do with the upstream author inexplicably refusing to port the tests to python3 and refusing to explain why. Do you by any chance happen to have an old version of python2-exiv2 installed? Or possibly python2-xmp-toolkit? It's just the tests that are failing; when I comment out the check() section, this compiles (and seems to work) just fine.

ed_o commented on 2021-11-15 18:35 (UTC)

@frankspace Unfortunately I cannot replicate the error, it compiles correctly on my machine.

frankspace commented on 2021-11-14 19:55 (UTC)

Compilation fails for me, even in a clean chroot:

======================================================================
FAIL: test-xmp-broken.test.test_no_verbatim
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/test-xmp-broken.py", line 30, in test_no_verbatim
    r.assert_(stderr='XMP metadata error: XMP Toolkit error 201: XML parsing failure\n')
  File "/build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/tools.py", line 98, in assert_
    assert_multi_line_equal(self.stderr, stderr)
AssertionError: 'XMP metadata error: XMP Toolkit error 201: Error in XMLValidator\n' != 'XMP metadata error: XMP Toolkit error 201: XML parsing failure\n'
- XMP metadata error: XMP Toolkit error 201: Error in XMLValidator
?                                            ---------   ^  ^^^^^
+ XMP metadata error: XMP Toolkit error 201: XML parsing failure
?                                               ^^ +++++++++ ^ +

-------------------- >> begin captured stdout << ---------------------
$ ../pdf2djvu -q /build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/test-xmp-broken.pdf -o /build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/test-xmp-broken.djvu --version
$ ../pdf2djvu -q /build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/test-xmp-broken.pdf -o /build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests/test-xmp-broken.djvu

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 86 tests in 6.106s

FAILED (SKIP=2, failures=1)
make[1]: *** [Makefile:38: all] Error 1
make[1]: Leaving directory '/build/pdf2djvu/src/pdf2djvu-0.9.18.1/tests'
make: *** [Makefile:81: test] Error 2

zoidberg commented on 2021-10-09 13:20 (UTC)

When building the current version (0.9.18), we get

pdf-backend.cc: In member function ‘const string pdf::Document::get_xmp()’:
pdf-backend.cc:232:35: error: cannot convert ‘std::unique_ptr<GooString>’ to ‘std::unique_ptr<const GooString>::pointer’ {aka ‘const GooString*’}
232 |   mstring.reset(this->readMetadata());
    |                 ~~~~~~~~~~~~~~~~~~^~
    |                                   |
    |                                   std::unique_ptr<GooString>
In file included from /usr/include/c++/11.1.0/memory:76,
                from /usr/include/poppler/PopplerCache.h:18,
                from /usr/include/poppler/XRef.h:44,
                from /usr/include/poppler/PDFDoc.h:56,
                from pdf-backend.hh:32,
                from pdf-backend.cc:16:
/usr/include/c++/11.1.0/bits/unique_ptr.h:452:21: note:   initializing argument 1 of ‘void std::unique_ptr<_Tp, _Dp>::reset(std::unique_ptr<_Tp, _Dp>::pointer) [with _Tp = const GooString; _Dp = std::default_delete<const GooString>; std::unique_ptr<_Tp, _Dp>::pointer = const GooString*]’
452 |       reset(pointer __p = pointer()) noexcept
    |             ~~~~~~~~^~~~~~~~~~~~~~~

This is fixed in git master https://github.com/jwilk/pdf2djvu/commit/e528d3ab88c582e8481c9014982263d9c9e992fe, but the author doesn't seem to have made a release yet.

ed_o commented on 2021-06-07 20:44 (UTC) (edited on 2021-06-27 07:07 (UTC) by ed_o)

UPDATE; the AUR bug has been fixed, and I have regularly updated the package

Thank you @jsh6789 for pointing that out, I have reported it to the dev, and he has released a new version of the programme.
I am currently waiting for this AUR bug to be fixed so I can go ahead and push the update.
For those who need the package more urgently, I suggest to compile manually the latest release.

jsh6789 commented on 2021-06-06 08:17 (UTC)

Patch is needed to compile successfully with GCC11:

https://github.com/jwilk/pdf2djvu/commit/d88c2307752269525b326601d1da177fcf796784