Package: sbuild
Version: 0.85.10

Hi,

seems like that all cross builders still use bookworm or schroot. Trying
to cross build using unstable sbuild and unshare doesn't work well:

/usr/bin/dumb-init: 1: /usr/bin/dumb-init: 1: ELF�@@P@8: not found

dumb-init is not Multi-Arch: foreign (but probably should be) and hence
sbuild installs the foreign one that cannot be run. Since we cannot mark
it Multi-Arch: foreign in bookworm and still want to cross build
packages there, I suggest annotating it :native as a workaround.

Or you may steal from unschroot:

perl -e '$r=255<<8;do{$p=wait;$r=$?,$p=0 if 
$p=='"$pid"'}while($p>0);exit(0<$r<256?128|$r:$r>>8);'

In order to use this, pid 1 would have to fork the target process,
record its $pid and then execve into this perl. Exit codes are directly
mapped, signal exits are mapped to 128|$signal.

Let me note that adding dumb-init means that we build in non-minimal
chroots.

Helmut

Reply via email to