Bug 410915 - Arch Partial Upgrade
Summary: Arch Partial Upgrade
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: setup wizard (show other bugs)
Version: Git
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-15 07:42 UTC by Milosz
Modified: 2019-11-10 00:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!