Since glibc 2.32 sys_sigabbrev was dropped, so packages need to be ported to sigabbrev_np. https://sourceware.org/glibc/wiki/Release/2.32#Packaging_Changes Missing this causes it to try to execute a program produced by the cross-compiler. checking for undeclared sys_sigabbrev... no ... riscv64-gentoo-linux-gnu-gcc -I../../include -I../.. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DZLIB_CONST -D_FORTIFY_SOURCE=2 -DDEFAULT_TEXT_DOMAIN=\"sudo\" -O2 -pipe -ggdb -flto=jobserver -fvisibility=hidden ./mksigname.c -o mksigname ./mksigname > signame.c /bin/sh: ./mksigname: cannot execute binary file: Exec format error I reported this upstream and the fix was committed. https://www.sudo.ws/repos/sudo/raw-rev/e30482f26924 Can this be applied to sudo 1.9.2 until there is a new release?
Created attachment 657672 [details, diff] sudo-1.9.2-sigabbrev_np patch ping @base-system, how about apply this patch? I can do this if people give a ACK It should be pretty much safe to apply this patch, since it keeps the compatibility for old glibc versions. thanks
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ada6ccb950343e144eb49969b1f288fd930dc0a commit 5ada6ccb950343e144eb49969b1f288fd930dc0a Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2020-09-03 12:49:40 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-09-07 20:44:01 +0000 app-admin/sudo: glibc-2.32 port Closes: https://bugs.gentoo.org/739016 Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> app-admin/sudo/files/sudo-1.9.2-glibc-2.32.patch | 308 +++++++++++++++++++++++ app-admin/sudo/sudo-1.9.2-r1.ebuild | 265 +++++++++++++++++++ 2 files changed, 573 insertions(+)