1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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

This commit is contained in:
Yuri Victorovich 2022-01-21 09:06:26 -08:00
parent d6021375f3
commit 1ce05fa8c7
3 changed files with 28 additions and 2 deletions

View File

@ -1,5 +1,6 @@
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

View File

@ -0,0 +1,13 @@
- 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

View File

@ -0,0 +1,13 @@
- 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