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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by David Runge (dvzrv) - Sunday, 27 November 2022, 15:13 GMT
@Xeonacid: Thank you for the ticket and the investigation!

I'll include the change in a pkgrel bump to qemu.
Comment by David Runge (dvzrv) - Sunday, 27 November 2022, 16:19 GMT
This feature is now available in qemu >= 7.1.0-11.
For posterity: Support for the feature has also been upstreamed into Linux (with >= 5.12).

Loading...