diff options
Diffstat (limited to 'pkgs/tools/X11/xpra/fix-paths.patch')
-rw-r--r-- | pkgs/tools/X11/xpra/fix-paths.patch | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/tools/X11/xpra/fix-paths.patch b/pkgs/tools/X11/xpra/fix-paths.patch index b5a58bb03f84b..aee47a6ad53b6 100644 --- a/pkgs/tools/X11/xpra/fix-paths.patch +++ b/pkgs/tools/X11/xpra/fix-paths.patch @@ -1,23 +1,28 @@ diff --git a/setup.py b/setup.py -index f962330..b02b6dd 100755 +index fc67abb50a..c29db3a6d2 100755 --- a/setup.py +++ b/setup.py -@@ -2224,11 +2224,7 @@ if v4l2_ENABLED: - videodev2_h = "/usr/include/linux/videodev2.h" +@@ -2348,17 +2348,7 @@ if v4l2_ENABLED: + break constants_pxi = "xpra/codecs/v4l2/constants.pxi" if not os.path.exists(videodev2_h) or should_rebuild(videodev2_h, constants_pxi): - ENABLE_DEVICE_CAPS = 0 - if os.path.exists(videodev2_h): -- with open(videodev2_h) as f: -- hdata = f.read() -- ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0) +- try: +- with subprocess.Popen("cpp -fpreprocessed %s | grep -q device_caps" % videodev2_h, +- shell=True) as proc: +- ENABLE_DEVICE_CAPS = proc.wait()==0 +- except OSError: +- with open(videodev2_h) as f: +- hdata = f.read() +- ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0) +- print("failed to detect device caps, assuming off") + ENABLE_DEVICE_CAPS = 1 with open(constants_pxi, "wb") as f: f.write(b"DEF ENABLE_DEVICE_CAPS=%i" % ENABLE_DEVICE_CAPS) - cython_add(Extension("xpra.codecs.v4l2.pusher", - + add_cython_ext("xpra.codecs.v4l2.pusher", diff --git a/xpra/x11/fakeXinerama.py b/xpra/x11/fakeXinerama.py -index c867258..617af7c 100755 +index d5c1c8bb10..88c77e8142 100755 --- a/xpra/x11/fakeXinerama.py +++ b/xpra/x11/fakeXinerama.py @@ -22,31 +22,7 @@ fakeXinerama_config_files = [ @@ -48,8 +53,8 @@ index c867258..617af7c 100755 - 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" +- return find_lib("libfakeXinerama.so.1") ++ return "@libfakeXinerama@/lib/libfakeXinerama.so.1" current_xinerama_config = None |