From ca37c4e89e5f6d6fd8c77e44e243d4c25a95928c Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 25 Apr 2019 08:54:31 +0200 Subject: [PATCH] chmod 0755 on qemu-user-static binary --- mmdebstrap | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 11c8235..604fd8c 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1509,6 +1509,11 @@ sub setup { error "cannot find $qemubin"; } copy $qemubin, "$options->{root}/$qemubin" or error "cannot copy $qemubin: $!"; + # File::Copy does not retain permissions but on some + # platforms (like Travis CI) the binfmt interpreter must + # have the executable bit set or otherwise execve will + # fail with EACCES + chmod 0755, "$options->{root}/$qemubin" or error "cannot chmod $qemubin: $!"; } else { error "unknown mode: $options->{mode}"; }