Bug 463414 - kdesrc-build cloned from git fails to run due to missing experimental.pm
Summary: kdesrc-build cloned from git fails to run due to missing experimental.pm
Status: RESOLVED NOT A BUG
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-24 02:39 UTC by tdustv
Modified: 2023-10-25 02:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tdustv 2022-12-24 02:39:57 UTC
SUMMARY
kdesrc-build failed to run

STEPS TO REPRODUCE
1. clone from git and configure using instructions at https://kate-editor.org/build-it/
(also attempted kdesrc-build-setup configuration with the same result)
2. execute command:
kdesrc-build --include-dependencies kate

OBSERVED RESULT
Couldn't load the base platform for kdesrc-build!

Can't locate experimental.pm in @INC (you may need to install the experimental module) (@INC contains: /usr/local/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/gamer/project/kde/src/kdesrc-build/modules) at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Util/LoggedSubprocess.pm line 56.
BEGIN failed--compilation aborted at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Util/LoggedSubprocess.pm line 56.
Compilation failed in require at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 15.
BEGIN failed--compilation aborted at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Updater/Git.pm line 15.
Compilation failed in require at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Module.pm line 35.
BEGIN failed--compilation aborted at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Module.pm line 35.
Compilation failed in require at /usr/share/perl5/vendor_perl/parent.pm line 16.
BEGIN failed--compilation aborted at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/BuildContext.pm line 52.
Compilation failed in require at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Application.pm line 26.
BEGIN failed--compilation aborted at /home/gamer/project/kde/src/kdesrc-build/modules/ksb/Application.pm line 26.
Compilation failed in require at /home/gamer/project/kde/src/kdesrc-build/kdesrc-build line 121.


You could:
 File a bug https://bugs.kde.org/enter_bug.cgi?product=kdesrc-build
 Ask for help on irc.libera.chat in the #kde channel

EXPECTED RESULT
cloning and compiling source code for Kate and dependencies

SOFTWARE/OS VERSIONS
Linux: Fedora 37 (KDE Plasma)
Git Version: 2.38.1

ADDITIONAL INFORMATION
I was able to work around this by commenting out line 56 in kdesrc-build/modules/ksb/Util/LoggedSubprocess.pm
"use experimental 'signatures';
Comment 1 tdustv 2022-12-28 02:32:03 UTC
I ended up having to start my KDE build over from scratch because I wasn't able to compile changes.
This time I realized I'd missed an important step:
sudo dnf install git cmake dialog perl perl-IPC-Cmd perl-MD5 perl-FindBin

If that accounts for the error I saw, then the original problem amounts to me failing to see all of the instructions.

In any case, the error didn't happen this time, so I guess it is fixed.
Comment 2 fanzhuyifan 2023-10-25 02:30:49 UTC
Closing this since this isn't the place to request help with dev setups; see https://community.kde.org/Get_Involved/Issue_Reporting#Step_1:_Make_sure_it's_a_valid_bug_or_feature_request. 
You are welcome to ask for help with individual failures in the #kde-devel matrix room.