Bug 457471 - Cannot build Qt5
Summary: Cannot build Qt5
Status: RESOLVED WORKSFORME
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 09:44 UTC by Marius P
Modified: 2024-02-20 19:08 UTC (History)
1 user (show)

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


Attachments
kdesrc-buildrc plus run of kdesrc-build --debug (60.61 KB, text/plain)
2022-08-04 09:44 UTC, Marius P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius P 2022-08-04 09:44:47 UTC
Created attachment 151104 [details]
kdesrc-buildrc plus run of kdesrc-build --debug

SUMMARY

kdesrc-build cannot build Qt5 "Error updating Qt5, removing from list of packages to build.
 > Can't locate object method "catch" via package "94369471003961" (perhaps you forgot to load "94369471003961"?) at /home/administrator/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 42.
 at /home/administrator/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 42.
        ksb::Updater::Git::updateInternal(ksb::Updater::Qt5=HASH(0x55d4197cd1e0), ksb::IPC::Pipe=HASH(0x55d41abfc800)) called at /home/administrator/kde/src/kdesrc-build/modules/ksb/Module.pm line 780"


STEPS TO REPRODUCE
1. Create new Kubuntu 22.10 VM
2. Install kdesrc-build as per https://community.kde.org/Get_Involved/development
3. See the attached file

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Marius P 2022-08-04 12:12:00 UTC
I can reproduce the issue with:

$ kdesrc-build Qt5 --pretend --debug
Would have run g{'git', 'reset', '--hard', 'origin/kde/5.15'}
        Slurping 'git' 'rev-list' '0b4d44f2ff1103349bac22b9b207cfcc1f50a53a..HEAD'
Error updating Qt5, removing from list of packages to build.
 > Can't locate object method "catch" via package "94923417450697" (perhaps you forgot to load "94923417450697"?) at /home/nmariusp/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 42.
 at /home/nmariusp/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 42.
        ksb::Updater::Git::updateInternal(ksb::Updater::Qt5=HASH(0x5655146e4c10), ksb::IPC::Pipe=HASH(0x56551491dcc8)) called at /home/nmariusp/kde/src/kdesrc-build/modules/ksb/Module.pm line 780
Comment 2 Marius P 2022-08-04 12:14:16 UTC
Seems that the last git commit in kdesrc-build excluding the *-include files (aaac481b2e576e7b9e946834ed4f43d7770b8f39 Michael Pyne <mpyne@kde.org>  2022-07-23 22:17:53 git: Make updateCheckout() promise-native." has introduced this issue.
Comment 3 Andrew Shark 2024-02-20 19:08:33 UTC
Using `kdesrc-build qt5-set --pretend --debug` works for me.