Article View: news.software.nn
Article #2177suggestions for easier/better installation (was Re: Installation under RISCos 4.51)
From: Paul Bickerstaff
Date: Fri, 18 Oct 1991 21:08
Date: Fri, 18 Oct 1991 21:08
116 lines
6260 bytes
6260 bytes
Based on my recent experiences I would like to offer 2 serious suggestions for minor changes to the installation docs and implementation. The first is general the second pertains to RISCos. First, thanks to all who offered help with my problem. It is now fixed and was just a very stupid oversight on my part (the nn master directory had the wrong permissions and nnmaster couldn't put a lock file in it). Several of you had emphasized the importance of directory ownership but I kept overlooking this one :-( However the real problem from my point of view (and which nobody offered any insight into) was the absence of any error messages from the dying nnmaster program. Deep in the bowels of the nnmaster man pages however I found that by default the error messages are mailed to the owner and sure enough in /usr/mail/news there they were. Knowing what the problem was it was trivial to locate the cause and fix. Now, I had set up the news account with logins disabled (like lp or rje accounts for instance) in the mistaken belief that the only issues involved were security ones with some programs running setuid to owner. Hence I never saw these mail messages. I believe that my setup was a reasonable thing for a novice to do but clearly the writers and maintainers of nn intend that installation and administration of nn be done from the news account. I suggest therefore that this should be stated up front e.g. (and preferably) in the config.h file and maybe in the INSTALLATION file. Hence my first suggestion is: 1) In the file config.h down where you define OWNER and GROUP, place an additional blurb in the remarks on ownership e.g. add after the 3rd sentence/paragraph * * Since nnmaster will by default mail error messages to the * owner it is recommended that you perform installation and * nn management from the OWNER account. * One could even make use of this account expedient by defining environment variables so that one could do things like cd $DB_DIR. However, to keep in line with configuration changes this would be best done by having make create/modify a file which could be sourced at login. But this is getting a little too ambitious a suggestion for the present. My second suggestion concerns formatting of the man pages. It is of particular concern under RISCos which has no man source but may be relevant to other systems also. Hence I have had to run all of the man pages through /bsd43/bin/nroff -man.new While this is not much of a problem to do once (actually about thrice already as I struggled with the install :-) ) , I shudder at the thought of future patches causing me to redo again and again and again ... (For those who mightn't understand the problem, or who can come up with a better solution, I elaborate a little later on.) Hence my second (very strong) recommendation (plea) is 2) In config.h allow an option such as the following to be included down where the man pages directories are defined. /* If your man pages are read on your system by a plain pager * then you will want to process them first before storing * in the MAN_DIR. In that case define NO_MAN_SOURCE * and MAN_FORMAT as appropriate. */ /* #define NO_MAN_SOURCE #define MAN_FORMAT "/bsd43/bin/nroff -man.new" /* */ Then it should be fairly simple to modify the inst program to pass the man pages through the MAN_FORMAT program before installing. I've looked and think even I could do it. Being an nn novice though I hesitate to try and supply some diffs without even asking for comment on the above. :-) I'm actually a little surprised that an option like this isn't there. Have I missed something? So what do you nn wizards think of these suggestions? [For those wanting a little more information about how RISCos does a call to man they basically "fake it out" to quote a Mips employee on comp.sys.mips about a year ago. Some directory listings show the strategy: % ls -l /usr/man total 171 l--------- 1 bin bin 12 Sep 4 1990 a_man -> catman/a_man drwxr-xr-x 5 bin bin 512 Jun 21 01:10 catman l--------- 1 root other 12 Jun 27 03:52 l_man -> catman/l_man l--------- 1 bin bin 12 Sep 4 1990 p_man -> catman/p_man l--------- 1 bin bin 12 Sep 4 1990 u_man -> catman/u_man -r--r--r-- 1 bin bin 82880 Aug 23 1990 whatis l--------- 1 bin bin 12 Sep 4 1990 x_man -> catman/x_man and % ls -l /usr/man/catman total 5 drwxr-xr-x 7 bin bin 512 Sep 4 1990 a_man l--------- 1 root other 14 Jun 21 01:10 l_man -> /usr/local/man drwxr-xr-x 13 bin bin 512 Sep 4 1990 p_man drwxr-xr-x 7 bin bin 512 Sep 4 1990 u_man l--------- 1 bin bin 17 Sep 4 1990 x_man -> ./../X11/man/cat with these directories containing the man section directories and those in turn containing the man pages files in readable form. Notice how I've set up the local man pages. What did other RISCos users do for the nn man pages? Do you persevere or do you know something I don't.] Paul Bickerstaff Internet: pbickers@tamaluit.phys.uidaho.edu Physics Dept., Univ. of Idaho Phone: (208) 885 6809 Moscow ID 83843, USA FAX: (208) 885 6173
Technical Details
Message-ID:
<1991Oct18.210810.16895@groucho>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!spool.mu.edu!uwm.edu!ogicse!uidaho!tamaluit!pbickersReferences:
<1991Oct17.000648.6719@groucho> <1991Oct14.210247.25826@groucho>Show Full Headers
Complete Article Headers
Message-ID: <1991Oct18.210810.16895@groucho> Subject: suggestions for easier/better installation (was Re: Installation under RISCos 4.51) Date: Fri, 18 Oct 1991 21:08:10 +0000 From: pbickers@tamaluit.phys.uidaho.edu (Paul Bickerstaff) References: <1991Oct17.000648.6719@groucho> <1991Oct14.210247.25826@groucho> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!spool.mu.edu!uwm.edu!ogicse!uidaho!tamaluit!pbickers Newsgroups: news.software.nn Sender: @groucho Reply-To: pbickers@tamaluit.phys.uidaho.edu (Paul Bickerstaff) Organization: phys dept Lines: 116 Nntp-Posting-Host: tamaluit.phys.uidaho.edu