[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #31851 [Core Tor/Tor]: Allow Tor to be compiled without support for relay mode



#31851: Allow Tor to be compiled without support for relay mode
--------------------------+------------------------------------
 Reporter:  teor          |          Owner:  teor
     Type:  task          |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.4.3.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  tor-design    |  Actual Points:  0.2
Parent ID:                |         Points:  5
 Reviewer:  nickm         |        Sponsor:  Sponsor31-can
--------------------------+------------------------------------

Comment (by nickm):

 > How can I discover the modules (or files) that are only used by a
 particular set of modules, and no other modules?

 I usually use shell pipelines for this.  For example, to find all the
 headers that are included from dirauth, I would do:

 {{{
 git grep '#include "' src/feature/dirauth/ | awk '{print $2}' |sort  |uniq
 > HEADERS
 }}}

 Then to find out which ones are not used elsewhere, I would do something
 like
 {{{
 for h in $(cat headers); do
   printf "$h "; git grep -l "#include $h" |grep -v feature/dirauth |grep
 -v src/test | wc -l
 done |sort -n -k2
 }}}

 That could probably be cleaner, but you get the idea. We can and should
 make scripts for this once we have more experience with exactly which
 tests are useful.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31851#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs