Bug 396027 - start fails due to "Config Error: Unable to open file /usr/local/bin/kf5-frameworks-build-include which was included from line 44"
Summary: start fails due to "Config Error: Unable to open file /usr/local/bin/kf5-fram...
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 18:22 UTC by krichter
Modified: 2018-07-04 20:36 UTC (History)
0 users

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


Attachments
The .kdesrc-buildrc placed in $HOME generated by kdesrc-build-setup (2.05 KB, text/plain)
2018-07-02 11:27 UTC, krichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krichter 2018-06-30 18:22:12 UTC
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
Comment 1 Michael Pyne 2018-07-02 00:31:18 UTC
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?
Comment 2 krichter 2018-07-02 11:27:27 UTC
Created attachment 113712 [details]
The .kdesrc-buildrc placed in $HOME generated by kdesrc-build-setup
Comment 3 krichter 2018-07-02 11:28:22 UTC
> 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`.
Comment 4 krichter 2018-07-02 11:46:29 UTC
Commenting out the unavailable includes in `~/.kdesrc-buildrc` works around the issue, however then no modules can be built.
Comment 5 Michael Pyne 2018-07-04 20:07:23 UTC
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.
Comment 6 Michael Pyne 2018-07-04 20:22:20 UTC
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
Comment 7 krichter 2018-07-04 20:36:45 UTC
Thank you very much, the issue is fixed with the mentioned commit.