Help needed for cross-building tsocks
Hi,
tsocks fails to cross build with [1]:
| dh_builtusing -a
| dh_builtusing: error: libc-dev-bin should match one installed package, got:
| glibc,2.41-8,amd64
>From my reading of dh-builtusing code, it queries dpkg database for libc-dev-bin package
which returns amd64 and tries to match it with hostarch which in this case is arm64.
I suppose this is due to libc-dev-bin being "M-A: foreign". So I tried replacing the field
in d/control with:
-Built-Using: ${dh-builtusing:libc-dev-bin}
+Built-Using: ${dh-builtusing:libc6-dev}
and it seems to work and resolves the correct variable in B-U field. I am however not
fully sure if this is the right thing to do.
Can someone advice please?
[1] https://crossqa.debian.net/build/tsocks_1.8beta5+ds1-3_arm64_20250606203137.log
Best,
Nilesh
Reply to: