Tcl Source Code

View Ticket
Login
Ticket UUID: c30087b04f5a7837b15a64be02e975222485521a
Title: Unusual and problematic permissions of man pages (444 instead of 644)
Type: Patch Version: 8.6.5
Submitter: hanno Created on: 2016-06-24 13:37:44
Subsystem: 53. Configure and Build Tools Assigned To: max
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2016-06-24 16:41:45
Resolution: Fixed Closed By: max
    Closed on: 2016-06-24 16:41:45
Description:
The tcl installation process on unix systems installs the man pages with the permission mode 444. This is quite unusual and may cause breakage in certain situations (e.g. distribution systems trying to do installations and removals with user permissions).

It's common practice pretty much default to install man pages with 644, therefore I'd suggest that tcl does the same.

In Gentoo there is currently an effort unifying man page permissions:
https://bugs.gentoo.org/show_bug.cgi?id=554260
https://bugs.gentoo.org/show_bug.cgi?id=554258

Trivial Patch:
--- tcl8.6.5/unix/installManPage	2016-03-01 02:59:35.000000000 +0100
+++ tcl8.6.5-1/unix/installManPage	2016-06-24 15:28:50.061168557 +0200
@@ -106,7 +106,7 @@
 	First=$Target
 	sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \
 	    $ManPage > $Dir/$First
-	chmod 444 $Dir/$First
+	chmod 644 $Dir/$First
 	$Gzip $Dir/$First
     else
 	ln $SymOrLoc$First$Gz $Dir/$Target$Gz
User Comments: max added on 2016-06-24 16:41:45:
Thanks, fixed.