|
2015-05-20
| ||
| 15:18 | • Closed ticket [29044ba23f]: Remove redundant ranllib calls for make target "... artifact: a5b520f9b6 user: dgp | |
| 15:12 | [29044ba23f] Remove RANLIB as part of library installation. At best it's redundant to the RANLIB al... check-in: 9f5893b2e8 user: dgp tags: trunk | |
|
2015-04-18
| ||
| 12:23 | • Add attachment tk.trunk.patch to ticket [29044ba23f] artifact: 31694cc25d user: erikleunissen | |
| 12:22 | • Add attachment tcl.trunk.patch to ticket [29044ba23f] artifact: d30c4c4dec user: erikleunissen | |
| 12:22 | • Delete attachment "tk.trunk.patch" from ticket [29044ba23f] artifact: 4a0a3c2033 user: erikleunissen | |
| 12:21 | • Delete attachment "tcl.trunk.patch" from ticket [29044ba23f] artifact: 0442e3d613 user: erikleunissen | |
|
2015-04-14
| ||
| 21:01 | • Ticket [29044ba23f] Remove redundant ranllib calls for make target "install... artifact: 6bb31b6202 user: erikleunissen | |
| 21:00 | • Ticket [29044ba23f]: 3 changes artifact: dc81f853c0 user: erikleunissen | |
|
2015-04-13
| ||
| 17:25 | • Add attachment tcl.trunk.patch to ticket [29044ba23f] artifact: 63d098e6d5 user: erikleunissen | |
| 17:25 | • Add attachment tk.trunk.patch to ticket [29044ba23f] artifact: a88a44c01e user: erikleunissen | |
| 17:24 | • New ticket [29044ba23f] Remove redundant ranllib calls for make target "ins... artifact: b7d802cf5d user: erikleunissen | |
Remove redundant ranllib calls for make target "install-binaries" (unix build)
Closed / Accepted29044ba23f8b0020f5622440114289f9c81eb32aCreated 12 years agoUpdated 12 years ago
Descriptionplain2015-04-13 17:24:38
Unless the RANLIB variable is empty, the unix build calls ranlib on the static Tcl library and the Tcl stubs library at two occasions (see unix/tcl.m4 around line 2060, trunk): - at build time - at install time Once is enough. This ticket proposes to remove the call at install time. As a reference: ticket 3490157 touches on the same issue in TclOO, resolved by a similar removal. Besides not having to deal with redundant code and a little speed-up, removal of the call at install time has another advantage: it enables installing cross-builds from a cross-mounted build directory. Currently, the call at install time breaks an installation at the target host of cross-builds from within a cross-mounted build directory. This is so because the name of a ranlib program used at build time (for cross-building) typically has a prefix indicating the cross-toolchain, whereas there typically is no such program on the target host. Running "make install" on the target host from inside a cross-mounted build directory will therefore abort with an error. There is one thing to consider. The unix/Makefile.in mentions a concern regarding the call *at install time*: -- quote -- # Note: before running ranlib below, must cd to target directory because some # ranlibs write to current directory, and this might not always be possible # (e.g. if installing as root). -- unquote -- If this were a valid concern, then the call at build time would suffer equally from the described phenomenon, but only if the current dir were different from the build directory at the time when "make" makes its call to $(RANLIB). This simply is never the case. (If it were, builds would have been aborting since august 2002 when these ranlib calls were introduced into the trunk (artifact [8d713384ad])). In short: we can safely assume, that this concern has never been relevant. The attached patches (for both Tcl and Tk) remove the redundant ranlib calls at install time from unix/tcl.m4. They also remove the irrelevant comment from unix/Makefile.in Sincerely, Erik Leunissen --
Referenced by1
9f5893b2e8[29044ba23f] Remove RANLIB as part of library installation. At best it's redundant to the RANLIB already done as part of library build. At worst, it conflicts with needs of cross-compiling. Thanks Erik Leunissen. check-in2015-05-20 15:12:50
erikleunissen Ticket [29044ba23f]: 3 changes
[History diff]2015-04-14 21:00:30
erikleunissen Ticket [29044ba23f]: 3 changes
[History diff]2015-04-14 21:01:24
dgpplain2015-05-20 15:18:01
Patches accepted.
Log in (anonymous is fine) to add a comment.