Bug 483781 - kde-builder Runtime Error: Invalid variable qt-install-dir
Summary: kde-builder Runtime Error: Invalid variable qt-install-dir
Status: RESOLVED WORKSFORME
Alias: None
Product: buildsystem
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-16 17:51 UTC by Thomas Bertels
Modified: 2024-03-30 20:29 UTC (History)
0 users

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 Thomas Bertels 2024-03-16 17:51:01 UTC
SUMMARY

STEPS TO REPRODUCE
1. Install kde-builder-git from AUR
2. Run kde-builder --install-distro-packages
3. Run kde-builder --generate-config
4. Run kde-builder partitionmanager

OBSERVED RESULT

<<<  PACKAGES SUCCESSFULLY BUILT  >>>
Built 38 modules

kdesrc-build encountered an exceptional error condition:
 ========
    Runtime Error: Invalid variable qt-install-dir
 ========
Can't continue, so stopping now.


Traceback (most recent call last):
  File "/usr/share/kde-builder/kde-builder", line 60, in <module>
    result = app.runAllModulePhases()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/kde-builder/ksblib/Application.py", line 652, in runAllModulePhases
    Application._installCustomSessionDriver(ctx)
  File "/usr/share/kde-builder/ksblib/Application.py", line 1662, in _installCustomSessionDriver
    Application._installCustomFile(ctx, envScript, f"{destDir}/kde-env-master.sh", "kde-env-master-digest")
  File "/usr/share/kde-builder/ksblib/Application.py", line 1616, in _installCustomFile
    Application._installTemplatedFile(sourceFilePath, destFilePath, ctx)
  File "/usr/share/kde-builder/ksblib/Application.py", line 1573, in _installTemplatedFile
    line = re.sub(pattern, repl(), line)  # Replace all matching expressions, use extended regexp with comments, and replacement is Python code to execute.
                           ^^^^^^
  File "/usr/share/kde-builder/ksblib/Application.py", line 1571, in repl
    return ctx.getOption(match.group(1)) or BuildException.croak_runtime(f"Invalid variable {match.group(1)}")
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/kde-builder/ksblib/BuildException.py", line 66, in croak_runtime
    raise BuildException.make_exception("Runtime", msg, 1)
ksblib.BuildException.BuildException: Runtime Error: Invalid variable qt-install-dir


EXPECTED RESULT

No error

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Thomas Bertels 2024-03-30 20:29:40 UTC
Works fine with the latest version.