pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

prusaslicer: patch to fix ambiguous lambda return type on netbsd evbarm



Module Name:	pkgsrc-wip
Committed By:	Paul Ripke <stix%stix.id.au@localhost>
Pushed By:	stix
Date:		Sun Jun 4 21:55:29 2023 +1000
Changeset:	a3dea373abf2aa43b581f2f3ee0fe008d427a84c

Modified Files:
	prusaslicer/distinfo
Added Files:
	prusaslicer/patches/patch-src_libslic3r_SupportSpotsGenerator.cpp

Log Message:
prusaslicer: patch to fix ambiguous lambda return type on netbsd evbarm

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a3dea373abf2aa43b581f2f3ee0fe008d427a84c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 prusaslicer/distinfo                                      |  1 +
 .../patches/patch-src_libslic3r_SupportSpotsGenerator.cpp | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/prusaslicer/distinfo b/prusaslicer/distinfo
index e585b2a370..9cddbbdda1 100644
--- a/prusaslicer/distinfo
+++ b/prusaslicer/distinfo
@@ -13,6 +13,7 @@ SHA1 (patch-src_libslic3r_LocalesUtils.cpp) = 33a473cadbc05eba7f0c218110e53babea
 SHA1 (patch-src_libslic3r_LocalesUtils.hpp) = 88edc6156dd317e08ff6bfdf6f6f2d796c41ae05
 SHA1 (patch-src_libslic3r_Platform.cpp) = 3066585efc98ba4963e41bda5952df38a7b095a0
 SHA1 (patch-src_libslic3r_Platform.hpp) = 5626058616d04396bff6c8550951d04fe03249e4
+SHA1 (patch-src_libslic3r_SupportSpotsGenerator.cpp) = 332b8c8f0b4b7157d856bf0424e7c92a8a950f49
 SHA1 (patch-src_libslic3r_Thread.cpp) = 8aa488b933baa97132058f88a82eef8db73ab2f5
 SHA1 (patch-src_occt__wrapper_CMakeLists.txt) = 2e11271757bcc76f3832c8fd27943f3ef97136f1
 SHA1 (patch-src_slic3r_GUI_BitmapCache.cpp) = 9a464bcb09589e12de70ce57cda17f526df33b9b
diff --git a/prusaslicer/patches/patch-src_libslic3r_SupportSpotsGenerator.cpp b/prusaslicer/patches/patch-src_libslic3r_SupportSpotsGenerator.cpp
new file mode 100644
index 0000000000..a39d92a266
--- /dev/null
+++ b/prusaslicer/patches/patch-src_libslic3r_SupportSpotsGenerator.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix ambiguous lambda return type on netbsd evbarm.
+
+--- src/libslic3r/SupportSpotsGenerator.cpp.orig	2023-06-02 13:41:15.000000000 +0000
++++ src/libslic3r/SupportSpotsGenerator.cpp
+@@ -849,7 +849,7 @@ std::tuple<SupportPoints, PartialObjects
+                         }
+                     }
+                 }
+-                auto estimate_conn_strength = [bottom_z](const SliceConnection &conn) {
++                auto estimate_conn_strength = [bottom_z](const SliceConnection &conn) -> float {
+                     if (conn.area < EPSILON) { // connection is empty, does not exists. Return max strength so that it is not picked as the
+                                                // weakest connection.
+                         return INFINITY;


Home | Main Index | Thread Index | Old Index