Bug 410915

Summary: Arch Partial Upgrade
Product: [Developer tools] kdesrc-build Reporter: Milosz <milosz.janas>
Component: setup wizardAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: normal CC: postix
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Milosz 2019-08-15 07:42:39 UTC
SUMMARY
Initial setup tries to run `sudo pacman -Sy --noconfirm --needed`.
If the user installs packages as part of the script or manually, without running `pacman -Syu` it leads to a partial upgrade.
Depending on packages installed, this may lead to a broken system.


STEPS TO REPRODUCE
1. Run `kdesrc-build --initial-setup` on ArchLinux.

OBSERVED RESULT
Command tries to run `pacman -Sy`

EXPECTED RESULT
Run `pacman -S` or `pacman -Syu`.
Comment 1 Milosz 2019-08-15 08:08:13 UTC
Bug reference:
https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported

Possible workaround:
Run `pacman -Syu` just before running the setup wizard.
Comment 2 postix 2019-08-15 16:36:51 UTC
https://phabricator.kde.org/D23173
Comment 3 Michael Pyne 2019-11-10 00:28:06 UTC
The improved command referenced in the Phabricator change request was merged to fix this bug back in August. Not sure why I missed this bug report in the meantime but this has been already fixed. Thanks for reporting!