mijia-homie icon indicating copy to clipboard operation
mijia-homie copied to clipboard

Fix ldd auto-dependency warning for armv7 Debian package

Open qwandor opened this issue 4 years ago • 1 comments

As mentioned on #55, building a Debian package for armv7 gives a warning that ldd doesn't recognise the binary format. This means that cargo-deb's automatic dependency feature doesn't work. We need to figure out how do get an ldd which supports other architectures, or patch cargo-deb to use something else.

TARGET=armv7-unknown-linux-gnueabihf ./package.sh
...
warning: ldd (/home/qwandor/projects/reading-xiaomi-temp/target/armv7-unknown-linux-gnueabihf/release/mijia-homie):  (no auto deps for /home/qwandor/projects/reading-xiaomi-temp/target/armv7-unknown-linux-gnueabihf/release/mijia-homie)

qwandor avatar Oct 24 '20 21:10 qwandor

Relatedly, homie-influx ends up depending on the wrong version of libssl1.1 (>= 1.1.1g, while Debian stable only has 1.1.1d), which makes it fail to install. The problem is that we run cargo deb in the GitHub actions host rather than in Docker, so ldd does the wrong thing.

Maybe we could patch cargo deb to use something different? Or as a temporary fix, hard-code the dependencies rather than using the automatic dependency feature.

qwandor avatar Dec 13 '20 23:12 qwandor