<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>52122</bug_id>
          
          <creation_ts>2004-05-26 11:52 0000</creation_ts>
          <short_desc>Please give option to set DEF_PAGER in nethack ebuild</short_desc>
          <delta_ts>2004-07-10 02:41:08 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andrew@fabbro.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>andrew@fabbro.org</who>
            <bug_when>2004-05-26 11:52:22 0000</bug_when>
            <thetext>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&apos;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&apos;d to /usr/bin/less or whatever, which the user can then later override if they want.  IF you don&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-05-26 19:23:51 0000</bug_when>
            <thetext>setting it to $PAGER if it is set in the environment shouldnt be too much of a problem</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-07-10 02:41:08 0000</bug_when>
            <thetext>nethack-3.4.3-r1 has this fix.  Thanks for the bug report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>