Bug 394195

Summary: Warn if current environment variables do not match with the build of other modules
Product: [Developer tools] kdesrc-build Reporter: Gregor Mi <codestruct>
Component: generalAssignee: Michael Pyne <mpyne>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Gregor Mi 2018-05-13 08:25:31 UTC
SITUATION:
1. Sometimes, because full rebuild takes quite a long time, I resume compilation at another day.
2. Or: After a long pause I resume work on a KDE project.

From time to time I wonder if I got the needed environment variables right (or forget to set them) in bash. Then, the building of modules is running long time after which I find out I did something wrong in the beginning and I have to start over again.

WISH:
Could kdesrc-build print a warning if the current relevant environment variables differ from the previous/desired ones and ask me if I really want to continue?
Comment 1 Michael Pyne 2018-05-15 00:16:01 UTC
It *could* do this, the infrastructure I would use to implement this (hashing of option values and persistent data storage) already exist.  The question would be which env vars to monitor.

*But*, you may want to consider the set-env global option in your kdesrc-buildrc to ensure that critical environment variables are set by kdesrc-build itself.  See https://docs.kde.org/trunk5/en/extragear-utils/kdesrc-build/conf-options-table.html#conf-set-env