D Arnold wrote:
> 
> 13 March 2005
> 
> When I installed gforth-0.6.2 on Debian 3.0 Linux, I had some difficulty 
> installing the info docs for gforth and vmgen.  I found a simple remedy, 
> but I do not know whether it was a good one.
> 
> During su -c 'make install', install-info aborted with an odd message 
> about a failed directory lock during a file edit, and the Makefile 
> aborted near the end.  As far as I can tell, the install-info program of 
> Debian 3.0r3 does not generate an empty info 'dir' file as needed. 

Yes, that is a known problem and documented (with some workarounds) on

http://www.complang.tuwien.ac.at/forth/gforth/Known-problems.html

(under 0.6.1); I guess I should point to it from the 0.6.2 entries,
too.

> Meanwhile, I changed two 
> things and got a good gforth install:
> 
> (1.) Before compiling gforth, I put an empty info 'dir' file in 
> /usr/local/info/ by copying the system top level 'dir' file from 
> /usr/info/ and deleting everything past the '* Menu' heading in the copy.

Yes, that's one of the workarounds we suggest.

> (2.) I defined and exported a global INFOPATH environment variable in 
> /etc/profile.
> 
> The info system now finds the gforth and vmgen info docs if they are 
> explicitly named (info gforth, etc), but gforth and vmgen do not appear 
> in the top level info directory display.

That's strange.  Usually info (at least in Emacs) concatenates the
stuff from different dir files.  Maybe you introduced some format
error in dir, so that it does not do that.

> With a suitably altered command in the gforth Makefile, install-info 
> could put gforth and vmgen in the top level info directory file in 
> /usr/info/.  Another Makefile parameter to specify the location of the 
> directory file would be needed.  Maybe some Makefile parameters that 
> specify the location of the gforth info docs would need to be renamed to 
> clearly distinguish, on the one hand, the working location of the gforth 
> info doc data and the operation of copying the data and, on the other 
> hand, the location of the system info directory file and the operation 
> of installing references to the new docs.  Parameters named infotop and 
> infodoc might serve, and the Makefile would need very little alteration, 
> I think.

Actually there is such a Makefile variable: infodir.  So another
workaround we suggested is:

make install infodir=/usr/share/info


> I feel a little uneasy about adding the global environment variable 
> INFOPATH to the system configuration, because I have heard of secuity 
> breaches that use altered parameter strings to produce an exploitable 
> malfunction.  Is this safe?

The only potential safety problems I see are if an untrusted user can
write to the directories mentioned in the INFOPATH.

- anton


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to