summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2024-05-21 19:31:28 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-05-21 19:31:28 +0200
commit766980c469c39f7f9604601a9d143a60ff860cc8 (patch)
tree0c0ed4752ea219389cd9c67898079ce95405573e /media-gfx/openscad/files
parentmedia-sound/ardour: fixed compilation with boost 1.85 (diff)
downloadgentoo-766980c469c39f7f9604601a9d143a60ff860cc8.tar.gz
gentoo-766980c469c39f7f9604601a9d143a60ff860cc8.tar.bz2
gentoo-766980c469c39f7f9604601a9d143a60ff860cc8.zip
media-gfx/openscad: fixed compilation with boost 1.85
Closes: https://bugs.gentoo.org/932293 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-gfx/openscad/files')
-rw-r--r--media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch12
1 files changed, 12 insertions, 0 deletions
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);