void-packages/srcpkgs/gnuradio/patches/fix-x11-library-call.patch

40 lines
1.5 KiB
Diff

diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index fc5e9276c..41ea88b4c 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -32,7 +32,7 @@ if __name__ == '__main__':
import ctypes
if sys.platform.startswith('linux'):
try:
- X11 = ctypes.cdll.LoadLibrary('libX11.so')
+ X11 = ctypes.cdll.LoadLibrary('libX11.so.6')
X11.XInitThreads()
except:
print("Warning: failed to XInitThreads()")
diff --git a/gr-uhd/apps/uhd_siggen_gui b/gr-uhd/apps/uhd_siggen_gui
index 0d9cb56c2..ea5e430f3 100755
--- a/gr-uhd/apps/uhd_siggen_gui
+++ b/gr-uhd/apps/uhd_siggen_gui
@@ -29,7 +29,7 @@ if __name__ == '__main__':
import ctypes
if sys.platform.startswith('linux'):
try:
- X11 = ctypes.cdll.LoadLibrary('libX11.so')
+ X11 = ctypes.cdll.LoadLibrary('libX11.so.6')
X11.XInitThreads()
except:
print("Warning: failed to XInitThreads()")
diff --git a/grc/core/generator/flow_graph.py.mako b/grc/core/generator/flow_graph.py.mako
index b1c369177..6e9c56a08 100644
--- a/grc/core/generator/flow_graph.py.mako
+++ b/grc/core/generator/flow_graph.py.mako
@@ -29,7 +29,7 @@ if __name__ == '__main__':
import sys
if sys.platform.startswith('linux'):
try:
- x11 = ctypes.cdll.LoadLibrary('libX11.so')
+ x11 = ctypes.cdll.LoadLibrary('libX11.so.6')
x11.XInitThreads()
except:
print("Warning: failed to XInitThreads()")