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)
64 lines
2 KiB
Makefile
64 lines
2 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= photivo
|
|
PORTVERSION= 0.0.2015.03.21
|
|
PORTREVISION= 7
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/${PORTNAME}/
|
|
DISTNAME= source-archive
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Free and open source photo processor
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= liblcms2.so:graphics/lcms2 \
|
|
libexiv2.so:graphics/exiv2 \
|
|
liblqr-1.so:graphics/liblqr-1 \
|
|
liblensfun.so:graphics/lensfun \
|
|
libGraphicsMagick.so:graphics/GraphicsMagick \
|
|
libfftw3.so:math/fftw3
|
|
|
|
USES= cmake compiler:c++11-lib desktop-file-utils dos2unix \
|
|
gettext-runtime gnome jpeg pkgconfig zip
|
|
USE_GNOME= glib20
|
|
DOS2UNIX_FILES= Sources/ptImage.cpp Sources/ptCheck.cpp Sources/filemgmt/ptFileMgrWindow.h
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
FLAVORS= qt5 qt4
|
|
|
|
qt4_CONFLICTS_INSTALL= ${PORTNAME}
|
|
qt4_PKGNAMESUFFIX= -qt4
|
|
qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt4
|
|
|
|
.if ${FLAVOR:U} == qt4
|
|
DEPRECATED= Qt4 has been EOL since december 2015
|
|
EXPIRATION_DATE=2019-03-15
|
|
USES+= qt:4
|
|
USE_QT= qmake_build moc_build rcc_build uic_build corelib gui network
|
|
CMAKE_ON= FORCE_QT4
|
|
.else
|
|
USES+= qt:5
|
|
USE_QT= qmake_build buildtools_build core gui network widgets
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,#define cimg_use_openmp 1,//&,' \
|
|
${WRKSRC}/Sources/ptCimg.cpp \
|
|
${WRKSRC}/Sources/ptImage_Pyramid.cpp
|
|
@${REINPLACE_CMD} -e '/#include "\.\.\/ptImage\.h"/ \
|
|
{ x ; s/.*/#include <cmath>/ ; H ; x ; }' \
|
|
${WRKSRC}/Sources/filters/ptFilter_EAWavelets.cpp \
|
|
${WRKSRC}/Sources/filters/ptFilter_FilmGrain.cpp \
|
|
${WRKSRC}/Sources/filters/ptFilter_HighpassSharpen.cpp \
|
|
${WRKSRC}/Sources/filters/ptFilter_PyramidDenoise.cpp \
|
|
${WRKSRC}/Sources/filters/ptFilter_StdCurve.cpp \
|
|
${WRKSRC}/Sources/filters/ptFilter_WaveletDenoise.cpp
|
|
@${REINPLACE_CMD} -e '/static const char src/s,char,int8_t,' \
|
|
${WRKSRC}/Sources/ptDcRaw.cpp
|
|
|
|
.include <bsd.port.mk>
|