Artifacts Associated With Ticket 3598282
Ticket change [d7e5d3657b] (rid 107346) by roflz on 2012-12-24 05:06:06:
- assignee initialized to: "stwo"
- cmimetype initialized to: "text/plain"
- comment initialized to:
while doing make install, ./tclsh gets invoked. however that assumes that the dynamic linker knows the location of libtcl8.6.so if no previous installation of tcl is available on the host, and DESTDIR is used, this shared object cannot be found, the tclsh binary not started and subsequently the build breaks. (the dynlinker searches in /lib or /usr/lib, but when DESTDIR is e.g. /opt/tcl, it won't find any shared objects there) thus, LD_LIBRARY_PATH must be used when invoking the tclsh binary. as a temporary workaround: export LD_LIBRARY_PATH=. make install DESTDIR=xxx makes the build succeed.
- foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "roflz"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "unix: make install fails when DESTDIR is used"
- type initialized to: "Bug"
Ticket change [0bda650d73] (rid 114068) by dgp on 2012-12-28 02:40:16:
- assignee changed to: "dkf"
- icomment:
Looks like something broken in the use of NATIVE_TCLSH
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dgp"
Ticket change [0fa31dd467] (rid 94821) by dkf on 2012-12-28 05:31:20:
- icomment:
Why are you setting DESTDIR in the first place? Why not just use the --exec-prefix option to configure?
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [866a699858] (rid 131506) by roflz on 2012-12-28 15:16:05:
- icomment:
DESTDIR != prefix DESTDIR is a way for packagers to install stuff into a different location than where it will be used finally, so it doesn't clutter their build machine, and so that the can see which files are getting installed. in my specific case, my distribution uses prefix=/ and DESTDIR=/opt/packagename for any package that gets built. then a filelist of /opt/packagename is created, and all files in /opt/packagename get symlinked into / (prefix). this way, installing a binary package is as easy as untarring it into /opt (or some alternative location), and then call a script which creates the filelist and symlinks it into place. if i would use prefix for this, internal dependencies in the generated libraries and binaries would point to /opt/packagename instead of the intended prefix. packages using autoconf (approx 95-98% of all packages on debian) automatically provide the distinct prefix and DESTDIR functionality, which makes them very easy to handle for packagers. a proper Makefile which adheres to these widely accepted and used standard just install its files into $(DESTDIR)$(prefix) (note that there are no slashes) so the combination prefix="" (empty) and DESTDIR=/opt/tcl would install tclsh into /opt/tcl/bin and the line in the makefile would look like: install -D -m 755 tclsh $(DESTDIR)$(prefix)/bin/
- login: "roflz"
- mimetype: "text/plain"
- username: "roflz"
- icomment:
Ticket change [ddf259ab95] (rid 114768) by stwo on 2012-12-28 18:08:57:
- icomment:
Install shouldn't need or use *any* tclsh. Something's trying to build html docs maybe.
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [3991a52bc1] (rid 112414) by roflz on 2012-12-28 18:17:37:
- icomment:
stwo: exactly. relying on the generated binary to do anything during build / installation is not good, as it will prevent from cross compilation and needs tricks like LD_LIBRARY_PATH to work at all. whatever tclsh does at this install step should be achieved by other portable means, or postponed to first-usage time.
- login: "roflz"
- mimetype: "text/plain"
- username: "roflz"
- icomment:
Ticket change [6e0e214af6] (rid 128810) by stwo on 2012-12-28 19:36:24:
- icomment:
The problem is that the install-tzdata target is the last remaining user of installData.tcl. I remember discussing this some time ago. One solution is a slightly ugly couple of loops. I guess I never went ahead with it because of the ugliness and that I don't normally need/use the install-tzdata target. ;)
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [511aa585b9] (rid 126084) by stwo on 2012-12-28 19:39:48:
- icomment:
Also, we probably could've arrived at the answer quicker if you'd have shown some lines from the install process where it was failing.
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [1f9893bdbc] (rid 91174) by dkf on 2012-12-29 22:07:26:
- icomment:
For information: 'make html' isn't intended to *ever* be run as part of a sequence leading up to 'make install'; it's closer to the 'make dist' side of things (and is used to build the content of the HTML documentation archive that we distribute and the HTML docs we put up on www.tcl.tk). This should be clear from the fact that it's writing to a hardcoded location in /tmp/dist :-) Can't comment on the tzdata stuff; that's not my code at all.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [a1a71a9485] (rid 109764) by stwo on 2012-12-30 11:47:08:
- icomment:
File Added - 458531: install-tzdata
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Add attachment "install-tzdata" [dcf924bbd7] (rid 114581) by stwo on 2012-12-30 11:47:08.
Ticket change [a066a2ce4f] (rid 96806) by stwo on 2012-12-30 11:51:02:
- icomment:
I've attached code to do the install sans tclsh. It's not pretty but it does the job. Improvements welcome :)
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [fba3ed74a2] (rid 92099) by roflz on 2012-12-30 12:54:55:
- icomment:
thanks, this looks very well (apart from mixed spaces/tabs which mess up the indentation)
- login: "roflz"
- mimetype: "text/plain"
- username: "roflz"
- icomment:
Ticket change [b1b43a5d4e] (rid 98196) by stwo on 2013-01-27 15:00:27:
- icomment:
I'd like to wrap this up in a few days. Soliciting suggestions for better scripting; it's not my forte.
- login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [55301c1f73] (rid 94086) by ferrieux on 2013-01-27 16:53:55:
- icomment:
Looks perfectly okay to me. Maybe move it out to a separate script file instead of makefile-inlining, for readability. But that's personal taste ;)
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [4b5ac056fe] (rid 126694) by stwo on 2013-01-31 20:59:20:
- assignee changed to: "stwo"
- closedate changed to: "2013-01-31T13:59:20"
- closer changed to: "stwo"
- icomment:
allow_comments - 1 Fixed in [70995bd619] (trunk) and [0f098031c3] (core-8-5-branch). There are no longer any users of installData.tcl in unix/Makefile.in.
- login: "stwo"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "stwo"