qt5: unbreak for libressl-2.3

The workaround is to define OPENSSL_NO_SSL3_METHOD.
This commit is contained in:
Jürgen Buchmüller 2016-03-30 17:04:27 +02:00
parent 41bb138077
commit c0f7cf92c7

View file

@ -1,7 +1,7 @@
# Template file for 'qt5' # Template file for 'qt5'
pkgname=qt5 pkgname=qt5
version=5.6.0 version=5.6.0
revision=2 revision=3
wrksrc="qt-everywhere-opensource-src-${version}" wrksrc="qt-everywhere-opensource-src-${version}"
homepage="http://qt.io/" homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5)" short_desc="A cross-platform application and UI framework (QT5)"
@ -27,8 +27,6 @@ makedepends="
depends="qtchooser" depends="qtchooser"
replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0" replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0"
broken="error: SSLv3_client_method was not declared in this scope"
_move_examples() { _move_examples() {
if [ -d ${PKGDESTDIR}/usr/share/qt5/examples ]; then if [ -d ${PKGDESTDIR}/usr/share/qt5/examples ]; then
# The help files (*.qch) are in qt5-doc # The help files (*.qch) are in qt5-doc
@ -89,6 +87,9 @@ pre_configure() {
} }
do_configure() { do_configure() {
export LD="$CXX" export LD="$CXX"
# Work around SSLv3_{client,server}_method missing in libressl-2.3.3
export CFLAGS="-DOPENSSL_NO_SSL3_METHOD"
export CXXLAGS="-DOPENSSL_NO_SSL3_METHOD"
unset CPP AR AS RANLIB unset CPP AR AS RANLIB
local opts="-confirm-license -opensource \ local opts="-confirm-license -opensource \
-prefix /usr \ -prefix /usr \