Disable implicit qml_debug option for debug builds
authorDmitry Shachnev <mitya57@gmail.com>
Tue, 17 Jan 2017 13:40:52 +0000 (16:40 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 22 Aug 2017 11:41:04 +0000 (12:41 +0100)
We build PyQt in debug mode, but do not want the qml_debug option
because it has security implication (opens a local network port).

Origin: openSUSE, https://www.riverbankcomputing.com/pipermail/pyqt/2017-January/038608.html
Patch-Name: no_qml_debug.diff

Gbp-Pq: Name no_qml_debug.diff

configure.py

index a44c237a6267ec1f80e8a5ea9f0e4a367f35cac2..cb580084b7f850191dee4571133c6c5ca42719ac 100644 (file)
@@ -2244,7 +2244,7 @@ def pro_add_qt_dependencies(target_config, metadata, pro_lines, debug=None):
         pro_lines.append('QT += %s' % ' '.join(add))
 
     pro_lines.append(
-            'CONFIG += %s' % ('debug qml_debug' if debug else 'release'))
+            'CONFIG += %s' % ('debug' if debug else 'release'))
 
     if metadata.cpp11:
         pro_lines.append('CONFIG += c++11')