Skip to content
Snippets Groups Projects
  1. Jun 16, 2020
    • Simon McVittie's avatar
      runtime: Save a bwrap invocation and a shell by not using globbing · b51d3fd8
      Simon McVittie authored
      
      This was using bwrap to make ${libdir}/dri available on
      /run/host/${libdir}/dri, in order to run the equivalent of:
      
          ln -fns /run/host/${libdir}/dri/* /overrides/lib/${tuple}/dri/
      
      Instead of using the shell wildcard '*' to implement readdir(), let's
      just call readdir(${libdir}/dri) ourselves, and fix up the symlink
      targets to point into /run/host/${libdir}/dri.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      b51d3fd8
    • Simon McVittie's avatar
      runtime: Reset PATH in the container · 3fea265c
      Simon McVittie authored
      
      The PATH from outside the container doesn't really make sense inside
      the container, because the directory hierarchy could be totally different
      (particularly on unusual host systems like GoboLinux and Exherbo).
      
      Resetting it also makes sure we don't pick up local installations in
      ~/bin or ~/.local/bin, which could have dependencies that are
      unsatisfied in the container.
      
      Conversely, the PATH from the host might not include everything we need
      in the container. If the host system is an OS that only supports
      merged-/usr use, like Arch Linux, then it might not have both /usr/bin
      and /bin in the PATH - but if the container is not merged /usr, like a
      scout SDK sysroot, then we'll need both.
      
      This approximately matches Flatpak's behaviour: by default it resets
      PATH to /app/bin:/usr/bin (because it puts app-specific content in /app
      and can assume that its runtimes are always merged-/usr).
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      3fea265c
    • Simon McVittie's avatar
      sysroot: Add a way to mount more directories rw · 56298307
      Simon McVittie authored
      
      This will make it easier to install a new pressure-vessel build into a
      relocatable directory hierarchy for testing.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      56298307
    • Simon McVittie's avatar
      tests: Work around libldap-2.4.so.2 not loading successfully on Arch · 862982b7
      Simon McVittie authored
      
      Workaround for T21931. Fully fixing this is low-priority, because we
      have been removing libldap dependencies anyway.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      862982b7
  2. Jun 15, 2020
  3. Jun 12, 2020
  4. Jun 09, 2020
  5. Jun 03, 2020
  6. Jun 01, 2020
  7. May 21, 2020
Loading