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

zpc: wish offline build #61

Open
rzr opened this issue Mar 6, 2025 · 1 comment
Open

zpc: wish offline build #61

rzr opened this issue Mar 6, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@rzr
Copy link
Collaborator

rzr commented Mar 6, 2025

Pulling deps at compilation time is a fragile practice:

For any reason it can fail, for instance some VPN may blacklist downloading executables and then FTBFS:

eg:

docker build https://github.com/SiliconLabsSoftware/z-wave-protocol-controller.git#ver_1.7.0

setup/debian: TODO: Support debian stable rustc=1.63 https://tracker.debian.org/pkg/rustc
setup/rust: TODO: Support https://tracker.debian.org/pkg/rustup
curl --insecure  --proto '=https' --tlsv1.2 -sSf  https://sh.rustup.rs | bash -s -- -y --default-toolchain 1.71.0
info: downloading installer
warn: curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
error: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.6Bmew165sU/rustup-init x86_64-unknown-linux-gnu
make: *** [helper.mk:131: setup/rust] Error 1
The command '/bin/sh -c echo "# log: Setup system" 

As suggested in log, using an integrated version (from distros) can prevent such breakage.

@rzr rzr changed the title zpc: Offline build zpc: wish offline build Mar 6, 2025
@rzr rzr added the help wanted Extra attention is needed label Mar 6, 2025
@rzr
Copy link
Collaborator Author

rzr commented Mar 6, 2025

Also observed with crates:

 Downloading crates ...
error: failed to download from `https://static.crates.io/crates/shlex/1.3.0/download`

Caused by:
  [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: self signed certificate in certificate chain)

Relate-to: #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant