Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184452 - app-misc/pv does not install with a PAGER unlike less set
Summary: app-misc/pv does not install with a PAGER unlike less set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-07 00:43 UTC by Lars Weiler (RETIRED)
Modified: 2007-07-07 12:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2007-07-07 00:43:25 UTC
I have PAGER set to `vimpager`.  During the install-phase of pv `man` is called, which calls vimpager:

>>> Install pv-0.9.9 into /var/tmp/portage/app-misc/pv-0.9.9/image/ category app-misc
man doc/quickref.1 | sed 's///g' | cat -s > doc/quickref.txt || :
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

I can kill vim from another terminal, so that the installation continues with some errors, but it does not fail at all:
            
/usr/bin/vimmanpager: line 7: 32729 Done                    tr '\267' '.'
     32730                       | col -b
     32731 Terminated              | vim -c 'let no_plugin_maps = 1' -c 'set nolist nomod ft=man' -c 'let g:showmarks_enable=0' -c 'runtime! macros/less.vim' -
Error executing formatting or display command.
System command (cd /var/tmp/portage/app-misc/pv-0.9.9/work/pv-0.9.9/doc/.. && (echo ".pl 11i"; /bin/cat '/var/tmp/portage/app-misc/pv-0.9.9/work/pv-0.9.9/doc/quickref.1') | /usr/bin/gtbl | /usr/bin/nroff -mandoc -c | vimmanpager) exited with status 143.
No manual entry for doc/quickref.1


I suggest to replace the included man with something more sane, like a groff-command.  A quick fix can be done with adding `-P less` to the man-call in the source, so that it looks like this: man -P less doc/quickref.1 | sed 's///g' | cat -s > doc/quickref.txt
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2007-07-07 01:42:13 UTC
I've removed the doc target from make install, it's not needed for us.
It works for me with PAGER=vimpager now, could you please check if it's fixed for you too?
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2007-07-07 12:15:33 UTC
Yep, works now.  Thanks :)