FS#76384 - [qemu-user-binfmt, qemu-user-static-binfmt] Add P flag
Attached to Project:
Arch Linux
Opened by Xeonacid (Xeonacid) - Wednesday, 02 November 2022, 11:59 GMT
Last edited by David Runge (dvzrv) - Sunday, 27 November 2022, 16:19 GMT
Opened by Xeonacid (Xeonacid) - Wednesday, 02 November 2022, 11:59 GMT
Last edited by David Runge (dvzrv) - Sunday, 27 November 2022, 16:19 GMT
|
Details
Description:
A previous discussion is at https://bugs.archlinux.org/task/75855#comment211062 but the P flag is not added yet. This flag preserves the original argv[0] ^[1],which helps the proper handling of programs which depend on their own name in argv[0], like wanderlust, gauche, and so on. ^[2] Adding P flag should not introduce any bad effect. A possible patch is attached, just add an argument to qemu-binfmt-conf.sh.^[3] [1]: https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html [2]: https://patchwork.ozlabs.org/project/qemu-devel/patch/27dfe8eb-adce-8db4-f28b-c42858b086db%40msgid.tls.msk.ru/ [3]: https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh#L208 |
This task depends upon
Closed by David Runge (dvzrv)
Sunday, 27 November 2022, 16:19 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with qemu-user-binfmt >= 7.1.0-11
Sunday, 27 November 2022, 16:19 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with qemu-user-binfmt >= 7.1.0-11
I'll include the change in a pkgrel bump to qemu.
For posterity: Support for the feature has also been upstreamed into Linux (with >= 5.12).