Opened 14 months ago
Closed 13 months ago
#68287 closed defect (fixed)
py-poppler-qt5 @21.3.0: error: no template named 'optional' in namespace 'std'
Reported by: | MStraeten (Martin Straeten) | Owned by: | dliessi (Davide Liessi) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | chrstphrchvz (Christopher Chavez) |
Port: | py-poppler-qt5 |
Description
building that package fails with:
:info:build In file included from poppler-form.sip:6: :info:build ../../../../../../../../../include/poppler/qt5/poppler-form.h:913:6: error: no template named 'optional' in namespace 'std' :info:build std::optional<CryptoSignBackend> POPPLER_QT5_EXPORT activeCryptoSignBackend(); :info:build ~~~~~^ :info:build 4 warnings and 1 error generated. :info:build make[1]: *** [sippopplerqt5cmodule.o] Error 1 :info:build make: *** [sub-popplerqt5-make_first-ordered] Error 2 :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-poppler-qt5/py310-poppler-qt5/work/python-poppler-qt5-21.3.0" && sip-build-3.10 --qmake /opt/local/libexec/qt5/bin/qmake --verbose :info:build Exit code: 1 :error:build Failed to build py310-poppler-qt5: command execution failed
Attachments (1)
Change History (10)
Changed 14 months ago by MStraeten (Martin Straeten)
comment:1 Changed 14 months ago by jmroot (Joshua Root)
Owner: | set to dliessi |
---|---|
Status: | new → assigned |
comment:2 Changed 14 months ago by chrstphrchvz (Christopher Chavez)
comment:3 Changed 14 months ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:4 Changed 14 months ago by reneeotten (Renee Otten)
Keywords: | xcode15 removed |
---|---|
Port: | py-poppler-qt5 added; py310-poppler-qt5 removed |
comment:5 Changed 14 months ago by reneeotten (Renee Otten)
Summary: | py310-poppler-qt5 fails with sonoma and xcode15 → py-poppler-qt5 fails with sonoma and xcode15 |
---|
comment:6 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma added |
---|---|
Summary: | py-poppler-qt5 fails with sonoma and xcode15 → py-poppler-qt5 @21.3.0: error: no template named 'optional' in namespace 'std' |
comment:7 Changed 13 months ago by jeanas (Jean Abou-Samra)
Could anyone test the following patch? I don't have a macOS machine. Thanks.
diff --git a/pyproject.toml b/pyproject.toml index a032bff..c137587 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,11 @@ requires-dist = [ "PyQt5 >= 5.15", ] +[tool.sip.builder] +qmake-settings = [ + "CONFIG += c++17", +] + [tool.sip.project] sip-files-dir = "." sdist-excludes = [
comment:8 Changed 13 months ago by chrstphrchvz (Christopher Chavez)
The suggestion in comment:7 works. PR opened: https://github.com/macports/macports-ports/pull/20980
comment:9 Changed 13 months ago by chrstphrchvz (Christopher Chavez)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
std::optional
requires C++17, but-std=gnu++11
is being specified to compiler (by qmake, I believe).