Closed dsh2dsh closed 4 months ago
Thanks for this. Unfortunately the plan is to remove -S
and make its goal the default, with a lot more logic than here to handle the needed rebuild cases. #822 handles that. -S
fundamentally never worked and was a mistake.
Hi,
I'm not sure how correct my solution is, but may be it'll be better.
Without
-S
bulk
removes the full chain of dependencies. For instance:firefox-121.0,2
doesn't depend onvulkan-loader-1.3.273
, butbulk
removes it too, becauseffmpeg-6.1_1,1
was removed.With
-S
bulk
just skips this step at all and we haveffmpeg-6.1_1,1
, which now depends on nonexistedvulkan-loader-1.3.273
, becausevulkan-loader-1.3.273
was removed.Now, with changed
-S
,bulk
will removeffmpeg-6.1_1,1
, but keepfirefox-121.0,2
, because version offfmpeg
will not change after rebuilding andfirefox-121.0,2
will have valid dependencies. The same step now looks:Also I moved
download_from_repo
belowsanity_checks_pkgs
, becausesanity_check_pkgs
removes packages which don't have builded dependencies and if we'lldownload_from_repo
beforesanity_check_pkgs
, we will rebuild it. But if we'lldownload_from_repo
aftersanity_check_pkgs
, we could download it instead of rebuild, which is faster.