From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id dfb27d61; for ; Wed, 26 Nov 2014 19:43:58 -0500 (EST) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1XtnBc-0002Uy-1A; Thu, 27 Nov 2014 01:43:56 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1XtnBb-0004Qg-Tk; Thu, 27 Nov 2014 01:43:55 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1XtnBb-0006cz-SG; Thu, 27 Nov 2014 01:43:55 +0100 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1XtnBb-0006Id-Kh; Thu, 27 Nov 2014 01:43:55 +0100 Date: Thu, 27 Nov 2014 01:43:55 +0100 From: Ingo Schwarze To: Baptiste Daroussin Cc: tech@mdocml.bsd.lv Subject: Re: support another man.conf(5) format or extending it Message-ID: <20141127004355.GI26411@iris.usta.de> References: <20141124125019.GA11567@ivaldir.etoilebsd.net> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141124125019.GA11567@ivaldir.etoilebsd.net> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Baptiste, Baptiste Daroussin wrote on Mon, Nov 24, 2014 at 01:50:19PM +0100: > While working on integrating mandoc(1) into FreeBSD I have not yet > integrated apropos and makewhatis because of the difference of format > of man.conf(5). > > Will you be against that I modifiy the man.conf(5) parser so that > is does support a minimum set of the FreeBSD's man.conf(5) ? I don't see any other way to solve that issue. > BAsically I'm think about mostly: > > MANCONFIG > MANPATH Seems reasonable. The man.conf(5) format itself is refreshingly simple. I hate all kinds of *.d configuration directories, but well, maybe it's a matter of taste and we need to deal with it in any case. If you volunteer to prepare a patch, i'll see whether i can commit it as is, or otherwise edit it a bit to better fit into the framework. Probably, switching will be done at ./configure time and with #if directives. I might need some help how to best let ./configure detect your flavour of man.conf(5). > Here is the manpage of FreeBSD's version of man.conf(5) > > Btw I think I'll try to make FreeBSD tracking the CVS version > of mdocml rather than the releases now because the CVS version > works way better for me :) Feel free if you want to. I'm doing the same in OpenBSD. It makes sense if you maintain it very actively. Most other downstream projects prefer the less exciting way of tracking releases, but both are fine when done properly. > Btw here is a small patch to fix build when HAVE_MANPATH is set. Committed, thanks. Ingo > Index: manpath.c > =================================================================== > RCS file: /cvs/mdocml/manpath.c,v > retrieving revision 1.18 > diff -u -r1.18 manpath.c > --- manpath.c 18 Nov 2014 19:41:47 -0000 1.18 > +++ manpath.c 24 Nov 2014 11:26:19 -0000 > @@ -80,7 +80,7 @@ > if ( ! ferror(stream) && feof(stream) && > bsz && '\n' == buf[bsz - 1]) { > buf[bsz - 1] = '\0'; > - manpath_parseline(dirs, buf); > + manpath_parseline(dirs, buf, 1); > } > > free(buf); -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv