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

cargo install rmz cpz fails #17

Closed
andreasstieger opened this issue Mar 27, 2023 · 3 comments
Closed

cargo install rmz cpz fails #17

andreasstieger opened this issue Mar 27, 2023 · 3 comments

Comments

@andreasstieger
Copy link
Contributor

Follow-up from #15. This is on 1.1.7 with rust 1.68. As requested cargo install rmz cpz:

[  115s] Executing(%install): /usr/bin/bash -e /var/tmp/rpm-tmp.VtpYef
[  115s] + umask 022
[  115s] + cd /home/abuild/rpmbuild/BUILD
[  115s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/fuc-1.1.7-3.1.x86_64
[  115s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
[  115s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILDROOT/fuc-1.1.7-3.1.x86_64
[  115s] + cd fuc-1.1.7
[  115s] + unset LIBSSH2_SYS_USE_PKG_CONFIG
[  115s] + [[ -z '' ]]
[  115s] + CARGO_AUDITABLE=auditable
[  115s] + CARGO_FEATURE_VENDORED=1
[  115s] + RUSTFLAGS='-Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C incremental=false'
[  115s] + /usr/bin/cargo auditable install -j3 --offline --no-track --root=/home/abuild/rpmbuild/BUILDROOT/fuc-1.1.7-3.1.x86_64/usr --path . cpz rmz
[  115s] error: could not find `cpz` in /home/abuild/rpmbuild/BUILD/fuc-1.1.7 with version `*`
[  115s] error: could not find `rmz` in /home/abuild/rpmbuild/BUILD/fuc-1.1.7 with version `*`
[  115s]      Summary Failed to install cpz, rmz (see error(s) above).
[  115s] error: some crates failed to install
[  115s] error: Bad exit status from /var/tmp/rpm-tmp.VtpYef (%install)

Can be worked around with rpm.

@SUPERCILEX
Copy link
Owner

Ah, I think that's just workspace shenanigans. You probably have to install --path cpz and install --path rmz.

@andreasstieger
Copy link
Contributor Author

Right. With Firstyear/cargo-packaging#3 that's %{cargo_install -p cpz} in rpm.

[  210s]   Installing /home/abuild/rpmbuild/BUILDROOT/fuc-1.1.7-9.1.x86_64/usr/bin/cpz
[  210s]    Installed package `cpz v1.1.7 (/home/abuild/rpmbuild/BUILD/fuc-1.1.7/cpz)` (executable `cpz`)

@SUPERCILEX
Copy link
Owner

Sweeeet!

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

2 participants