From a71488d4592cef29d6db0981cd0721250eebaff4 Mon Sep 17 00:00:00 2001
From: Poncho <poncho@spahan.ch>
Date: Sat, 9 Feb 2019 09:47:40 +0100
Subject: [PATCH] bind mount /etc/ld.so.cache to the sandbox

without /etc/ld.so.cache available in the sandbox, tests fail on gentoo with:
/usr/bin/ffmpeg: error while loading shared libraries: libstdc++.so.6:
    cannot open shared object file: No such file or directory
---
 libmat2/subprocess.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmat2/subprocess.py b/libmat2/subprocess.py
index 25646f8..e9c66d9 100644
--- a/libmat2/subprocess.py
+++ b/libmat2/subprocess.py
@@ -47,6 +47,7 @@ def _get_bwrap_args(tempdir: str,
          '--chdir', cwd,
          '--unshare-all',
          '--new-session',
+         '--ro-bind', '/etc/ld.so.cache', '/etc/ld.so.cache',
          # XXX: enable --die-with-parent once all supported platforms have
          # a bubblewrap recent enough to support it.
          # '--die-with-parent',
-- 
GitLab