Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739016 - app-admin/sudo: cross-compiling doesn't work with glibc-2.32
Summary: app-admin/sudo: cross-compiling doesn't work with glibc-2.32
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: PATCH
Depends on:
Blocks: glibc-2.32
  Show dependency tree
Reported: 2020-08-25 23:37 UTC by David Michael
Modified: 2020-09-07 20:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

sudo-1.9.2-sigabbrev_np patch (sudo-1.9.2-sigabbrev_np.patch,9.82 KB, patch)
2020-09-01 02:13 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2020-08-25 23:37:17 UTC
Since glibc 2.32 sys_sigabbrev was dropped, so packages need to be ported to sigabbrev_np.

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.

Can this be applied to sudo 1.9.2 until there is a new release?
Comment 1 Yixun Lan archtester gentoo-dev 2020-09-01 02:13:13 UTC
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.

Comment 2 Larry the Git Cow gentoo-dev 2020-09-07 20:44:30 UTC
The bug has been closed via the following commit(s):

commit 5ada6ccb950343e144eb49969b1f288fd930dc0a
Author:     David Michael <>
AuthorDate: 2020-09-03 12:49:40 +0000
Commit:     Mike Gilbert <>
CommitDate: 2020-09-07 20:44:01 +0000

    app-admin/sudo: glibc-2.32 port
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Signed-off-by: David Michael <>
    Signed-off-by: Mike Gilbert <>

 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(+)