FS#35370 - [man-db] man uses more instead of less as pager

Attached to Project: Arch Linux
Opened by Matthias Dienstbier (fs4000) - Sunday, 19 May 2013, 22:02 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 20 May 2013, 08:40 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I guess "less" has to be added as a makedep since devtools don't install the whole base group anymore.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 20 May 2013, 08:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.6.3-3
Comment by Dave Reisner (falconindy) - Sunday, 19 May 2013, 22:09 GMT
I can't possibly see how this would fix anything -- the default pager isn't defined at compile time.

Cannot reproduce.
Comment by Matthias Dienstbier (fs4000) - Sunday, 19 May 2013, 22:23 GMT
It is: http://bzr.savannah.gnu.org/lh/man-db/trunk/annotate/head:/configure.ac#L164

This is about the testing version.

To reproduce unset the $PAGER env var, view any man page and try to scroll with cursor keys.

Edit: If you don't want the autodetection, add --with-pager=less to configure instead of the dependency.
Comment by Dave Reisner (falconindy) - Monday, 20 May 2013, 02:16 GMT
Ah right, forgot PAGER was honored along with MANPAGER. You're right about the autoconf script, but i'd suggest passing 'less -s' instead of just 'less' as this is the default.
Comment by Evangelos Foutras (foutrelis) - Monday, 20 May 2013, 05:07 GMT
No need to pass 'less -s'; if you specify --with-pager=less the autoconf script will still append the -s option to it.

Another thing to note is that man-db built with --with-pager=less won't work if less isn't installed.

The error is: "man: can't execute less: No such file or directory"

So 'less' needs to be changed to a hard dependency. (In which case it'd also be auto-detected during the build, so --with-pager can be omitted.)

Loading...