mijia-homie
mijia-homie copied to clipboard
Fix ldd auto-dependency warning for armv7 Debian package
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)
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.