diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /x11-wm/xpra/files/xpra-4.3-cpp.patch | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'x11-wm/xpra/files/xpra-4.3-cpp.patch')
-rw-r--r-- | x11-wm/xpra/files/xpra-4.3-cpp.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-wm/xpra/files/xpra-4.3-cpp.patch b/x11-wm/xpra/files/xpra-4.3-cpp.patch new file mode 100644 index 000000000000..41f1263e3465 --- /dev/null +++ b/x11-wm/xpra/files/xpra-4.3-cpp.patch @@ -0,0 +1,34 @@ +From c80d18b41701082e60ce6bfa5bd6a274affaff96 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Sun, 22 May 2022 12:00:01 +0100 +Subject: [PATCH] Most build systems respect the CPP env var instead of just + calling cpp + +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index f84d56c6d..7f0db3b69 100755 +--- a/setup.py ++++ b/setup.py +@@ -149,6 +149,7 @@ ARM = ARCH.startswith("arm") or ARCH.startswith("aarch") + print("ARCH=%s" % (ARCH,)) + + INCLUDE_DIRS = os.environ.get("INCLUDE_DIRS", os.path.join(sys.prefix, "include")).split(os.pathsep) ++CPP = os.environ.get("CPP", "cpp") + + from xpra.platform.features import LOCAL_SERVERS_SUPPORTED, SHADOW_SUPPORTED + shadow_ENABLED = SHADOW_SUPPORTED and DEFAULT +@@ -2423,7 +2424,7 @@ if v4l2_ENABLED: + ENABLE_DEVICE_CAPS = 0 + if os.path.exists(videodev2_h): + try: +- with subprocess.Popen("cpp -fpreprocessed %s | grep -q device_caps" % videodev2_h, ++ with subprocess.Popen("%s -fpreprocessed %s | grep -q device_caps" % (CPP, videodev2_h), + shell=True) as proc: + ENABLE_DEVICE_CAPS = proc.wait()==0 + except OSError: +-- +2.35.1 + |