Artifacts Associated With Ticket 2429444
Ticket change [37f157207f] (rid 112119) by nobody on 2008-12-14 21:20:49:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When the doc directory doesn't exist in some TEA packages I've found that: sudo make install; causes the default Makefile.in to remove all of /usr/local/man/mann. Apparently the problem according to ferrieux is that the * expands to itself in the case of no match. In one case it was tkpath removing my mann files, and in another case (on another machine) it was another package, though I'm not sure which yet. A suggested solution (from ferrieux) is to check with a branch for * after the expansion was supposed to be done, if I understand correctly.
- foundin initialized to: "obsolete: 8.6a3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "70. Sample Extension"
- title initialized to: "install-doc target removes all mann manual pages"
- type initialized to: "Bug"
Ticket change [ace513c7d0] (rid 101373) by dgp on 2008-12-15 04:26:18:
- assignee changed to: "hobbs"
- subsystem changed to: "85. tclconfig"
Ticket change [e4916159d3] (rid 87974) by ferrieux on 2008-12-15 04:29:19:
- assignee changed to: "stwo"
- icomment:
Yes. To elaborate, the bug is in the install-doc target which does list='$(srcdir)/doc/*.n'; for i in $$list; do ... rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ Hence if $srcdir/doc is empty of any *.n, then the 'list' var is set to a path having a literal star in its [file tail]. It gets iterated over by 'for' as a single-element list, hence 'i' gets the same value, and 'basename' still extracts the star. This results in rm -f $(DESTDIR)$(mandir)/mann/*.n which is unfortunate ;-) As suggested on the chat with George, there are generic ways to detect no-matches in shell (like looking for the naked star). But here it might be wiser to avoid the rm in the first place. Why is it there ? (it is followed by INSTALL_DATA which could well overwrite files)...
- login: "ferrieux"
- mimetype: "text/plain"
- subsystem changed to: "70. Sample Extension"
- username: "ferrieux"
Ticket change [e8a61aa1a2] (rid 104686) by stwo on 2009-03-19 01:42:52:
- closedate changed to: "2009-03-18T18:42:52"
- closer changed to: "stwo"
- icomment:
allow_comments - 1 Removed offending 'rm -f' line.
- login: "stwo"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "stwo"
Ticket change [fd320d4e1b] (rid 108375) by andreas_kupries on 2009-03-19 01:43:28:
- icomment:
allow_comments - 0 Hm. Actually I believe the INSTALLDIR can fail to write over an existing file, if the permissions make it non-writable and the 'cp' has no force option. Which may not be portable. In that case the 'rm -f' ensures that the file is gone even if non-writable, without asking, as long as we have permission to write to the directory.
- login: "andreas_kupries"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "andreas_kupries"
- icomment:
Ticket change [bfc0f3de24] (rid 102301) by andreas_kupries on 2009-03-19 01:44:46:
- icomment:
s/INSTALLDIR/INSTALL_DATA/
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [032d8b9806] (rid 119780) by stwo on 2010-12-18 01:23:26:
- closedate changed to: "2010-12-17T18:23:26"
- closer changed to: "stwo"
- icomment:
Re INSTALL_DATA failing: This isn't much of a problem and shouldn't be a problem with the newer 'install-sh' and may not have even been a problem with the older 'install-sh' and there have been no complaints since the change, so I'm closing it. If it's still a problem for someone then let them speak up; better this fix than wiping directories.
- login: "stwo"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "stwo"