From 58851093c51711776e746d5fce7202ed65f01df1 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 29 Sep 2022 22:21:49 +0000 Subject: [PATCH] qemu-user-static: fix --credentials, add --fix-binary This allows qemu interpreters to be used transparently within chroots, without requiring the interpreter in the chroot. --- srcpkgs/qemu-user-static/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/qemu-user-static/template b/srcpkgs/qemu-user-static/template index 34de456db4a..4709d6ac8a3 100644 --- a/srcpkgs/qemu-user-static/template +++ b/srcpkgs/qemu-user-static/template @@ -2,7 +2,7 @@ # This package should be updated together with qemu pkgname=qemu-user-static version=7.0.0 -revision=1 +revision=2 wrksrc="qemu-${version}" build_style=configure configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec @@ -105,7 +105,7 @@ esac for _fmt in $_fmts; do eval "case $_fmt in $_omit) magic= ;; *) magic=\"\$_${_fmt}_magic\" mask=\"\$_${_fmt}_mask\" ;; esac" if [ "$magic" ]; then - binfmts+="/usr/bin/qemu-$_fmt-static --magic $magic --mask $mask --offset 0 --credential yes + binfmts+="/usr/bin/qemu-$_fmt-static --magic $magic --mask $mask --offset 0 --credentials yes --fix-binary yes " fi done