ayaports/backports/freecad/no-execinfo.patch
Antoine Martin 42bfe51a65
Some checks failed
/ lint (pull_request) Successful in 26s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 37s
/ deploy-aarch64 (pull_request) Successful in 53s
/ build-aarch64 (pull_request) Successful in 1m16s
backports/freecad: upgrade to 1.0.0
2024-12-13 12:28:51 -05:00

54 lines
1.5 KiB
Diff

From 9cd1f5e5b90ef2e17c61719ffdb2f6c43cbae185 Mon Sep 17 00:00:00 2001
From: Bryce Vandegrift <bryce@brycevandegrift.xyz>
Date: Sun, 24 Nov 2024 18:19:39 -0500
Subject: [PATCH] Remove dependency on execinfo.h
---
.../salomesmesh/src/DriverSTL/Basics_Utils.cpp | 11 -----------
src/App/Application.cpp | 1 -
2 files changed, 12 deletions(-)
diff --git a/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp b/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp
index 23c5083fdf..5ea06ad3f4 100644
--- a/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp
+++ b/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp
@@ -29,7 +29,6 @@
#ifndef WIN32
#include <unistd.h>
#include <sys/stat.h>
-#include <execinfo.h>
#endif
@@ -113,16 +112,6 @@ namespace Kernel_Utils
size_t size;
char **strings;
size_t i;
-
- size = backtrace (array, 40);
- strings = backtrace_symbols (array, size);
-
- for (i = 0; i < size; i++)
- {
- std::cerr << strings[i] << std::endl;
- }
-
- free (strings);
}
#else
#if (_MSC_VER >= 1400) // Visual Studio 2005
diff --git a/src/App/Application.cpp b/src/App/Application.cpp
index 9384790627..9155c00d25 100644
--- a/src/App/Application.cpp
+++ b/src/App/Application.cpp
@@ -1798,7 +1798,6 @@ static void freecadNewHandler ()
#endif
#if defined(FC_OS_LINUX)
-#include <execinfo.h>
#include <dlfcn.h>
#include <cxxabi.h>
--
2.47.0