Artifacts Associated With Ticket 29044ba23f8b0020
Ticket change [b7d802cf5d] (rid 141537) by erikleunissen on 2015-04-13 17:24:38:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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 --
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "erikleunissen"
- priority initialized to: "5 Medium"
- private_contact initialized to: "609f4c7ecf7dbb7a46acdc7eb164753d196088a6"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "erikleunissen"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
Remove redundant ranllib calls for make target "install-binaries" (unix build)
- type initialized to: "Patch"
Add attachment "tk.trunk.patch" [a88a44c01e] (rid 141538) by erikleunissen on 2015-04-13 17:25:32.
Add attachment "tcl.trunk.patch" [63d098e6d5] (rid 141539) by erikleunissen on 2015-04-13 17:25:51.
Ticket change [dc81f853c0] (rid 141547) by erikleunissen on 2015-04-14 21:00:30:
- comment changed to:
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 --
- login: "erikleunissen"
- mimetype: "text/plain"
- comment changed to:
Ticket change [6bb31b6202] (rid 141548) by erikleunissen on 2015-04-14 21:01:24:
- comment changed to:
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 --
- login: "erikleunissen"
- mimetype: "text/plain"
- comment changed to:
Delete attachment "tcl.trunk.patch" [0442e3d613] (rid 141563) by erikleunissen on 2015-04-18 12:21:51.
Delete attachment "tk.trunk.patch" [4a0a3c2033] (rid 141564) by erikleunissen on 2015-04-18 12:22:08.
Add attachment "tcl.trunk.patch" [d30c4c4dec] (rid 141565) by erikleunissen on 2015-04-18 12:22:59.
Add attachment "tk.trunk.patch" [31694cc25d] (rid 141566) by erikleunissen on 2015-04-18 12:23:13.
Ticket change [a5b520f9b6] (rid 141904) by dgp on 2015-05-20 15:18:01:
- assignee changed to: "dgp"
- closedate changed to: "2457163.13752135"
- closer changed to: "dgp"
- icomment:
Patches accepted.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"