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`.
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.
https://phabricator.kde.org/D23173
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!