commit: 766980c469c39f7f9604601a9d143a60ff860cc8 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> AuthorDate: Tue May 21 17:31:28 2024 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Tue May 21 17:31:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766980c4
media-gfx/openscad: fixed compilation with boost 1.85 Closes: https://bugs.gentoo.org/932293 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch | 12 ++++++++++++ media-gfx/openscad/openscad-2021.01-r5.ebuild | 1 + 2 files changed, 13 insertions(+) diff --git a/media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch b/media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch new file mode 100644 index 000000000000..e3370f32fc38 --- /dev/null +++ b/media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -ur openscad-2021.01-orig/src/FileModule.cc openscad-2021.01/src/FileModule.cc +--- openscad-2021.01-orig/src/FileModule.cc 2021-01-31 21:17:41.000000000 +0100 ++++ openscad-2021.01/src/FileModule.cc 2024-05-20 07:50:31.746487490 +0200 +@@ -65,7 +65,7 @@ + auto ext = fs::path(path).extension().generic_string(); + + if (boost::iequals(ext, ".otf") || boost::iequals(ext, ".ttf")) { +- if (fs::is_regular(path)) { ++ if (fs::is_regular_file(path)) { + FontCache::instance()->register_font_file(path); + } else { + LOG(message_group::Error,Location::NONE,"","Can't read font with path '%1$s'",path); diff --git a/media-gfx/openscad/openscad-2021.01-r5.ebuild b/media-gfx/openscad/openscad-2021.01-r5.ebuild index 39b12ee55322..cf272f31a4f7 100644 --- a/media-gfx/openscad/openscad-2021.01-r5.ebuild +++ b/media-gfx/openscad/openscad-2021.01-r5.ebuild @@ -67,6 +67,7 @@ PATCHES=( "${FILESDIR}"/${P}-CGAL-build-fix-v5.4-renames-projection-traits-header.patch "${FILESDIR}"/${P}-Fix-build-issue-with-overloaded-join.patch "${FILESDIR}"/${P}-Remove-double-quoting-of-the-output-file-parameter-f.patch + "${FILESDIR}"/${P}-boost-1.85.patch ) src_configure() {
