Bug 481752 - kdesrc-build exits when --initial-setup on first setup (on arch linux)
Summary: kdesrc-build exits when --initial-setup on first setup (on arch linux)
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-24 10:06 UTC by Edip
Modified: 2024-02-27 21:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edip 2024-02-24 10:06:56 UTC
SUMMARY

STEPS TO REPRODUCE
1. clone kdesrc-build
2. install deps 
3. run kdesrc-build --initial-build

OBSERVED RESULT
=== install-distro-packages-perl ===
 - Installing system packages for arch...
    Installing packages for arch/unknown
    Using installer for arch
 * All dependencies are already installed. No need to run installer. :)
 * Looks like the necessary packages were successfully installed!
=== install-distro-packages ===
  * git had error exit 128 when verifying master present in repository at kde:sysadmin/repo-metadata

EXPECTED RESULT
it should start to download

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
Operating System: Arch Linux 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Kernel Version: 6.7.5-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Pentium® CPU 2020M @ 2.40GHz
Memory: 11.6 GiB of RAM

ADDITIONAL INFORMATION
looks like reverting [84d60ab014bc00c7bfa0faec5bcb5d89a42b7e48](https://invent.kde.org/sdk/kdesrc-build/-/commit/84d60ab014bc00c7bfa0faec5bcb5d89a42b7e48) fixes the issue
Comment 1 Thomas Bertels 2024-02-26 15:28:24 UTC
"looks like reverting [84d60ab014bc00c7bfa0faec5bcb5d89a42b7e48](https://invent.kde.org/sdk/kdesrc-build/-/commit/84d60ab014bc00c7bfa0faec5bcb5d89a42b7e48) fixes the issue"

It makes sense, as when running

git ls-remote --exit-code https://invent.kde.org/sysadmin/repo-metadata master
from https://invent.kde.org/sdk/kde-builder/-/blame/master/ksblib/Updater/Git.py#L100

I get

warning : redirecting to https://invent.kde.org/sysadmin/repo-metadata.git/
4a16a768ec5a2480e7c461234b461812229f5306 refs/heads/master
Comment 2 duha.bugs 2024-02-26 21:25:10 UTC
Does this work for you?

https://discuss.kde.org/t/git-exit-error-128/10835/4
Comment 3 Thomas Bertels 2024-02-27 07:49:46 UTC
(In reply to duha.bugs from comment #2)

Yes, it does, thanks!
Comment 4 Edip 2024-02-27 12:45:31 UTC
(In reply to duha.bugs from comment #2)
> Does this work for you?
> 
> https://discuss.kde.org/t/git-exit-error-128/10835/4

Yes it does, thanks
Comment 5 Thomas Bertels 2024-02-27 21:50:17 UTC
@duha: You marked it as fixed, does this mean the workaround isn't needed anymore?