| 177 | |
| 178 | * Difficulty: Medium to Easy |
| 179 | * Programming languages: Tcl, C |
| 180 | * Potential mentors: cal |
| 181 | |
| 182 | |
| 183 | ===== Auto-detection of build dependencies ===== #dependencies-gen |
| 184 | |
| 185 | When creating a new portfile one of the problems is always the specification of the complete (and preferably minimal) list of build dependencies, especially when one starts with a rather complete install where most dependencies are already available. |
| 186 | |
| 187 | It is possible to invert the trace mode logic so that it detects all files a configure and/or build process accesses, in ${prefix} but outside of the port's build directory. This information can then be used to generate a dependency tree and information from the registry can then be used to simplify that tree so that it only lists direct dependencies. |