Bug 414795 - calligra-3.1.0: karbon - fails to build with poppler >= 0.83.0
Summary: calligra-3.1.0: karbon - fails to build with poppler >= 0.83.0
Status: REPORTED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-03 13:16 UTC by Timo Gurr
Modified: 2019-12-04 12:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
calligra-3.1.0-Fix-build-with-poppler-0.83.patch (2.56 KB, patch)
2019-12-04 12:55 UTC, Timo Gurr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr 2019-12-03 13:16:17 UTC
New compile failures with poppler 0.83.0, with the patch applied from https://bugs.kde.org/show_bug.cgi?id=414751:

/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp: In member function 'virtual void SvgOutputDev::stroke(GfxState*)':
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:144:46: error: invalid conversion from 'const GfxPath*' to 'GfxPath*' [-fpermissive]
  144 |     QString path = convertPath(state->getPath());
      |                                ~~~~~~~~~~~~~~^~
      |                                              |
      |                                              const GfxPath*
In file included from /var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:20:
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.h:86:34: note:   initializing argument 1 of 'QString SvgOutputDev::convertPath(GfxPath*)'
   86 |     QString convertPath(GfxPath *path);
      |                         ~~~~~~~~~^~~~
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp: In member function 'virtual void SvgOutputDev::fill(GfxState*)':
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:155:46: error: invalid conversion from 'const GfxPath*' to 'GfxPath*' [-fpermissive]
  155 |     QString path = convertPath(state->getPath());
      |                                ~~~~~~~~~~~~~~^~
      |                                              |
      |                                              const GfxPath*
In file included from /var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:20:
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.h:86:34: note:   initializing argument 1 of 'QString SvgOutputDev::convertPath(GfxPath*)'
   86 |     QString convertPath(GfxPath *path);
      |                         ~~~~~~~~~^~~~
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp: In member function 'virtual void SvgOutputDev::eoFill(GfxState*)':
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:166:46: error: invalid conversion from 'const GfxPath*' to 'GfxPath*' [-fpermissive]
  166 |     QString path = convertPath(state->getPath());
      |                                ~~~~~~~~~~~~~~^~
      |                                              |
      |                                              const GfxPath*
In file included from /var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:20:
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.h:86:34: note:   initializing argument 1 of 'QString SvgOutputDev::convertPath(GfxPath*)'
   86 |     QString convertPath(GfxPath *path);
      |                         ~~~~~~~~~^~~~

Complete build log attached.
Comment 1 Timo Gurr 2019-12-03 13:17:08 UTC
Edit, complete build log was too big to attach.
Comment 2 Timo Gurr 2019-12-04 12:55:21 UTC
Created attachment 124309 [details]
calligra-3.1.0-Fix-build-with-poppler-0.83.patch

Attached patch contrains the required changes between poppler 0.82 -> 0.83