-
Notifications
You must be signed in to change notification settings - Fork 50
Provide cross-compile $auto library support #117
Comments
Yeah, support for deps in cross-compilation would be great. What does it require? |
If I understand cargo-deb's usage of ldd at the moment, it could be emulated with the target-specific |
I run cargo deb inside docker image of the target machine. For example if I'm packing for a arm64 i use a image using arm64v8/rust:1.43-slim-buster base image. Cargo deb runs target arch and should resolve the correct dependencies. |
Using |
Any update on this? Can't rely on I guess We are running our build in a Jenkins that already uses a container, therefore we cannot spawn another container just for the |
I'm not working on this. It probably won't be done. |
I can try to give it some time. |
That would be great, thanks. Maybe you could use a Rust elf parsing library instead of shelling out to readelf/objdump? |
I just stumbled across this trying to fix another issue. I had a look at the linked elf parser and implemented a function that extracts the needed shared libs: #170 (comment) |
there's a wee interaction with cross here too (related to #99), if you compile in cross then run not sure there's a reasonable way to fix it, but it's easy-ish to manually specify the deps to avoid the problem. i figured i'd post here in case it helps someone else in the same basket. |
Currently, cargo-deb uses
ldd
statically, which will not work on a non-native target arch. The behavior of this could be emulated, as far as I'm aware.I'd be open to help work on this with some guidance on best steps.
The text was updated successfully, but these errors were encountered: