On Sat, Dec 06, 2008 at 11:54:36PM +0000, Colin Watson wrote:
> > > when I use `man -Hfirefox man' to see manpage in firefox, I can't see
> > > the image. I think man delete the images right after the browser return.
> > 
> > I just saw the same... it looks like the whole /tmp/<tempdir> goes missing
> > the moment the browser is forked.
> 
> I really can't see any obvious way to fix this. I don't think it's good
> to leave temporary file litter lying around,

But it's in the /tmp directory. Nobody else really cares if temporary files
are left lying around in it, and that's okay - for users, it's much better
to have a few extra files lying around until their next reboot than to have
obvious bugs in output.

The FHS doesn't prohibit a lack of cleanup in /tmp, it just says that no
assumptions can be made that the files aren't cleaned up by something else
(such as tmpreaper).

> I'm afraid I don't see a sensible way for man to do anything about this,
> short perhaps of an environment variable that would let you stop it
> deleting temporary files, but then the user would have to clean those up
> by hand which isn't very appealing either.

An environment variable would work, or even better a command-line option to
be used together with -H.

> > The -H mode gets groff/troff/whatever to generate images for all the
> > tables, and then that uses psselect from the psutils package and some
> > pnm utilities from the netpbm package. Those missing dependencies could
> > go into the Suggests: field.
> 
> They're already in groff's Recommends field, which is the proper place.
> I don't think having man-db suggest them would add anything much.

Since Recommends are handled in a less lax manner these days, that's okay,
but the relation between man-db and those packages isn't actually via
Recommends. man-db has a Depends on groff-base, which doesn't mention netpbm
or psutils, and it has a Suggests on groff.

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to