#1133844 shim FTCBFS: multiple reasons

Package:
src:shim
Source:
src:shim
Submitter:
Helmut Grohne
Date:
2026-04-14 20:29:02 UTC
Severity:
normal
Tags:
#1133844#5
Date:
2026-04-14 12:03:13 UTC
From:
To:
shim regressed cross building from source for multiple reasons. The
immediate failure is rooted in debian/rules passing CC=gcc to the
Makefile and thereby overriding the cross compiler choice via the
CROSS_COMPILE variable. Seeding it from buildtools.mk is a natural way
to fix this.

Nextup, -lelf is linked into buildid, which is a build architecture
tool. Therefore, the libelf-dev dependency needs to be annotated
:native.

Last but not least, debian/check_nx uses objdump. That tools is
architecture-dependent and needs to be prefixed with the host
architecture.

Once addressing all of these, shim cross builds again.

Helmut