2020-05-16 21:19:00 +02:00
|
|
|
diff --git a/setup.py b/setup.py
|
2022-01-22 10:41:09 +01:00
|
|
|
index fc67abb50a..c29db3a6d2 100755
|
2018-09-13 17:43:31 +02:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2022-01-22 10:41:09 +01:00
|
|
|
@@ -2348,17 +2348,7 @@ if v4l2_ENABLED:
|
|
|
|
break
|
2020-05-16 21:19:00 +02:00
|
|
|
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):
|
2022-01-22 10:41:09 +01:00
|
|
|
- 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")
|
2020-01-28 23:18:19 +01:00
|
|
|
+ ENABLE_DEVICE_CAPS = 1
|
|
|
|
with open(constants_pxi, "wb") as f:
|
|
|
|
f.write(b"DEF ENABLE_DEVICE_CAPS=%i" % ENABLE_DEVICE_CAPS)
|
2022-01-22 10:41:09 +01:00
|
|
|
add_cython_ext("xpra.codecs.v4l2.pusher",
|
2020-05-16 21:19:00 +02:00
|
|
|
diff --git a/xpra/x11/fakeXinerama.py b/xpra/x11/fakeXinerama.py
|
2022-01-22 10:41:09 +01:00
|
|
|
index d5c1c8bb10..88c77e8142 100755
|
2020-05-16 21:19:00 +02:00
|
|
|
--- 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)
|
2022-01-22 10:41:09 +01:00
|
|
|
- return find_lib("libfakeXinerama.so.1")
|
|
|
|
+ return "@libfakeXinerama@/lib/libfakeXinerama.so.1"
|
2020-05-16 21:19:00 +02:00
|
|
|
|
|
|
|
current_xinerama_config = None
|
|
|
|
|