From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nm47-vm7.bullet.mail.bf1.yahoo.com (nm47-vm7.bullet.mail.bf1.yahoo.com [216.109.115.142]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 4fcda6a7 for ; Sat, 7 Nov 2015 20:38:16 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1446946694; bh=h7b6O9ckEYSepIH4Dz1PMWAGuKl6VxRgWiHZhBXBaw4=; h=Date:From:To:Subject:From:Subject; b=WYnxXij9Q0RocLu6shVV4t8ivv/FCZVE82uhWMdX/lGqpmTVBWxUsq+KP6A5I6reRx+njrNYnQMjhI/NYqT7DXsZxHgX0HF4g6T9ztyFHmTWX9CVYhy4vUoOHXin6QyEVq90crQZSwqUFLj+1gMyi8amb+5rkk53lyNJNNJPWuHGf0Se1Qrpe82nPvkmj3+H9mOa2WIu0N2pfKVbRgYG6OD7GegBEFONIsChg98/8HuxPgP3ZIYebzool3+mE8xx6qWrMlUfKFSrtp4xT7ziwWwbOq35TsdVvNmq9ok4R1+/Gh3cl7e+hv6gac6ipLD9gQ3ZVzRWrDDKpMbnQANKuQ== Received: from [66.196.81.174] by nm47.bullet.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 01:38:14 -0000 Received: from [98.139.211.193] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 01:38:14 -0000 Received: from [127.0.0.1] by smtp202.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 01:38:14 -0000 X-Yahoo-Newman-Id: 715264.12405.bm@smtp202.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: eAdk4UUVM1mrJZXQWShl5IK6ZgisCv7YOcSiLH5NLgMxXDN 7Koa21WZvszAHXJBCRyFZ4R9oeWEHEMZs3HybYQRORM84OldcBt3pbYftsx2 iycr5tFMnYzSDdtS7z60VHqXDbZ8hHw3wJ8xLSTmymlFhXYiGVDRF9s0sRev 8CwDYt1AaqUvHdmVPA_8CSLkS.lObeUKQsDllMbNx.Lh_8SGa6oXbc9ZVZqK oXK3HfOZVhLcU_EP1ATlB9xhxvnEGzeoSDM.cXyPCg_GyL_yJo_SwQW2REza No2SuzZuWyJmQVe3CKi_PUV8x_Ig7E.LIhjWzIBHfDeFz1lAuJGjHXeQMLlv j2BqS9r4M2tiodFMmhtiOcLhPRPnowQVAYebFo_ibd55zMngx88SK3311Drw xWnKqXmPia7fAwNQg24PRilRZgtU4bh8MgeA3w6K_Q3a7VYHJSQcD1gcxS5A Hi4z2qI6FSeiuebJfDdzWgYS9oWjAJ9PkBu4JC2ucmVdFlvi4fpBulBMwR4s uLiPHfwlKL_5tLxpn_3sPeXOWKJAvSZ4- X-Yahoo-SMTP: wy_7AdSswBBaijFlmVnVzTL.0g-- Message-ID: <563EA784.9000309@yahoo.com.au> Date: Sun, 08 Nov 2015 12:38:12 +1100 From: Peter Bray User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: mdocml [CVS_2015_11_08] makewhatis and man commands issues Content-Type: multipart/mixed; boundary="------------040105030306090105070206" This is a multi-part message in MIME format. --------------040105030306090105070206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Greetings, After installing mdocml commands with a prefix of "mandoc_", running 'mandoc_man mandoc' gives an error about an out-of-date whatis database. The error asks the user (administrator) to run 'makewhatis', as can be seen in this fragment of code: 614 #if HAVE_SQLITE3 615 warnx("outdated mandoc.db lacks %s(%s) entry, run makewhatis %s", 616 name, sec, paths->paths[ipath]); 617 #endif IMHO, the code should not be hard coding that name, but using the cpp(1) macro defined in config.h BINM_MAKEWHATIS. Patch Attached. Moving on... I had initial written: "mdocml's makewhatis(8) does not support Symbolic Link Managers, such as graft [my case], stow, depot." But than on looking at the code, found that that Symbolic Link Managers are handled and that its via the support for OSX's homebrew. And found the Homebrew section in 'configure.local.example', which I had skipped on the initial reading as I'm not on OSX thus not using homebrew. Could I humbly suggest that the wording in 'configure.local.example' be generalized to include all Symbolic Link Managers and maybe the control variable (HOMEBREWDIR) be given a more generic name. (It's only a suggestion, as the code does seem to symlinks correctly after that configuration change). Moving on... The following is the default behavior of the just installed 'mandoc_man', with no 'man.conf' configuration file in place, but with whatis databases in place: % env | egrep 'more|less|PAGER|MORE|LESS' % mandoc_man mandoc :::::::::::::: /tmp/man.XXXXdtaO_A :::::::::::::: warning /tmp/man.XXXXctaO_A 339 fragment /tmp/man.XXXXctaO_A 171 \&Dt /tmp/man.XXXXctaO_A 910 style /tmp/man.XXXXctaO_A 190 I /tmp/man.XXXXctaO_A 29 \&An /tmp/man.XXXXctaO_A 907 K /tmp/man.XXXXctaO_A 35 \&OP /tmp/man.XXXXctaO_A 909 O /tmp/man.XXXXctaO_A 62 mparse_reset /tmp/man.XXXXctaO_A 1065 MANPAGER /tmp/man.XXXXctaO_A 257 \&Fo /tmp/man.XXXXctaO_A 906 man_node /tmp/man.XXXXctaO_A 1063 T /tmp/man.XXXXctaO_A 65 iso-8859-1 /tmp/man.XXXXctaO_A 51 \&RE /tmp/man.XXXXctaO_A 908 W /tmp/man.XXXXctaO_A 69 \&TH /tmp/man.XXXXctaO_A 911 indent /tmp/man.XXXXctaO_A 148 paper /tmp/man.XXXXctaO_A 227 mparse_alloc /tmp/man.XXXXctaO_A 1055 unsupp /tmp/man.XXXXctaO_A 321 a /tmp/man.XXXXctaO_A 18 mparse_free /tmp/man.XXXXctaO_A 1065 c /tmp/man.XXXXctaO_A 22 f /tmp/man.XXXXctaO_A 26 includes /tmp/man.XXXXctaO_A 177 h /tmp/man.XXXXctaO_A 33 k /tmp/man.XXXXctaO_A 53 l /tmp/man.XXXXctaO_A 56 m /tmp/man.XXXXctaO_A 58 error /tmp/man.XXXXctaO_A 325 utf-8 /tmp/man.XXXXctaO_A 40 mdoc_node /tmp/man.XXXXctaO_A 1063 PAGER /tmp/man.XXXXctaO_A 260 width /tmp/man.XXXXctaO_A 154 mparse_result /tmp/man.XXXXctaO_A 1061 man /tmp/man.XXXXctaO_A 183 mparse_readfd /tmp/man.XXXXctaO_A 1059 \&Bd /tmp/man.XXXXctaO_A 912 mparse_open /tmp/man.XXXXctaO_A 1057 :::::::::::::: /tmp/man.XXXXctaO_A :::::::::::::: MANDOC(1) General Commands Manual MANDOC(1) NAME mandoc - format and display UNIX manuals SYNOPSIS mandoc [-acfhkl] [-I os=name] [-K encoding] [-mformat] [-O option] Reading mandoc.1, I found that this use of more(1) matches the -a option, but the -c option states it is the default. % mandoc_man -c mandoc # Plain text, manual page only % mandoc_man -c mandoc | less # Bold and Plain text, manual page only % mandoc_man -c mandoc | more # Plain text, manual page only Any of the above creates a properly formatted mandoc manual page entry. Without investigation it looks like the -a option is the default and that it is passing the more filenames to more(1) than is required. Additionally, 'mandoc_man -a mandoc' produces the same "erroneous" output. That will have to do for today, I have to get back to my own project. Regards, Peter Bray Sydney, Australia --------------040105030306090105070206 Content-Type: text/plain; charset=ISO-8859-1; name="hardcoded-makewhatis-fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hardcoded-makewhatis-fix.diff" --- main.c.orig 2015-11-08 00:20:38.661200997 +0000 +++ main.c 2015-11-08 00:21:18.919810590 +0000 @@ -613,6 +613,6 @@ found: #if HAVE_SQLITE3 - warnx("outdated mandoc.db lacks %s(%s) entry, run makewhatis %s", - name, sec, paths->paths[ipath]); + warnx("outdated mandoc.db lacks %s(%s) entry, run %s %s", + name, sec, BINM_MAKEWHATIS, paths->paths[ipath]); #endif *res = mandoc_reallocarray(*res, ++*ressz, sizeof(struct manpage)); --------------040105030306090105070206-- -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv