summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-03-25 11:18:05 +0100
committerKhem Raj <raj.khem@gmail.com>2024-03-25 08:34:12 -0700
commit777d42c854e3b9ed03270aee9f70cb38572cb3de (patch)
treecc0f99152633fb972f2a352e1dedde7c2c8c68cc
parent9c00bf177685e01053e5d384ddb2053ec9d05e1f (diff)
downloadmeta-openembedded-777d42c854e3b9ed03270aee9f70cb38572cb3de.tar.gz
tracker-miners: fix reproducibility issue for landlock
If landlock feature is enabled there is buildpath leakage again. This is because in-tree rules get included. Disable the in-tree check to avoid it. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/tracker/tracker-miners/0001-fix-reproducibility.patch23
1 files changed, 22 insertions, 1 deletions
diff --git a/meta-gnome/recipes-gnome/tracker/tracker-miners/0001-fix-reproducibility.patch b/meta-gnome/recipes-gnome/tracker/tracker-miners/0001-fix-reproducibility.patch
index 68ff95e79..98618e5d3 100644
--- a/meta-gnome/recipes-gnome/tracker/tracker-miners/0001-fix-reproducibility.patch
+++ b/meta-gnome/recipes-gnome/tracker/tracker-miners/0001-fix-reproducibility.patch
@@ -92,6 +92,27 @@ index 6e5883288..04750f82b 100644
92 '-DLIBEXECDIR="@0@"'.format(get_option('prefix') / get_option('libexecdir')), 92 '-DLIBEXECDIR="@0@"'.format(get_option('prefix') / get_option('libexecdir')),
93 ], 93 ],
94 install: true, 94 install: true,
95diff --git a/src/libtracker-miners-common/tracker-landlock.c b/src/libtracker-miners-common/tracker-landlock.c
96index 27e7db65b..3021343eb 100644
97--- a/src/libtracker-miners-common/tracker-landlock.c
98+++ b/src/libtracker-miners-common/tracker-landlock.c
99@@ -276,7 +276,7 @@
100 LANDLOCK_ACCESS_FS_READ_DIR);
101 }
102 }
103-
104+#if 0
105 current_dir = g_get_current_dir ();
106
107 /* Detect running in-tree */
108@@ -296,7 +296,7 @@
109 in_tree_rules[i].flags);
110 }
111 }
112-
113+#endif
114 /* Add user cache for readonly databases */
115 #ifdef MINER_FS_CACHE_LOCATION
116 add_rule (landlock_fd, MINER_FS_CACHE_LOCATION,
95-- 117--
962.41.0 1182.41.0
97