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

27 lines
988 B
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()")