a symbol matches multiple clauses the last one takes precedence. If the catch-all is last it captures everything. In the case of Qt5 libraries this caused all symbols to have a Qt_5 label while some should have Qt_5_PRIVATE_API. This only affects lld because GNU ld always gives the catch-all lowest priority. Older versions of Qt5Webengine exported some memory allocation symbols from the bundled Chromium. Version 5.9 stopped exporting these [1] but the symbols were kept as weak wrappers for the standard allocation functions to maintain binary compatibility. [2][3] The problem is that the call to the standard function in these weak wrappers is only resolved to the standard function if there's a call to this standard function in other parts of Qt5Webengine, because only then is there a non-weak symbol that takes precedence over the weak one. If there's no such non-weak symbol the call in the weak wrapper resolves to the weak wrapper itself creating an infinite call loop that overflows the stack and causes a crash. Some of the allocation functions are variants of C++ new and delete and it probably depends on the compiler whether these variants are used in other parts of Qt5Webengine. Remove the weak wrappers (make them Linux specific). This isn't binary compatible but we are already breaking that with the changes to the symbol versions. [1]5c2cbfccf9
[2]2ed5054e3a
[3]009f5ebb4b
Bump all ports that depend on Qt5. PR: 234070 Exp-run by: antoine Approved by: kde (adridg)
74 lines
2 KiB
Makefile
74 lines
2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mathgl
|
|
DISTVERSION= 2.4.2.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= math graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION:R}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Library for high-quality scientific data visualization
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libgif.so:graphics/giflib \
|
|
libgsl.so:math/gsl \
|
|
libhdf5.so:science/hdf5 \
|
|
libhpdf.so:print/libharu \
|
|
libltdl.so:devel/libltdl \
|
|
libpng.so:graphics/png \
|
|
libsz.so:science/szip
|
|
|
|
USES= cmake jpeg gettext-runtime python:2.7
|
|
USE_GL= gl glu glut
|
|
USE_XORG= xi xmu
|
|
USE_LDCONFIG= yes
|
|
|
|
.for v in double gif glut gsl hdf5 jpeg ltdl mgl2 opengl pdf png zlib
|
|
CMAKE_ARGS+= -Denable-${v}=ON
|
|
.endfor
|
|
|
|
.for v in doc-info doc-html lgpl mgltex
|
|
CMAKE_ARGS+= -Denable-${v}=OFF
|
|
.endfor
|
|
|
|
OPTIONS_DEFINE= PYTHON MPI
|
|
OPTIONS_GROUP= GRAPHICS
|
|
OPTIONS_GROUP_GRAPHICS= QT5 FLTK WXGTK
|
|
OPTIONS_RADIO= THREADS
|
|
OPTIONS_RADIO_THREADS= PTHREADS OPENMP
|
|
OPTIONS_DEFAULT= QT5
|
|
OPTIONS_SUB= yes
|
|
GRAPHICS_DESC= Graphics support
|
|
PTHREADS_DESC= Enable POSIX threads support (broken, fix pending release)
|
|
OPENMP_DESC= Parallel processing support via OpenMP (broken, cmake bug)
|
|
FLTK_DESC= Enable fltk widget
|
|
PLIST_SUB= SHLIB_VER=7.5.0
|
|
|
|
PYTHON_CMAKE_BOOL= enable-python
|
|
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30 \
|
|
${PYNUMPY}
|
|
PYTHON_RUN_DEPENDS= ${PYNUMPY}
|
|
MPI_CMAKE_BOOL= enable-mpi
|
|
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
|
|
|
|
QT5_CMAKE_BOOL= enable-qt5
|
|
QT5_USE= QT=core,gui,opengl,printsupport,widgets,buildtools_build,qmake_build
|
|
QT5_USES= desktop-file-utils qt:5 shared-mime-info
|
|
FLTK_CMAKE_BOOL= enable-fltk
|
|
FLTK_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
|
|
FLTK_USE= XORG=ice,sm,x11,xext
|
|
WXGTK_CMAKE_BOOL= wx
|
|
WXGTK_USE= WX=3.0+
|
|
|
|
PTHREADS_CMAKE_BOOL= enable-pthread
|
|
OPENMP_CMAKE_BOOL= enable-openmp
|
|
|
|
post-patch-FLTK-on:
|
|
@${REINPLACE_CMD} -e 's|#include <Fl/|#include <FL/|' \
|
|
${WRKSRC}/mgllab/mgllab.* \
|
|
${WRKSRC}/utils/mglview.cpp \
|
|
${WRKSRC}/widgets/image.h
|
|
|
|
.include <bsd.port.mk>
|