Attention is currently required from: andrei.gosman@gmail.com, osmith, pespin.
andrei.gosman@gmail.com uploaded patch set #2 to this change.
The following approvals got outdated and were removed: Code-Review+1 by pespin, Code-Review-1 by osmith, Verified+1 by Jenkins Builder
build: emit include paths from asn1tostruct.py
The gen_*.stamp rules in src/Makefile.am post-process the output of
asn1tostruct.py with "sed -i" to rewrite eight include lines from the
quoted local form to the angle-bracket form under osmocom/<pfx>/.
The -i option is not portable: BSD sed on macOS and other BSDs takes
the next argument as the backup suffix, so the build stops in src/
before a single object is compiled:
sed: 1: "hnbap_encoder.c
": extra characters at the end of h command
Rather than rewrite the eight sed invocations to be portable, teach
asn1tostruct.py to emit the correct include paths directly. A new
optional -I <path> argument makes the generator emit
"#include <path/file.h>" instead of "#include \"file.h\"". The eight
sed rules then disappear from src/Makefile.am.
Without -I the generator behaves exactly as before, so the argument is
additive and other users of the script are unaffected.
Output byte-identical to the current post-sed result on all four
protocols, verified with SOURCE_DATE_EPOCH pinned and diff over every
generated encoder, decoder and ies_defs header. The generated files
are gitignored and never committed, so no tracked file changes as a
result.
Also removes the "We also need to replace the include" comments that
described what the sed rules did, now that the rules are gone.
Change-Id: I6f803fcfb5dd81f0a0b2998b00622f6a19afc5da
---
M asn1/utils/asn1tostruct.py
M src/Makefile.am
2 files changed, 18 insertions(+), 21 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/88/43588/2
To view, visit change 43588. To unsubscribe, or for help writing mail filters, visit settings.