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.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# This package should be updated together with qemu
|
# This package should be updated together with qemu
|
||||||
pkgname=qemu-user-static
|
pkgname=qemu-user-static
|
||||||
version=7.0.0
|
version=7.0.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="qemu-${version}"
|
wrksrc="qemu-${version}"
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
|
configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
|
||||||
@@ -105,7 +105,7 @@ esac
|
|||||||
for _fmt in $_fmts; do
|
for _fmt in $_fmts; do
|
||||||
eval "case $_fmt in $_omit) magic= ;; *) magic=\"\$_${_fmt}_magic\" mask=\"\$_${_fmt}_mask\" ;; esac"
|
eval "case $_fmt in $_omit) magic= ;; *) magic=\"\$_${_fmt}_magic\" mask=\"\$_${_fmt}_mask\" ;; esac"
|
||||||
if [ "$magic" ]; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user