summary refs log tree commit diff
path: root/pkgs/tools/X11
diff options
context:
space:
mode:
authorLouis Bettens <louis@bettens.info>2020-05-16 21:19:00 +0200
committerLouis Bettens <louis@bettens.info>2020-05-16 23:00:21 +0200
commit8b92f678f95d6f7924d2b53cca2e908f443a81fc (patch)
tree612c29390e7894d6d3c8dbfe8c1dcf7e124250c9 /pkgs/tools/X11
parent785268e1791a3848e5ab640e5ab5e8825480d1fa (diff)
downloadnixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar.gz
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar.bz2
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar.lz
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar.xz
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.tar.zst
nixpkgs-8b92f678f95d6f7924d2b53cca2e908f443a81fc.zip
xpra: fix #85694
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r--pkgs/tools/X11/xpra/default.nix1
-rw-r--r--pkgs/tools/X11/xpra/fix-paths.patch37
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix
index b33ca52146c..4de8d98850e 100644
--- a/pkgs/tools/X11/xpra/default.nix
+++ b/pkgs/tools/X11/xpra/default.nix
@@ -41,6 +41,7 @@ in buildPythonApplication rec {
     (substituteAll {
       src = ./fix-paths.patch;
       inherit (xorg) xkeyboardconfig;
+      inherit libfakeXinerama;
     })
   ];
 
diff --git a/pkgs/tools/X11/xpra/fix-paths.patch b/pkgs/tools/X11/xpra/fix-paths.patch
index a934e5e4cc3..59b6e7ee57a 100644
--- a/pkgs/tools/X11/xpra/fix-paths.patch
+++ b/pkgs/tools/X11/xpra/fix-paths.patch
@@ -29,3 +29,40 @@ index bd7023d..064c6b5 100644
 
  ###################################
  # Headers, python magic
+diff --git a/xpra/x11/fakeXinerama.py b/xpra/x11/fakeXinerama.py
+index c867258..617af7c 100755
+--- a/xpra/x11/fakeXinerama.py
++++ b/xpra/x11/fakeXinerama.py
+@@ -22,31 +22,7 @@ fakeXinerama_config_files = [
+            ]
+ 
+ def find_libfakeXinerama():
+-    libname = "fakeXinerama"
+-    try:
+-        from ctypes.util import find_library
+-        flibname = find_library("fakeXinerama")
+-        if flibname:
+-            libname = flibname
+-    except Exception:
+-        pass
+-    if POSIX:
+-        for lib_dir in os.environ.get("LD_LIBRARY_PATH", "/usr/lib").split(os.pathsep):
+-            lib_path = os.path.join(lib_dir, libname)
+-            if not os.path.exists(lib_dir):
+-                continue
+-            if os.path.exists(lib_path) and os.path.isfile(lib_path):
+-                return lib_path
+-    if LINUX:
+-        try:
+-            libpath = find_lib_ldconfig("fakeXinerama")
+-            if libpath:
+-                return libpath
+-        except Exception as e:
+-            log("find_libfakeXinerama()", exc_info=True)
+-            log.error("Error: cannot launch ldconfig -p to locate libfakeXinerama:")
+-            log.error(" %s", e)
+-    return find_lib(libname)
++    return "@libfakeXinerama@/lib/libfakeXinerama.so.1.0"
+ 
+ current_xinerama_config = None
+