SUPERCILEX / fuc

Modern, performance focused unix commands
Apache License 2.0
340 stars 8 forks source link

cargo install rmz cpz fails #17

Closed andreasstieger closed 1 year ago

andreasstieger commented 1 year ago

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 commented 1 year ago

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

andreasstieger commented 1 year ago

Right. With https://github.com/Firstyear/cargo-packaging/pull/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 commented 1 year ago

Sweeeet!