Salome HOME
StaticMeshPlugin - add second patch
[tools/sat_salome.git] / products / patches / PyQt-GLdispatch.patch
1 --- PyQt_ref/configure.py       2019-06-17 13:05:36.317488870 +0200
2 +++ PyQt/configure.py   2019-06-18 10:04:22.726188342 +0200
3 @@ -1901,6 +1901,18 @@
4  
5          return False
6  
7 +    ldout=get_command_output("ldconfig -p| grep 'libGLdispatch.so$'")
8 +    gld= ldout.read().strip().decode("utf-8") 
9 +    if not gld:
10 +      print("INFO: fine no need to link against libGLdispatch.so")
11 +    else:
12 +      print("INFO: adding libGLdispatch.so to the list of libraries...")
13 +      with open(mf, 'r') as f :
14 +        d = f.read()
15 +      d = d.replace('-lGL', '-lGL -lGLdispatch')
16 +      with open(mf, 'w') as f:
17 +        f.write(d)
18 +
19      # Restore the current directory.
20      if cwd is not None:
21          os.chdir(cwd)