1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Fix build of the Qt interface on FreeBSD 10.2 and 10.3. On FreeBSD 10.1, it

builds without issue (and thats what I originally tested this on and assumed
it would work on later releases), but there seems to be a regression in the
c++ headers that appears to have happend in r278724, so use libc++ from ports.

libtool: compile:  c++ -std=c++11 -DHAVE_CONFIG_H -I. -I../../..
-I../../../lang/cpp/src -I../../../src -I/usr/local/include/qt5/QtCore
-I/usr/local/include/qt5 -fpic -I/usr/local/include -I/usr/local/include
-DBUILDING_QGPGME -isystem /usr/local/include -O2 -pipe -fstack-protector
-isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
-MT qgpgmeencryptjob.lo -MD -MP -MF .deps/qgpgmeencryptjob.Tpo -c
qgpgmeencryptjob.cpp  -fPIC -DPIC -o .libs/qgpgmeencryptjob.o
qgpgmeencryptjob.cpp:133:9: error: no matching function for call to 'bind'
    run(std::bind(&encrypt,
        ^~~~~~~~~
/usr/include/c++/v1/functional:2184:1: note: candidate template ignored:
couldn't infer template argument '_Fp'
bind(_Fp&& __f, _BoundArgs&&... __bound_args)
^
/usr/include/c++/v1/functional:2193:1: note: candidate template ignored:
couldn't infer template argument '_Rp'
bind(_Fp&& __f, _BoundArgs&&... __bound_args)
^
1 error generated.
gmake[4]: *** [Makefile:801: qgpgmeencryptjob.lo] Error 1

Also, link to libgpgmepp already installed instead of rebuilding it.
This commit is contained in:
Jason E. Hale 2016-10-22 07:33:17 +00:00
parent 18086dd2df
commit 5640bb9654
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424451
2 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# $FreeBSD$
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -${SLAVEPORT}
MAINTAINER= jhale@FreeBSD.org

View File

@ -55,7 +55,7 @@ CONFIGURE_ARGS+= --disable-gpgsm-test
.if defined(SLAVEPORT)
LIB_DEPENDS+= libgpgme.so:security/gpgme
BUILD_WRKSRC= ${WRKSRC}/lang
BUILD_WRKSRC= ${WRKSRC}/lang/${BINDING_NAME}
INSTALL_WRKSRC= ${WRKSRC}/lang/${BINDING_NAME}
. if ${SLAVEPORT} == "cpp"
@ -77,7 +77,6 @@ BUILD_DEPENDS+= swig3.0:devel/swig30 \
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools${PYTHON_SUFFIX}>0:devel/py-setuptools${PYTHON_SUFFIX}
USES+= python
USE_PYTHON= py3kplist
BUILD_WRKSRC= ${WRKSRC}/lang/${BINDING_NAME}
CONFIGURE_ENV+= SWIG=${LOCALBASE}/bin/swig3.0
PLIST_SUB+= VERSION=${PORTVERSION}
CONFLICTS_INSTALL= py*-pyme-[0-9]*
@ -87,10 +86,16 @@ CONFLICTS_INSTALL= py*-pyme-[0-9]*
.include <bsd.port.pre.mk>
.if defined(SLAVEPORT)
. if (${SLAVEPORT} == "cpp" || ${SLAVEPORT} == "qt5")
. if ${SLAVEPORT} == "cpp"
. if ${OPSYS} == FreeBSD && ${OSVERSION} < 1001000
BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++
CXXFLAGS+= -stdlib=libc++ -I${LOCALBASE}/include/c++/v1
CXXFLAGS+= -stdlib=libc++ -isystem ${LOCALBASE}/include/c++/v1
. endif
. endif
. if ${SLAVEPORT} == "qt5"
. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1001000 || (${OSVERSION} >= 1001507 && ${OSVERSION} < 1100080))
BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++
CXXFLAGS+= -stdlib=libc++ -isystem ${LOCALBASE}/include/c++/v1
. endif
. endif
. if ${SLAVEPORT} == "python"
@ -106,6 +111,10 @@ post-patch:
.if defined(SLAVEPORT)
@${FIND} ${BUILD_WRKSRC} -name "Makefile.in" -type f | ${XARGS} \
${REINPLACE_CMD} -e 's|../../../src/libgpgme.la|-lgpgme|g'
. if ${SLAVEPORT} == "qt5"
@${FIND} ${BUILD_WRKSRC} -name "Makefile.in" -type f | ${XARGS} \
${REINPLACE_CMD} -e 's|../../cpp/src/libgpgmepp.la|-lgpgmepp|g'
. endif
.endif
@${REINPLACE_CMD} -e 's|^clfilesdir.*|clfilesdir=$$\(libdir\)/common-lisp/gpgme|g' \
${WRKSRC}/lang/cl/Makefile.in