Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656502 - app-text/pdf2djvu-0.9.8 : pdf-backend.cc:389:49: error: invalid conversion from const char* to char* [-fpermissive]
Summary: app-text/pdf2djvu-0.9.8 : pdf-backend.cc:389:49: error: invalid conversion fr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-25 16:38 UTC by Toralf Förster
Modified: 2018-12-28 21:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.42 KB, text/plain)
2018-05-25 16:38 UTC, Toralf Förster
Details
app-text:pdf2djvu-0.9.8:20180525-052241.log (app-text:pdf2djvu-0.9.8:20180525-052241.log,7.43 KB, text/plain)
2018-05-25 16:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,188.54 KB, text/plain)
2018-05-25 16:38 UTC, Toralf Förster
Details
environment (environment,120.77 KB, text/plain)
2018-05-25 16:38 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.92 KB, application/x-bzip)
2018-05-25 16:38 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.97 KB, application/x-bzip)
2018-05-25 16:38 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.94 KB, application/x-bzip)
2018-05-25 16:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-05-25 16:38:22 UTC
x86_64-pc-linux-gnu-g++ -fopenmp -O2 -pipe -march=native -std=c++11 -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -pthread -I/usr/include/poppler -I/usr/include/GraphicsMagick    -c -o pdf-backend.o pdf-backend.cc
pdf-backend.cc: In constructor ‘pdf::Metadata::Metadata(pdf::Document&)’:
pdf-backend.cc:389:49: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     char *input = object.getString()->getCString();
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
make: *** [<builtin>: pdf-backend.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_test_20180520-112305

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   pypy (fallback)

java-config:
The following VMs are available for generation-2:


emerge -qpv app-text/pdf2djvu
[ebuild  N    ] app-text/pdf2djvu-0.9.8  USE="graphicsmagick nls openmp {test}"
Comment 1 Toralf Förster gentoo-dev 2018-05-25 16:38:25 UTC
Created attachment 533116 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-25 16:38:28 UTC
Created attachment 533118 [details]
app-text:pdf2djvu-0.9.8:20180525-052241.log
Comment 3 Toralf Förster gentoo-dev 2018-05-25 16:38:31 UTC
Created attachment 533120 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-25 16:38:34 UTC
Created attachment 533122 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-25 16:38:37 UTC
Created attachment 533124 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-25 16:38:40 UTC
Created attachment 533126 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-05-25 16:38:43 UTC
Created attachment 533128 [details]
temp.tbz2
Comment 8 Adrian Bassett 2018-06-17 18:34:26 UTC
pdf2djvu-0.9.9 fixex this:


 -- Jakub Wilk <jwilk@jwilk.net>  Wed, 18 Apr 2018 15:34:30 +0200

pdf2djvu (0.9.9) unstable; urgency=low

  * Fix build failure with Poppler ≥ 0.64.
  * Fix undefined behavior in the outline handling code.

-- Jakub Wilk <jwilk@jwilk.net> Wed, 18 Apr 2018 15:21:47 +0200

cf. https://github.com/jwilk/pdf2djvu/blob/master/doc/changelog#L1

I downloaded the tarball manually, renamed the ebuild, etc., etc., and 0.9.9 indeed emerges OK (with poppler-0.65 here).
Comment 9 Adrian Bassett 2018-06-17 19:11:03 UTC
(In reply to Adrian.Bassett from comment #8)
> pdf2djvu-0.9.9 fixex this:


fixes* :-)
Comment 10 Juergen Rose 2018-06-27 12:27:31 UTC
(In reply to Adrian.Bassett from comment #9)
> (In reply to Adrian.Bassett from comment #8)
> > pdf2djvu-0.9.9 fixex this:
> 
> 
> fixes* :-)

Where is pdf2djvu-0.9.9?
Comment 11 Adrian Bassett 2018-06-27 12:54:20 UTC
(In reply to Juergen Rose from comment #10)
> (In reply to Adrian.Bassett from comment #9)
> > (In reply to Adrian.Bassett from comment #8)
> > > pdf2djvu-0.9.9 fixex this:
> > 
> > 
> > fixes* :-)
> 
> Where is pdf2djvu-0.9.9?

https://github.com/jwilk/pdf2djvu/releases/download/0.9.9/pdf2djvu-0.9.9.tar.xz
Comment 12 Juergen Rose 2018-07-09 16:43:30 UTC
(In reply to Adrian.Bassett from comment #11)
> (In reply to Juergen Rose from comment #10)
> > (In reply to Adrian.Bassett from comment #9)
> > > (In reply to Adrian.Bassett from comment #8)
> > > > pdf2djvu-0.9.9 fixex this:
> > > 
> > > 
> > > fixes* :-)
> > 
> > Where is pdf2djvu-0.9.9?
> 
> https://github.com/jwilk/pdf2djvu/releases/download/0.9.9/pdf2djvu-0.9.9.tar.
> xz

Thanks Adrian, pdf2djvu-0.9.9 was emerged.
Comment 13 Larry the Git Cow gentoo-dev 2018-12-28 21:34:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d4e51c9fcdbbbb0b6596749cc5f0ffd06f7cd40

commit 9d4e51c9fcdbbbb0b6596749cc5f0ffd06f7cd40
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-12-28 21:33:45 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-12-28 21:34:47 +0000

    app-text/pdf2djvu: version bump to 0.9.11
    
    Closes: https://bugs.gentoo.org/656502
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-text/pdf2djvu/Manifest               |  1 +
 app-text/pdf2djvu/pdf2djvu-0.9.11.ebuild | 60 ++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)