[S] Change in osmo-iuh[master]: build: emit include paths from asn1tostruct.py
Attention is currently required from: andrei.gosman@gmail.com, osmith, pespin. Hello Jenkins Builder, osmith, pespin, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-iuh/+/43588?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review+1 by pespin, Code-Review-1 by osmith, Verified+1 by Jenkins Builder Change subject: build: emit include paths from asn1tostruct.py ...................................................................... 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 https://gerrit.osmocom.org/c/osmo-iuh/+/43588?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-iuh Gerrit-Branch: master Gerrit-Change-Id: I6f803fcfb5dd81f0a0b2998b00622f6a19afc5da Gerrit-Change-Number: 43588 Gerrit-PatchSet: 2 Gerrit-Owner: andrei.gosman@gmail.com <andrei.gosman@gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-CC: laforge <laforge@osmocom.org> Gerrit-Attention: osmith <osmith@sysmocom.de> Gerrit-Attention: pespin <pespin@sysmocom.de> Gerrit-Attention: andrei.gosman@gmail.com <andrei.gosman@gmail.com>
participants (1)
-
andrei.gosman@gmail.com