Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909037 - app-text/qpdfview-0.5: fails to compile with app-text/poppler-23.08.0 (./.../poppler-form.h: error: optional in namespace std does not name a template type)
Summary: app-text/qpdfview-0.5: fails to compile with app-text/poppler-23.08.0 (./.../...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
: 914032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-06-23 15:08 UTC by Toralf Förster
Modified: 2023-09-12 06:55 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.21 KB, text/plain)
2023-06-23 15:09 UTC, Toralf Förster
Details
app-text:qpdfview-0.5:20230623-150131.log (app-text:qpdfview-0.5:20230623-150131.log,28.55 KB, text/plain)
2023-06-23 15:09 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,63.55 KB, application/x-xz)
2023-06-23 15:09 UTC, Toralf Förster
Details
environment (environment,72.09 KB, text/plain)
2023-06-23 15:09 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-06-23 15:09 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,14.13 KB, application/x-xz)
2023-06-23 15:09 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,19.70 KB, application/x-xz)
2023-06-23 15:09 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 2023-06-23 15:08:59 UTC
  855 |     void setInkPaths(const QList<QLinkedList<QPointF>> &paths);
      |                                  ^~~~~~~~~~~
/usr/include/qt5/QtCore/qcontainerfwd.h:51:26: note: declared here
   51 | template <class T> class QLinkedList;
      |                          ^~~~~~~~~~~
In file included from sources/pdfmodel.cpp:47:
/usr/include/poppler/qt5/poppler-form.h:876:6: error: optional in namespace std does not name a template type
  876 | std::optional<CryptoSignBackend> POPPLER_QT5_EXPORT activeCryptoSignBackend();
      |      ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20230619-011930

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Rust versions:
  [1]   rust-bin-1.69.0
  [2]   rust-1.69.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit c0b17c808c85bc0ef7227fb475f7cfeeabffb8f7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jun 23 13:02:04 2023 +0000

    2023-06-23 13:02:04 UTC

emerge -qpvO app-text/qpdfview
[ebuild  N    ] app-text/qpdfview-0.5  USE="cups dbus pdf postscript -djvu -fitz -sqlite -svg -synctex"
Comment 1 Toralf Förster gentoo-dev 2023-06-23 15:09:00 UTC
Created attachment 864473 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-23 15:09:01 UTC
Created attachment 864474 [details]
app-text:qpdfview-0.5:20230623-150131.log
Comment 3 Toralf Förster gentoo-dev 2023-06-23 15:09:02 UTC
Created attachment 864475 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-06-23 15:09:03 UTC
Created attachment 864476 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-06-23 15:09:04 UTC
Created attachment 864477 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-06-23 15:09:05 UTC
Created attachment 864478 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-06-23 15:09:06 UTC
Created attachment 864479 [details]
temp.tar.xz
Comment 8 quilosaq 2023-08-01 12:42:30 UTC
With poppler stable, qpdfview build without error.

emerge -1 poppler:0/128
Comment 9 Vedran Vrbanc 2023-08-26 11:37:37 UTC
current poppler stable is poppler-23.08.0 and the build fails for me with that, same error as OP.

build succeeds with poppler-23.05.0.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-26 13:58:05 UTC
Building with -std=gnu++17 will hopefully work.
Comment 11 Larry the Git Cow gentoo-dev 2023-09-08 12:57:43 UTC
The bug has been closed via the following commit(s):

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

commit e4b459a4ba460fb6a2d3be40648d5397ea19d70b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-08 12:57:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-08 12:57:35 +0000

    app-text/qpdfview: fix build w/ >=poppler-23.08.0 (build w/ c++17)
    
    Closes: https://bugs.gentoo.org/909037
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/qpdfview/files/qpdfview-0.5-poppler-23.08.0-cxx17.patch | 9 +++++++++
 app-text/qpdfview/qpdfview-0.5.ebuild                            | 4 ++++
 2 files changed, 13 insertions(+)
Comment 12 ykui 2023-09-12 01:22:41 UTC
*** Bug 914032 has been marked as a duplicate of this bug. ***