Attention is currently required from: osmith, pespin.

osmith, pespin: patchset 2 takes a different route. It removes the code both of you were looking at rather than rewriting it.

The eight sed rules exist to turn the includes asn1tostruct.py emits in the quoted local form into the angle-bracket form under osmocom/<pfx>/. The generator already knows the protocol name it is working on, so it can emit the final form itself. Patchset 2 adds an optional -I <path> argument that does that, and src/Makefile.am loses all eight rules along with the comments describing them. No post-processing step is left to make portable or to read.

Without -I the generator behaves as before, so the argument is additive and nothing else calling the script is affected.

The output is byte-identical to the current post-sed result. I checked it with SOURCE_DATE_EPOCH pinned, comparing every generated encoder, decoder and ies_defs header across all four protocols, and checked separately that the default with no -I reproduces the unpatched script exactly. The asn1tostruct.py outputs are gitignored and never committed, so no tracked file changes; the "make -C src regen" gate in contrib/jenkins.sh covers the asn1c output instead, and it passes.

The net diff is smaller than patchset 1 in both directions: 18 insertions against 21 deletions, across the generator and src/Makefile.am.

laforge's question about platform support is on this change as well. The same discussion is open on 43573 and 43575 and I have answered it there, so I am not duplicating it in this thread.

Re-review on patchset 2 would be welcome.

View Change

To view, visit change 43588. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
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-Comment-Date: Tue, 22 Sep 2026 08:37:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No