File: wxpython-webview-optional.patch

package info (click to toggle)
wxpython3.0 3.0.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 482,760 kB
  • ctags: 518,293
  • sloc: cpp: 2,127,226; python: 294,045; makefile: 51,942; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (23 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Allow wx.html2 to be packaged separately
 Installing it drags in the "libwxgtk-webview3.0-0v5" runtime package which
 drags in rather a lot of packages.
Author: Scott Talbert <swt@techie.net>
Bug-Debian: http://bugs.debian.org/821934
Forwarded: not-needed
Last-Update: 2016-04-30

diff -up wxpython3.0-3.0.2.0+dfsg/wxPython/config.py.webview wxpython3.0-3.0.2.0+dfsg/wxPython/config.py
--- wxpython3.0-3.0.2.0+dfsg/wxPython/config.py.webview	2016-04-29 00:06:26.000000000 -0400
+++ wxpython3.0-3.0.2.0+dfsg/wxPython/config.py	2016-04-29 20:14:59.830690131 -0400
@@ -660,7 +660,10 @@ def adjustLFLAGS(lflags, libdirs, libs):
         if flag[:2] == '-L':
             libdirs.append(flag[2:])
         elif flag[:2] == '-l':
-            libs.append(flag[2:])
+            # Remove 'webview' from the default libs so we don't always link
+            # with it.  It gets added specifically for html2 elsewhere.
+            if flag[2:] != makeLibName('webview')[0]:
+                libs.append(flag[2:])
         else:
             newLFLAGS.append(flag)
     return removeDuplicates(newLFLAGS)