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

make rpm broken due to name mismatch #516

Open
7flying opened this issue Jun 22, 2023 · 2 comments
Open

make rpm broken due to name mismatch #516

7flying opened this issue Jun 22, 2023 · 2 comments
Assignees

Comments

@7flying
Copy link
Contributor

7flying commented Jun 22, 2023

$ make rpm
mkdir -p /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SPECS
(echo "%global commit 931751819ed4cfef9b3e127f4b131446f2afe97d"; git show HEAD:fido-device-onboard.spec) > rpmbuild/SPECS/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d.spec
mkdir -p /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SOURCES
git archive --prefix=fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d/ --format=tar.gz HEAD > rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d.tar.gz
cp ./make-vendored-tarfile.sh rpmbuild/SOURCES/make-vendored-tarfile.sh
./make-vendored-tarfile.sh 931751819ed4cfef9b3e127f4b131446f2afe97d rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d-vendor.tar.gz
+ ver=931751819ed4cfef9b3e127f4b131446f2afe97d
+ cargo vendor

[--- rest of the vendoring steps above, removed ---]

+ rm -rf vcpkg/test-data
+ popd
~/repos/fido-device-onboard-rs
+ tar cjf fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d-vendor-patched.tar.xz vendor/
rpmbuild -bb \
	--define "_topdir /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild" \
	rpmbuild/SPECS/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d.spec
setting SOURCE_DATE_EPOCH=1676419200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fZF59O
+ umask 022
+ cd /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/BUILD
+ cd /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/BUILD
+ rm -rf fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d
+ /usr/bin/gzip -dc /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ tar xvf /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d-vendor.tar.gz
tar: /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d-vendor.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.fZF59O (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.fZF59O (%prep)

We are trying to extract

tar xvf /home/cloud-user/repos/fido-device-onboard-rs/rpmbuild/SOURCES/fido-device-onboard-rs-931751819ed4cfef9b3e127f4b131446f2afe97d-vendor.tar.gz

but on /rpmbuild/SOURCES we have fido-device-onboard-rs-${commit}.tar.gz instead of fido-device-onboard-rs-${commit}-vendor.tar.gz

@nullr0ute nullr0ute self-assigned this Jun 22, 2023
@nullr0ute
Copy link
Contributor

This will be fixed when I update the spec file from the Fedora pieces, aiming to have that done this week.

@mmartinv
Copy link
Contributor

Shouldn't this be fixed by a2fff3d?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants