Bug 407535

Summary: kdesrc-build-metadata encounters an error and prevents the building of any application
Product: [Developer tools] kdesrc-build Reporter: Tauheed Elahee <forums>
Component: project metadataAssignee: Michael Pyne <mpyne>
Status: RESOLVED NOT A BUG    
Severity: major CC: nate
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The full error when excecuting kdesrc-build --metadata-only

Description Tauheed Elahee 2019-05-14 19:22:45 UTC
Created attachment 120066 [details]
The full error when excecuting kdesrc-build --metadata-only

SUMMARY
Installed KDE neon developer edition.
Followed steps found at the development page (https://community.kde.org/Get_Involved/development).
Encountered an error when trying to build applications.

STEPS TO REPRODUCE
1. setup kdesrc-build (instructions at the get involved developmer page)
2. kdesrc-build --metadata-only
3. kdesrc-build dolphin --include-dependencies (outputs the same error as step 2)

OBSERVED RESULT
Encountered an error in the execution of the script.

Permission denied at /home/kde-developer/kde/src/kdesrc-build/modules/ksb/Util.pm line 152.

Full error shown in the attached screenshot.

EXPECTED RESULT
Build dolphin

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE neon developer edition (lnix kernel Version 4.18.0-18-generic)
(available in About System)
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Used both kdesrc-build --initial-setup found on get involved developer page (https://community.kde.org/Get_Involved/development) and kdesrc-build-setup found on gitlab (https://invent.kde.org/kde/kdesrc-build). Same result happened when executing step #2.

kdesrc-build version: kdesrc-build 18.10 (v18.10-71-g74d70de)
Comment 1 Nate Graham 2019-05-20 23:08:31 UTC
This appears to be a local error on your machine. It's trying to create /home/kde-developer/kde/src/log and failing because it doesn't have permission to do so. You should make sure that your current user account (or the one you're using to run kdesrc-build) has full write permission to /home/kde-developer/kde and all sub-folders.