Opened 5 years ago

Closed 5 years ago

#13242 closed enhancement (implemented)

Makefiles should be able to invoke trunnel

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.2.6.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-relay trunnel build
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I'd like the makefiles to be able to regenerate src/trunnel/*.[ch] from src/trunnel/*.trunnel as needed or on demand. This is a little nontrivial, since we'd need the following:

  • A way to detect trunnel of the appropriate version.
  • Actual meaningful version numbers on trunnel.
  • A way to not require developers to have trunnel installed.
  • Support for out-of-tree builds (which can get really hard with generated code, and even harder with optionally generated code).

Child Tickets

Change History (2)

comment:1 Changed 5 years ago by nickm

16:07 < nickm> weasel: I added #13242 for you, since I know you'll want it :)
16:08 < weasel> yay
16:08 < weasel> nickm: alternatively, I'd be ok with a pre-processing step ala 
                autogen, that has to be run in-tree.
16:09 < nickm> iow, a script you run that rebuilds everything in src/trunnel ?
16:09 < nickm> and requires that you have trunnel installed?
16:09 < nickm> that's fine with me
16:10 < weasel> that would seem easier
16:14 < nickm> Right now, the script would just contain "python -m trunnel 

comment:2 Changed 5 years ago by nickm

Resolution: implemented
Status: newclosed

Script created as ./scripts/codegen/ in 1b13139709348f6a7f19808c1cd82d2b62823680

Note: See TracTickets for help on using tickets.