Bug 2852

Summary: ./waf --check-profile does not work when options list contains an = sign
Product: ns-3 Reporter: Mathias Ettinger <mettinger>
Component: generalAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: trivial CC: tomh
Priority: P3    
Version: ns-3.27   
Hardware: All   
OS: All   
Attachments: Simple patch
Bigger patch with block rewrite

Description Mathias Ettinger 2018-01-12 05:15:47 UTC
Created attachment 3001 [details]
Simple patch

On my system, after running ./waf configue, the `.lock-waf_linux_build` file contains, among other things:

    ...
    options = {..., 'cxx_standard': '-std=c++11', ...}
    ...

Thus breaking the --check-profile command that attempt to split this line on the `=` signs. The split should be performed only on the first `=` and not on the other ones.

Please find attached a patch that fixes the issue.
Comment 1 Mathias Ettinger 2018-01-12 05:16:24 UTC
Created attachment 3002 [details]
Bigger patch with block rewrite
Comment 2 Tom Henderson 2018-01-12 14:15:36 UTC
confirmed; patch (bigger patch) fixes it for me.
Comment 3 Tom Henderson 2018-03-06 00:00:45 UTC
fixed in changeset 13390:78abcf179b64