10 lines
723 B
Python
10 lines
723 B
Python
#!/usr/bin/env python3
|
|
import hashlib,json,subprocess
|
|
from pathlib import Path
|
|
for name,expected in json.loads(Path('debian/bootstrap-payload.json').read_text()).items():
|
|
with Path(name).open('rb') as stream:assert hashlib.file_digest(stream,'sha256').hexdigest()==expected,name
|
|
prefix=Path('debian/plasma-next-rust-build-tools/opt/plasma-build/rust-1.88.0')
|
|
subprocess.run([str(prefix/'bin/rustc'),'--edition=2021','--crate-name','plasma_next_bootstrap_probe','obj-module/bootstrap-probe.rs','-o','obj-module/bootstrap-probe-after-packaging'],check=True)
|
|
subprocess.run([str(prefix/'bin/cargo'),'--version'],check=True)
|
|
print('Rust archives unchanged; compiler/linker and Cargo checks passed after Debian stripping.')
|