Bug 2852 - ./waf --check-profile does not work when options list contains an = sign
./waf --check-profile does not work when options list contains an = sign
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: general
ns-3.27
All All
: P3 trivial
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-12 05:15 UTC by Mathias Ettinger
Modified: 2018-03-06 00:00 UTC (History)
1 user (show)

See Also:


Attachments
Simple patch (494 bytes, patch)
2018-01-12 05:15 UTC, Mathias Ettinger
Details | Diff
Bigger patch with block rewrite (1.46 KB, patch)
2018-01-12 05:16 UTC, Mathias Ettinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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