From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: [PATCH 2/3] gnu: Add man-db Date: Mon, 07 Apr 2014 21:51:58 -0400 Message-ID: <87d2gssi4h.fsf@yeeloong.lan> References: <877g72ezqb.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> <874n26ezp0.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> <871txaeznu.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> <87vbulsox9.fsf@yeeloong.lan> <87txa59xvw.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXLE5-0005OJ-Hg for guix-devel@gnu.org; Mon, 07 Apr 2014 21:53:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXLDv-0007W4-GO for guix-devel@gnu.org; Mon, 07 Apr 2014 21:53:25 -0400 Received: from world.peace.net ([96.39.62.75]:47234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXLDv-0007Vj-8T for guix-devel@gnu.org; Mon, 07 Apr 2014 21:53:15 -0400 In-Reply-To: <87txa59xvw.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Mon, 07 Apr 2014 07:34:11 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson writes: >> Why is 'lynx' an input? I remember you mentioning on IRC that if PAGER >> is not set, it launched a web browser by default. I wonder: if you >> included 'less' and not 'lynx', would it use 'less' by default >> instead? > > My system seems to be doing weird things and insisting on w3m for some > reason. That might be because the '.bash_profile' file I showed you set PAGER to w3m. I found that if I unset PAGER, this man-db uses 'less' by default, which I think is sensible. > + (propagated-inputs > + `(("groff" ,groff) > + ("less" ,less))) Instead of making these propagated inputs, how about arranging for man-db to invoke the programs directly from the store? There are a number of ./configure options that should probably be specified with absolute pathnames: --with-pager --with-nroff --with-eqn --with-neqn --with-tbl --with-refer --with-pic --with-gzip --with-bzip2 --with-xz You could pass add these to the #:configure-flags. The goal should be for 'man' to work properly without having to look up any of its dependent programs from $PATH and with PAGER unset. >From the #:configure-flags code, %build-inputs can be looked up for the input paths. So you could do something like (untested): --8<---------------cut here---------------start------------->8--- `(#:configure-flags (let ((groff (assoc-ref %build-inputs "groff")) (less (assoc-ref %build-inputs "less")) (gzip (assoc-ref %build-inputs "gzip")) ...) (append (list (string-append "--with-pager=" less "/bin/less") (string-append "--with-gzip=" gzip "/bin/gzip") ...) (map (lambda (prog) (string-append "--with-" prog "=" groff "/bin/" prog)) '("nroff" "eqn" "neqn" "tbl" "refer" "pic"))))) --8<---------------cut here---------------end--------------->8--- Thanks! Mark