bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with tmacdir expansion


From: Klaus Singvogel
Subject: Re: Problem with tmacdir expansion
Date: Thu, 7 Dec 2000 21:55:36 +0100
User-agent: Mutt/1.2.5i

Hi.
I'm so sorry. Now I found the cause of the problem. It is the
PATH: If I call groff, then it executes the troff found in my
$PATH and not the one which is in neighbour directory. Sorry.

I will now go and stand in a corner with a brown paper bag over my head
and repeat a hundred times, ``you have to rethink the case before you
write a bug report on a solid software''.

Regars,
        Klaus.

On Thu, Dec 07, 2000 at 09:29:03PM +0100, Klaus Singvogel wrote:
> On Thu, Dec 07, 2000 at 05:43:11PM +0100, Klaus Singvogel wrote:
> 
> > GROFF VERSION: 1.16.1
> > MACHINE: "typical" PC-Server: 2x Pentium III 800 Mhz, 2 GB RAM, 2x16 GB HD
> > OS: Linux 2.4.0-test11final2 
> > COMPILER: gcc-2.95.2
> > INPUT FILES: groff-1.16.1/src/include/defs.h
> > COMMAND LINE: (it's more a build/compile problem)
> > make 'tmacpath=.:$(tmacdir):/usr/share/tmac'
> > touch /usr/share/tmac/tmac.xxx
> > strace -s 512 -f -F -o /tmp/groff-1.16.1/groff.trc 
> > groff-1.16.1/src/roff/groff/groff -mxxx 
> > groff-1.16.1/src/roff/groff/groff.man
> > grep xxx /tmp/groff-1.16.1/groff.trc
> > 
> > DESCRIPTION OF INCORRECT BEHAVIOUR:
> > The search path of macros was expanded with the make call (see above),
> > but the test shows that it expand. If I look into file
> >     groff-1.16.1/src/include/defs.h  (attached)
> > then I see the line
> >     #define MACROPATH ".:/usr/share/groff/tmac:/usr/share/tmac"
> > Even more, if I call groff with
> >     env GROFF_TMAC_PATH='.:/usr/share/groff/tmac:/usr/share/tmac'
> > then I see the open(2) of file /usr/share/tmac/tmac.xxx -- Very strange
> > behaviour.
> > 
> > 
> > SUGGESTED FIX [optional]:
> > I'm working on it and sent ASAP I know more. But maybe you already have one?
> 
> 
> Additional information:
> If I use troff instead of groff the modified path is used,
> If I use groff or nroff (IMHO a wrapper for troff), then it isn't.
> 
> I also set the "#if 0" in groff-1.16.1/src/libs/libgroff/searchpath.cc
> to "#if 1" for getting better debug output. It confirms my suspiction
> from strace: /usr/sahre/tmac/tmac.xxx is only open'ed by troff, but
> not by groff or nroff.
> 
> Regards,
>       Klaus.
> -- 
>   .-.  | Klaus Singvogel             GPG-Key-ID: 1024R/5068792D  1994-06-27
>   oo|  | Caldera (Deutschland) GmbH, Naegelsbachstr. 49c, 91052 Erlangen
>  /`'\  | email: address@hidden        internet: http://www.caldera.de
> (\_;/) | phone: ++49 9131 7192-300   fax: ++49 9131 7192-399 

-- 
  .-.  | Klaus Singvogel             GPG-Key-ID: 1024R/5068792D  1994-06-27
  oo|  | Caldera (Deutschland) GmbH, Naegelsbachstr. 49c, 91052 Erlangen
 /`'\  | email: address@hidden        internet: http://www.caldera.de
(\_;/) | phone: ++49 9131 7192-300   fax: ++49 9131 7192-399 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]