Compare commits
1 Commits
c10s
...
c10s-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01cada75fb |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,6 @@
|
||||
/snpguest-0.8.3.tar.gz
|
||||
/snpguest-0.8.3-vendor.tar.gz
|
||||
/snpguest-0.8.0.tar.gz
|
||||
/snpguest-0.8.0-vendor-FEDORA.tar.gz
|
||||
/snpguest-0.9.0.tar.gz
|
||||
/snpguest-0.9.0-vendor-FEDORA.tar.gz
|
||||
|
||||
61
create_vendor_source.sh
Normal file
61
create_vendor_source.sh
Normal file
@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=0.9.0
|
||||
|
||||
clear && rm ./snpguest-$VERSION-vendor-FEDORA.tar.gz
|
||||
|
||||
# fail upon error
|
||||
set -e
|
||||
|
||||
sudo dnf update -y
|
||||
|
||||
FEDORA_DEPS="rust-asn1-rs-devel \
|
||||
rust-clap-num-devel \
|
||||
rust-nix0.23-devel \
|
||||
rust-rand+default-devel \
|
||||
rust-reqwest-devel \
|
||||
rust-tss-esapi-devel \
|
||||
rust-x509-parser-devel \
|
||||
rust-encoding_rs-devel \
|
||||
rust-h2-devel \
|
||||
rust-hyper-rustls-devel \
|
||||
rust-env_logger-devel \
|
||||
rust-anyhow-devel \
|
||||
rust-hyper-tls-devel \
|
||||
rust-mime-devel \
|
||||
rust-anstream-devel \
|
||||
rust-futures-io-devel"
|
||||
|
||||
# Run on Fedora
|
||||
# Install all dependencies from fedora.
|
||||
sudo dnf install -y $FEDORA_DEPS && sudo dnf update -y $FEDORA_DEPS
|
||||
|
||||
if [ ! -d snpguest-$VERSION ]; then
|
||||
tar -xf snpguest-$VERSION.tar.gz
|
||||
fi
|
||||
|
||||
git add snpguest-$VERSION/Cargo.toml
|
||||
|
||||
cd snpguest-$VERSION
|
||||
|
||||
# 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 snpguest-$VERSION-vendor-FEDORA.tar.gz vendor/
|
||||
|
||||
mv snpguest-$VERSION-vendor-FEDORA.tar.gz ../
|
||||
|
||||
git diff Cargo.toml > ../fedora-vendored-deps.diff
|
||||
|
||||
git reset --hard
|
||||
|
||||
centpkg new-sources snpguest-$VERSION.tar.gz snpguest-$VERSION-vendor-FEDORA.tar.gz
|
||||
|
||||
echo snpguest-$VERSION-vendor-FEDORA.tar.gz created
|
||||
32
fedora-vendored-deps.diff
Normal file
32
fedora-vendored-deps.diff
Normal file
@ -0,0 +1,32 @@
|
||||
diff --git a/snpguest-0.9.0/Cargo.toml b/snpguest-0.9.0/Cargo.toml
|
||||
index b65bbe2..d7fda71 100644
|
||||
--- a/snpguest-0.9.0/Cargo.toml
|
||||
+++ b/snpguest-0.9.0/Cargo.toml
|
||||
@@ -20,21 +20,18 @@ hyperv = ["tss-esapi"]
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5", features = [ "derive" ] }
|
||||
-env_logger = "0.10.0"
|
||||
+env_logger = "0.11.10"
|
||||
anyhow = "1.0.69"
|
||||
sev = { version = "6.0.0", default-features = false, features = ['openssl','snp']}
|
||||
nix = "^0.23"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
bincode = "^1.2.1"
|
||||
-openssl = { version = "^0.10", features = ["vendored"]}
|
||||
-reqwest = { version="0.11.10", features = ["blocking"] }
|
||||
+openssl = { version = "^0.10" }
|
||||
+reqwest = { version="0.13.3", features = ["blocking"] }
|
||||
hex = "0.4"
|
||||
-x509-parser = { version="0.16.0", features=["verify"] }
|
||||
-asn1-rs = "0.6.2"
|
||||
-rand = "0.8.5"
|
||||
+x509-parser = { version="0.18.1", features=["verify"] }
|
||||
+asn1-rs = "0.7.1"
|
||||
+rand = "0.10.1"
|
||||
tss-esapi = { version = "7.2", optional=true }
|
||||
msru = "0.2.0"
|
||||
colorful = "0.2.2"
|
||||
-bitfield = "0.15.0"
|
||||
-clap-num = "1.1.1"
|
||||
-base64 = "0.22.1"
|
||||
@ -1,13 +0,0 @@
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 8fef511..e597777 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -26,7 +26,7 @@ sev = { version = "5.0.0", default-features = false, features = ['openssl','snp'
|
||||
nix = "^0.23"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
bincode = "^1.2.1"
|
||||
-openssl = { version = "^0.10", features = ["vendored"]}
|
||||
+openssl = { version = "^0.10" }
|
||||
reqwest = { version="0.11.10", features = ["blocking"] }
|
||||
hex = "0.4"
|
||||
x509-parser = { version="0.16.0", features=["verify"] }
|
||||
@ -1,7 +1,7 @@
|
||||
# Generated by rust2rpm 27
|
||||
%bcond check 1
|
||||
|
||||
%global version 0.8.3
|
||||
%global version 0.9.0
|
||||
%global crate snpguest
|
||||
|
||||
Name: snpguest
|
||||
@ -10,9 +10,16 @@ Release: 1%{?dist}
|
||||
Summary: A CLI tool for interacting with SEV-SNP guest environment
|
||||
|
||||
URL: https://github.com/virtee/%{crate}
|
||||
Source: https://github.com/virtee/%{crate}/archive/refs/tags/%{crate}-%{version}.tar.gz
|
||||
Source1: https://github.com/virtee/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
||||
Patch: snpguest-remove-openssl-vendored-dependency.diff
|
||||
Source: https://github.com/virtee/%{crate}/archive/refs/tags/snpguest-%{version}.tar.gz
|
||||
Source1: snpguest-%{version}-vendor-FEDORA.tar.gz
|
||||
|
||||
# Creating vendor tar (on latest Fedora under a snpguest dir):
|
||||
# dnf install <all dependencies>
|
||||
# Edit create_vendor_source.sh to reflect proper version number being updated.
|
||||
# bash create_vendor_source.sh
|
||||
|
||||
# To build vendored dependencies on Fedora, update the env_logger dependency to match Fedora's present version.
|
||||
Patch1: fedora-vendored-deps.diff
|
||||
|
||||
# snpguest is a tool using features specific to AMD EPYC processors (x86_64).
|
||||
ExclusiveArch: x86_64
|
||||
@ -44,7 +51,7 @@ Administrative utility for AMD SEV-SNP.}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1 -a1
|
||||
rm -rf Cargo.lock
|
||||
rm -f Cargo.lock
|
||||
%cargo_prep -v vendor
|
||||
|
||||
%build
|
||||
@ -61,6 +68,11 @@ rm -rf Cargo.lock
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jun 25 2026 Tyler Fanelli <tfanelli@redhat.com> - 0.9.0-1
|
||||
- Update to 0.9.0
|
||||
- Remove vendor tarball from git.
|
||||
- Resolves: RHEL-211387
|
||||
|
||||
* Wed Feb 12 2025 Tyler Fanelli <tfanelli@redhat.com> - 0.8.3-1
|
||||
- Initial commit on c10s
|
||||
Resolves: RHELPLAN-171501
|
||||
|
||||
4
sources
4
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (snpguest-0.8.3.tar.gz) = 1c3535000d82013dec3edb338306b5aca62fda38f9d12e7e0b540a82ef5a23699bcf0b14c72f695c0ce785418c2889fe820b8f036fbbcadebecbc80beb8e2d5e
|
||||
SHA512 (snpguest-0.8.3-vendor.tar.gz) = ada1cd1b4185bb2e40030834a696593fbc0b3204f84ec53333c62573ea272695b53da6b158d7d859d38766e2755a846bf0c357b12ada9437743af326854c126f
|
||||
SHA512 (snpguest-0.9.0.tar.gz) = c5f4f2e9978419b8623c1dea2c30521fe0b4eab20ec9b0360d5e660e428e3b4df0f423c794726af93e2acfee234a5179083dcff4a9911121b2cc1c6ad77b73f4
|
||||
SHA512 (snpguest-0.9.0-vendor-FEDORA.tar.gz) = 40fe999827f4ab9619807e7918a127ff0522957de6a24d542b4578b6da581c4038760710173731862d23c4d8e2f0af82a95fa0f18218dcc3e012755171962b2b
|
||||
|
||||
Loading…
Reference in New Issue
Block a user