File: Fix-build-with-newer-boost.-Cherry-picked-from-upstream-d.patch

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (25 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Kristian Nielsen <knielsen@knielsen-hq.org>
Date: Wed, 10 Sep 2025 10:59:00 +0200
Subject: Fix build with newer boost. Cherry-picked from upstream,
 drop for next Openscad upstream release.

Origin: https://github.com/openscad/openscad/commit/cc51ea0a0dd14075df0f9af09ed4e20cce7fcb4c
Applied-Upstream: commit:cc51ea0a0dd14075df0f9af09ed4e20cce7fcb4c
Forwarded: not-needed
---
 src/FileModule.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/FileModule.cc b/src/FileModule.cc
index ce57b1f..71e343c 100644
--- a/src/FileModule.cc
+++ b/src/FileModule.cc
@@ -65,7 +65,7 @@ void FileModule::registerUse(const std::string path, const Location &loc)
 	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);