FS#49663 - [cabal-install] man page readable only by root

Attached to Project: Community Packages
Opened by Michiel Derhaeg (Distorted) - Saturday, 11 June 2016, 09:21 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 07 February 2018, 18:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:
The cabal man file '/usr/share/man/man1/cabal.1.gz' has 600 as permissions, so normal users can't read it.

Current version: 1.24.0.0-1

Steps to reproduce:
run: 'man cabal'
output: 'man: can't open /usr/share/man/man1/cabal.1.gz: Permission denied'
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 07 February 2018, 18:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  seems to work with the current package
Comment by Bart (sleeping) - Tuesday, 08 November 2016, 03:36 GMT
I can confirm that this is an issue.

You can use

# chmod 644 /usr/share/man/man1/cabal.1.gz

as a temporary fix until this is solved.
Comment by Jelle van der Waa (jelly) - Tuesday, 03 January 2017, 21:42 GMT
The upstream issue is that they have a haskell script to generates and installs this too. Which is ran as the buildroot user..

> let destDir = mandir (absoluteInstallDirs pkg lbi copy) </> "man1"
> copyFiles verbosity destDir [(buildDir lbi </> "cabal", "cabal.1")]
Comment by Eli Schwartz (eschwartz) - Wednesday, 07 February 2018, 18:23 GMT
See https://github.com/haskell/cabal/issues/4537

This seems to work fine though, since the current package isn't modifying anything and yet the permissions are fine.

Loading...