Bug 52122 - Please give option to set DEF_PAGER in nethack ebuild
Bug#: 52122 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: andrew@fabbro.org
Component: Games
URL: 
Summary: Please give option to set DEF_PAGER in nethack ebuild
Keywords:  
Status Whiteboard: 
Opened: 2004-05-26 11:52 0000
Description:   Opened: 2004-05-26 11:52 0000
In the nethack ebuild (as of 3.4.3), DEF_PAGER is not set in unixconf.h.  This
means nethack will only use its internal pager and the user cannot override the
rather primitive internal pager with something nicer, like less.  There may be
security reasons why someone wouldn't want DEF_PAGER set...on the other hand,
there are certainly reasons why someone would want it set, such as using a
modern pager.

The best way to resolve this would be to make it a choice in the ebuild - set a
variable when you emerge and you get DEF_PAGER #define'd to /usr/bin/less or
whatever, which the user can then later override if they want.  IF you don't
set it, you get the internal pager and no ability to override.

Right now, the only way to change the DEF_PAGER choice is to hack the
tarball/MD5 or do a local patch.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From SpanKY 2004-05-26 19:23:51 0000 -------
setting it to $PAGER if it is set in the environment shouldnt be too much of a
problem

------- Comment #2 From Mr. Bones. 2004-07-10 02:41:08 0000 -------
nethack-3.4.3-r1 has this fix.  Thanks for the bug report.