Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Unusual and problematic permissions of man pages (444 instead of 644)

Closed / Fixedc30087b04f5a7837b15a64be02e975222485521aCreated 10 years agoUpdated 10 years ago
Descriptionplain2016-06-24 13:37:44
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
Referenced by3
  • bc80e8a3bf(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-26 09:01:26
  • 5355df3a95(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-26 09:00:06
  • 02219cfde2[c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-24 16:40:30
dgp Ticket [c30087b04f]: 4 changes [History diff]2016-06-24 16:29:21
maxplain2016-06-24 16:41:45
Thanks, fixed.
Log in (anonymous is fine) to add a comment.