anammari / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

manpages pandoc.1 and markdown.1 permissions #262

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Copy-Paste from the mailing list for future references.

> > for some reasons, "cabal install pandoc" on my debian box will
> > install pandoc.1 and markdown.1 in /usr/local/share/man/man1 as root
> > with owner and group "root" and permission 600.
> > Later, that will make automatic mandb cron job unhappy as it tries
> > to run /usr/bin/mandb as another user than root, therefore unable to
> > read pandoc manpage.
> > 
> >     /etc/cron.daily/man-db:
> >     /usr/bin/mandb: can't open /usr/local/share/man/man1/pandoc.1: 
Permission denied
> >     run-parts: /etc/cron.daily/man-db exited with return code 2

> > The fix I propose is to install this files with perms 644, as it
> > seems to be done by other programs.
> > 
> > What do you think ?

That makes sense.  I never ran into this problem, since I do a local
install with cabal.  The code to change would be in Setup.hs,
the function installManpages.  I'll try to do this when I have
a chance -- if you put an issue on the bug tracker, I'll be less
likely to forget about it.

John

Original issue reported on code.google.com by paul.riv...@gmail.com on 4 Nov 2010 at 4:16

GoogleCodeExporter commented 8 years ago
See http://osdir.com/ml/cabal-devel@haskell.org/2010-03/msg00018.html

This seems to be a Cabal issue.  It may be helpful if you add a comment and let 
them know you'd like to see this fixed.

Original comment by fiddloso...@gmail.com on 7 Nov 2010 at 1:54

GoogleCodeExporter commented 8 years ago

Original comment by fiddloso...@gmail.com on 24 Nov 2010 at 3:40