Skip to content
Snippets Groups Projects
Commit 1ce05fa8 authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

graphics/art: Add workaround for OpenMP-related crash when OPENMP=yes

parent d6021375
Branches
Tags
No related merge requests found
PORTNAME= art
DISTVERSION= 1.12
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://bitbucket.org/agriggio/art/downloads/
PKGNAMESUFFIX= -raw-image-editor
......@@ -33,10 +34,9 @@ USE_XORG= x11
EXTRACT_CMD= gtar
OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT= # OPENMP
OPTIONS_DEFAULT= OPENMP
OPENMP_CMAKE_BOOL= OPTION_OMP
OPENMP_BROKEN= OpenMP multithreading is broken, see https://bitbucket.org/agriggio/art/issues/227
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/share/doc/ART
......
- workaround for https://bitbucket.org/agriggio/art/issues/227 caused by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261360
--- rtgui/main-cli.cc.orig 2022-01-20 17:13:45 UTC
+++ rtgui/main-cli.cc
@@ -121,6 +121,8 @@ std::pair<bool, bool> dontLoadCache(int argc, char **a
int main (int argc, char **argv)
{
+ setenv("LIBOMP_NUM_HIDDEN_HELPER_THREADS", "0", 1);
+
#ifdef WITH_MIMALLOC
mi_version();
#endif
- workaround for https://bitbucket.org/agriggio/art/issues/227 caused by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261360
--- rtgui/main.cc.orig 2022-01-20 17:14:43 UTC
+++ rtgui/main.cc
@@ -370,6 +370,8 @@ void show_gimp_plugin_info_dialog(Gtk::Window *parent)
int main (int argc, char **argv)
{
+ setenv("LIBOMP_NUM_HIDDEN_HELPER_THREADS", "0", 1);
+
#ifdef WITH_MIMALLOC
mi_version();
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment