Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 670252

Summary: app-text/poppler-0.68.0 : /.../JpegWriter.cc:146:39: error: cannot convert bool to boolean in assignment
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Maciej Mrozowski <reavertm>
Status: RESOLVED FIXED    
Severity: normal CC: cedric.godin, gandalf, kde, marci_r, office, prefix, printing
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-text:poppler-0.68.0:20181104-001423.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
Patch to fix this issue

Description Toralf Förster gentoo-dev 2018-11-04 08:44:39 UTC
/var/tmp/portage/app-text/poppler-0.68.0/work/poppler-0.68.0/goo/JpegWriter.cc: In member function ‘virtual bool JpegWriter::init(FILE*, int, int, int, int)’:
/var/tmp/portage/app-text/poppler-0.68.0/work/poppler-0.68.0/goo/JpegWriter.cc:146:39: error: cannot convert ‘bool’ to ‘boolean’ in assignment
   priv->cinfo.optimize_coding = priv->optimize;
                                       ^~~~~~~~
make[2]: *** [CMakeFiles/poppler.dir/build.make:193: CMakeFiles/poppler.dir/goo/JpegWriter.cc.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_libressl-abi32+64_20181101-210320

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

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

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpvO app-text/poppler
[ebuild     U ] app-text/poppler-0.68.0 [0.67.0] USE="cxx introspection jpeg jpeg2k lcms utils -cairo -cjk -curl -debug -doc -nss -png -qt5 -tiff"
Comment 1 Toralf Förster gentoo-dev 2018-11-04 08:44:42 UTC
Created attachment 554012 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-04 08:44:44 UTC
Created attachment 554014 [details]
app-text:poppler-0.68.0:20181104-001423.log
Comment 3 Toralf Förster gentoo-dev 2018-11-04 08:44:47 UTC
Created attachment 554016 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-11-04 08:44:50 UTC
Created attachment 554018 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-11-04 08:44:53 UTC
Created attachment 554020 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-04 08:44:55 UTC
Created attachment 554022 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-11-04 08:44:58 UTC
Created attachment 554024 [details]
temp.tbz2
Comment 8 Andreas Sturmlechner gentoo-dev 2018-11-04 10:43:59 UTC
Is that with media-libs/jpeg-9c?
Comment 9 Byron Stanoszek 2018-11-11 20:04:49 UTC
Created attachment 554936 [details, diff]
Patch to fix this issue

gcc-7.3.0 on x86
Comment 10 Fabian Groffen gentoo-dev 2018-12-06 14:09:25 UTC
same problem on x64-solaris using gcc-7.3.0
Comment 11 Fabian Groffen gentoo-dev 2018-12-06 14:09:59 UTC
(In reply to Andreas Sturmlechner from comment #8)
> Is that with media-libs/jpeg-9c?

yes
Comment 12 Toralf Förster gentoo-dev 2018-12-10 20:59:07 UTC
(In reply to Andreas Sturmlechner from comment #8)
cae - and still a problem with latest gcc
Comment 13 Larry the Git Cow gentoo-dev 2019-01-30 21:21:52 UTC
The bug has been closed via the following commit(s):

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

commit ecdea30cd4b1c5df9e7642921f0004f5137607a5
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-01-30 21:21:27 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-01-30 21:21:27 +0000

    app-text/poppler: backport jpeg buildfix, bug #670252
    
    jpeg-9c defines TRUE and FALSE as 'enum' values not compatible to bool.
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/670252
    Package-Manager: Portage-2.3.59, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 app-text/poppler/files/poppler-0.68.0-bool.patch | 36 ++++++++++++++++++++++++
 app-text/poppler/poppler-0.68.0.ebuild           |  1 +
 2 files changed, 37 insertions(+)