| Summary: | start fails due to "Config Error: Unable to open file /usr/local/bin/kf5-frameworks-build-include which was included from line 44" | ||
|---|---|---|---|
| Product: | [Developer tools] kdesrc-build | Reporter: | krichter |
| Component: | general | Assignee: | Michael Pyne <mpyne> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kdesrc-build/3dbada64198c288ce34802ef75f82f19cf49dc42 | Version Fixed/Implemented In: | 18.08 |
| Sentry Crash Report: | |||
| Attachments: | The .kdesrc-buildrc placed in $HOME generated by kdesrc-build-setup | ||
I get the impression that kdesrc-build is trying to refer to a base configuration file that is normally present within the kdesrc-build source directory. If so the fix would likely be to have kdesrc-build-setup to use the same separate path for where the installed data would go, aside from $PREFIX/bin. Would it be possible to attach the kdesrc-buildrc (or .kdesrc-buildrc) that was generated by kdesrc-build-setup? Also are you running kdesrc-build as root, or as an unprivileged user? Created attachment 113712 [details]
The .kdesrc-buildrc placed in $HOME generated by kdesrc-build-setup
> Also are you running kdesrc-build as root, or as an unprivileged user?
I'm using it as unprivileged user which also did the build (except `sudo make install`) and invoked `kdesrc-build-setup`.
Commenting out the unavailable includes in `~/.kdesrc-buildrc` works around the issue, however then no modules can be built. So there's two problems then. 1) The kdesrc-build-setup script only works when running kdesrc-build directly from a git checkout (which is why the path is wrong here) 2) The files that the installed .kdesrc-buildrc refers to are not installed. Again this is an artifact of the assumption that kdesrc-build is used directly from a git checkout of kdesrc-build. I'll work on both of those. Git commit 3dbada64198c288ce34802ef75f82f19cf49dc42 by Michael Pyne. Committed on 04/07/2018 at 20:20. Pushed by mpyne into branch 'master'. setup: Make the setup script work with cmake-installed kdesrc-build. This entails installing the sample rc files, and allowing kdesrc-build-setup to find the right path to those files. Note that to fix this bug you'd have to reinstall kdesrc-build and re-run kdesrc-build-setup. FIXED-IN:18.08 M +7 -1 CMakeLists.txt M +10 -0 kdesrc-build-setup https://commits.kde.org/kdesrc-build/3dbada64198c288ce34802ef75f82f19cf49dc42 Thank you very much, the issue is fixed with the mentioned commit. |
After building `kdesrc-build` with `cmake . && make && sudo make install` on Ubuntu 18.04 the first invokation after `kdesrc-build-setup` fails due to > kdesrc-build kdesrc-build encountered an exceptional error condition: ======== Config Error: Unable to open file /usr/local/bin/kf5-frameworks-build-include which was included from line 44 ======== Can't continue, so stopping now. I cannot reproduce the issue in a plain Docker image like `ubuntu:18.04` (see https://gitlab.com/krichter/kdesrc-build/-/jobs/78539587 for details), but I'm willing to provide further diagnostics. experienced with v18.04-7-ge3a4d50