kiviktnm / decman

Declarative package & configuration manager for Arch Linux.
GNU General Public License v3.0
66 stars 3 forks source link

Added vimv to aur_packages and got error #7

Open tex opened 3 months ago

tex commented 3 months ago

First run of 'sudo decman' got this:

==> Leaving fakeroot environment.
==> Finished making: vimv 3.1.0-1 (Sat Aug 17 13:19:17 2024)
[DECMAN] INFO: Removing build dependencies from chroot.
[DECMAN] ERROR: Command '['arch-nspawn', '/tmp/decman/build/chroot/root', 'pacman', '-Rsu', '--noconfirm', 'cargo']' returned non-zero exit status 1.
[DECMAN] ERROR: Failed to build packages.

Next run of 'sudo decman' did not build it again as it found already built package and installed it without any problem.

kiviktnm commented 3 months ago

I will look into this when I have time. The error message is not quite right, since based on your description the build actually was successful, but removing build dependencies from the build chroot failed, which caused the installation to fail.

kiviktnm commented 1 month ago

The issue is that cargo is a virtual package. Installing the package next time succeeded because the package was built successfully and the built package was cached.

My time to work on these issues is quite limited as I am currently doing my mandatory military service, so I will fix this when I have the time. The current workaround is running decman twice.