unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 793f6a414bdfe892f81774e309ac540a4bbfc3fc 2015 bytes (raw)
name: gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
Share /gnu/store in the BubbleWrap container and remove FHS mounts.

This is a Guix-specific patch not meant to be upstreamed.
diff --git a/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp b/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
index f0a5e4b05dff..88b11f806968 100644
--- a/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
+++ b/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
@@ -854,27 +854,18 @@ GRefPtr<GSubprocess> bubblewrapSpawn(GSubprocessLauncher* launcher, const Proces
         "--ro-bind", "/sys/dev", "/sys/dev",
         "--ro-bind", "/sys/devices", "/sys/devices",
 
-        "--ro-bind-try", "/usr/share", "/usr/share",
-        "--ro-bind-try", "/usr/local/share", "/usr/local/share",
         "--ro-bind-try", DATADIR, DATADIR,
-
-        // We only grant access to the libdirs webkit is built with and
-        // guess system libdirs. This will always have some edge cases.
-        "--ro-bind-try", "/lib", "/lib",
-        "--ro-bind-try", "/usr/lib", "/usr/lib",
-        "--ro-bind-try", "/usr/local/lib", "/usr/local/lib",
         "--ro-bind-try", LIBDIR, LIBDIR,
-#if CPU(ADDRESS64)
-        "--ro-bind-try", "/lib64", "/lib64",
-        "--ro-bind-try", "/usr/lib64", "/usr/lib64",
-        "--ro-bind-try", "/usr/local/lib64", "/usr/local/lib64",
-#else
-        "--ro-bind-try", "/lib32", "/lib32",
-        "--ro-bind-try", "/usr/lib32", "/usr/lib32",
-        "--ro-bind-try", "/usr/local/lib32", "/usr/local/lib32",
-#endif
-
         "--ro-bind-try", PKGLIBEXECDIR, PKGLIBEXECDIR,
+
+        // Bind mount the store inside the WebKitGTK sandbox.
+        "--ro-bind", "@storedir@", "@storedir@",
+
+	// This is needed for locales in /run/current-system/locales
+	"--ro-bind-try", "@localedir@", "@localedir@",
+
+	// This is needed for video hardware acceleration (va-api) via /lib/dri
+	"--ro-bind-try", "@dridir@", "@dridir@",
     };
 
     if (launchOptions.processType == ProcessLauncher::ProcessType::DBusProxy) {

debug log:

solving 793f6a414b ...
found 793f6a414b in https://yhetil.org/guix-patches/02189bbb2583491df0be62c56568caa4bf245997.1711245733.git.abhi@quic.us/ ||
	https://yhetil.org/guix-patches/43974b799a22fd2b469494040b2ff02335f92315.1711259689.git.abhi@quic.us/
found 18ddb645ad in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 18ddb645ad6d780f07a271753d1f1a65081b9568	gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch

applying [1/1] https://yhetil.org/guix-patches/02189bbb2583491df0be62c56568caa4bf245997.1711245733.git.abhi@quic.us/
diff --git a/gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch b/gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch
index 18ddb645ad..793f6a414b 100644

Checking patch gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch...
Applied patch gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch cleanly.

skipping https://yhetil.org/guix-patches/43974b799a22fd2b469494040b2ff02335f92315.1711259689.git.abhi@quic.us/ for 793f6a414b
index at:
100644 793f6a414bdfe892f81774e309ac540a4bbfc3fc	gnu/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).