void-packages/srcpkgs/qemu
Érico Nogueira ac0bf8bd58 qemu: restore mremap-efault patch.
This was deleted in b393370212, but was
still necessary. Without it, qemu in user mode has the wrong return
value for mremap, which leads to infinite looping in some
situations (afaik only with musl).  This could be observed with
qemu-user-static when crossbuilding webkit2gtk for armv*-musl, where
strace(1) showed infinite looping:

mremap(0x6525a000, 4096, 8192, 0^C)       = -1 ENOMEM (Out of memory)

The command being used was:

/usr/bin/qemu-arm-static -L /usr/arm-linux-musleabihf -E LD_LIBRARY_PATH=/usr/arm-linux-musleabihf/usr/lib:.libs: /builddir/webkitgtk-2.32.1/build/Source/WebKit/tmp-introspecth0go8pvu/WebKit2-4.0 --introspect-dump=/builddir/webkitgtk-2.32.1/build/Source/WebKit/tmp-introspecth0go8pvu/functions.txt,/builddir/webkitgtk-2.32.1/build/Source/WebKit/tmp-introspecth0go8pvu/dump.xml
2021-05-11 14:47:10 -03:00
..
files/qemu-ga
patches
INSTALL.msg
template