graphics/mypaint: unbreak build on sparc64

Instead of setting environment variables to "" to avoid passing
-fopenmp to compiler and linker, disable OpenMP in setup.py.
Strangely, clang seems to ignore empty file name arguments on its
command line. However, gcc errors since it tries to access("", F_OK).

ok kmos, pamela (maintainer)
This commit is contained in:
tb 2021-05-19 02:11:08 +00:00
parent f9d899e6a0
commit dababe09ce
2 changed files with 10 additions and 12 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.4 2021/02/23 19:39:26 sthen Exp $
# $OpenBSD: Makefile,v 1.5 2021/05/19 02:11:08 tb Exp $
COMMENT = raster graphics editor for digital painters
MODPY_EGG_VERSION = 2.0.1
DISTNAME = mypaint-${MODPY_EGG_VERSION}
EXTRACT_SUFX = .tar.xz
REVISION = 1
REVISION = 2
CATEGORIES = graphics

View File

@ -1,18 +1,16 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2020/09/12 20:57:21 pamela Exp $
$OpenBSD: patch-setup_py,v 1.2 2021/05/19 02:11:08 tb Exp $
OpenBSD does not have OpenMP available in base or ports compilers
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -29,8 +29,8 @@ from setuptools.command.install_scripts import install
@@ -437,7 +437,7 @@ class BuildExt (build_ext):
# Some versions of clang requires different flag configurations than gcc
# to link correctly, so we enable configuration via environment variables.
-OPENMP_CFLAG = os.getenv("OPENMP_CFLAG", "-fopenmp")
-OPENMP_LDFLAG = os.getenv("OPENMP_LDFLAG", "-fopenmp")
+OPENMP_CFLAG = os.getenv("OPENMP_CFLAG", "")
+OPENMP_LDFLAG = os.getenv("OPENMP_LDFLAG", "")
def initialize_options(self):
self.set_rpath = False
- self.disable_openmp = False
+ self.disable_openmp = True
build_ext.initialize_options(self)
# Libmypaint dependency
def finalize_options(self):