qbittorrent: don't compile with c++11 fixes #4124

This commit is contained in:
Ophidiophobia 2018-10-24 18:48:16 +02:00 committed by maxice8
parent b8d67a93f5
commit e736b39ce5
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,39 @@
diff -ru build-x11.orig/src/src.pro build-x11/src/src.pro
Fix a SEGFAULT in qbittorrent when opening with existing torrents
or when adding a new torrent.
qbittorrent is compiled using -std=c++11 but boost and libtorrent-rasterbar
are compiled with whatever gcc uses as default and that seems to have switched
recently to c++14 in Void.
However switching below option to c++14 actually adds the
compile flag -std=g++1y which is a gnu variant of c++14 I am not sure if that
causes another trouble later.
Let's just mimic what the other packages do: do not set the support level
and let the compiler handle it.
PS: src/CMakeList.txt sets the support level based on compiler support but Void
builds using qmake instead of cmake.
see also https://github.com/qbittorrent/qBittorrent/issues/9485
--- build-x11.orig/src/src.pro 2018-10-24 16:22:14.256256510 +0200
+++ build-x11/src/src.pro 2018-10-24 16:50:50.260499780 +0200
@@ -2,9 +2,6 @@
TEMPLATE = app
CONFIG += qt thread silent
-# C++11 support
-CONFIG += c++11
-
# Platform specific configuration
win32: include(../winconf.pri)
macx: include(../macxconf.pri)
diff -ru build-nox.orig/src/src.pro build-nox/src/src.pro
--- build-nox.orig/src/src.pro 2018-10-24 16:22:14.256256510 +0200
+++ build-nox/src/src.pro 2018-10-24 16:50:50.260499780 +0200
@@ -2,9 +2,6 @@
TEMPLATE = app
CONFIG += qt thread silent
-# C++11 support
-CONFIG += c++11
-
# Platform specific configuration
win32: include(../winconf.pri)
macx: include(../macxconf.pri)

View File

@ -1,7 +1,7 @@
# Template file for 'qbittorrent'
pkgname=qbittorrent
version=4.1.3
revision=2
revision=3
create_wrksrc=yes
build_style=qmake
hostmakedepends="automake libtool pkg-config qt5-host-tools qt5-tools"