39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
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)
|