This is required for building the vendored dependencies on Fedora. This in-turn is required for an OpenSSL build that does not include .dll and Windows binary files. Resolves: RHEL-68139 Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
24 lines
640 B
Bash
24 lines
640 B
Bash
#!/bin/bash
|
|
|
|
# fail upon error
|
|
set -e
|
|
|
|
# Run on Fedora
|
|
# make sure all dependencies are yum installed
|
|
|
|
# cd <guest-components-dir-ready-to-be-built>
|
|
|
|
# create a .cargo/config.toml
|
|
if [ ! -f .cargo/config.toml ]; then
|
|
rpm -E '%{cargo_prep}' > cargo_prep.sh
|
|
bash cargo_prep.sh
|
|
fi
|
|
|
|
# run cargo vendor-filtered --offline
|
|
cargo vendor-filterer --respect-source-config --offline --platform x86_64-unknown-linux-gnu --keep-dep-kinds all --all-features --exclude-crate-path "idna#tests" --exclude-crate-path "idna-0.4.0#tests"
|
|
|
|
# run tar
|
|
tar -czf snphost-0.5.0-vendor-FEDORA.tar.gz vendor/
|
|
|
|
echo snphost-0.5.0-vendor-FEDORA.tar.gz created
|