void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
821 stars 124 forks source link

interrupting xbps-install in the middle of configure step leads to confusing behavior #547

Open lun-4 opened 1 year ago

lun-4 commented 1 year ago

Here's what I did:

Instead, I rececived this transaction:

Name         Action    Version           New version            Download size
libgcc       configure 12.2.0_2          12.2.0_2               -
liblzma      configure 5.4.1_1           5.4.1_1                -
libstdc++    configure 12.2.0_2          12.2.0_2               -
libcrypto1.1 configure 1.1.1t_1          1.1.1t_1               -
libssl1.1    configure 1.1.1t_1          1.1.1t_1               -
python3      configure 3.11.2_1          3.11.2_1               -
gdb          update    12.1_3            13.1_1                 4069KB
gdb-common   update    12.1_3            13.1_1                 824KB

Size to download:             4893KB
Size required on disk:          12MB
Space available on disk:        82GB

nvidia is not included. I assume gdb is being updated as the repository just got the new package version, leading to configure steps being created for other packages.

I had to do xbps-install -f nvidia so that the package is built for all my kernel versions. And now I'm running xbps-reconfigure -a to be sure that all packages are in the proper state in my system. Example, with zola, which doesn't provide any configuration steps:

short_desc: Fast opinionated static site generator
source-revisions: zola:5d787e2874
state: unpacked

Then its state after xbps-reconfigure -a:

short_desc: Fast opinionated static site generator
source-revisions: zola:5d787e2874
state: installed

Maybe xbps-install -Su should do the configure steps if a package's state is set to unpacked but not installed, so that a user wouldn't have to run xbps-reconfigure -a on top?

Anachron commented 8 months ago

Maybe we need a new command (flag) and xbps could check first whether we have an inconsistent state from an aborted upgrade?