Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ldd auto-dependency warning for armv7 Debian package #56

Open
qwandor opened this issue Oct 24, 2020 · 1 comment
Open

Fix ldd auto-dependency warning for armv7 Debian package #56

qwandor opened this issue Oct 24, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@qwandor
Copy link
Collaborator

qwandor commented Oct 24, 2020

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 qwandor added the bug Something isn't working label Oct 24, 2020
@qwandor
Copy link
Collaborator Author

qwandor commented Dec 13, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant