Commit 03213463 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Make Exherbo architecture-specific stuff available too

I'm using Exherbo as an example of a host OS with an unusual layout
that breaks libcapsule's assumptions, in order to get the framework
in place for being able to receive patches from other weirder host OSs.
Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent a07f49d4
......@@ -23,6 +23,7 @@ use strict;
use warnings;
use Cwd qw(abs_path);
use File::Glob ':bsd_glob';
use FindBin;
use Exporter qw(import);
use IPC::Run qw(run);
......@@ -407,9 +408,14 @@ sub bind_usr {
closedir $dir;
if (-e "$tree/etc/") {
push @bwrap, "--ro-bind", "$tree/etc/",
foreach my $ldso (bsd_glob("$tree/etc/"),
bsd_glob("$tree/etc/ld-*.path")) {
next unless -e $ldso;
my $base = $ldso;
$base =~ s,.*/,,;
push @bwrap, "--ro-bind", $ldso, "$dest/etc/$base";
# TODO: This wouldn't be necessary in a purely glvnd system
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment