groff
[Top][All Lists]
Advanced

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

Re: [Groff] Clean install of groff (cvs): gropdf not in path


From: Peter Schaffter
Subject: Re: [Groff] Clean install of groff (cvs): gropdf not in path
Date: Sat, 15 Sep 2012 16:21:33 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Axel --

On Sat, Sep 15, 2012, Axel Kielhorn wrote:
> I wanted to look at the new mom macros and installed groff
> from cvs.  I was a little surprised that the pdf files in
> contrib/mom/examples were all 0 bytes long.
> 
> And here is the reason:
> 
> GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX; 
> PDFMOM_BIN_PATH=/Users/axel/src/groff/src/devices/gropdf; export 
> PDFMOM_BIN_PATH; /Users/axel/src/groff/src/devices/gropdf/pdfmom 
> -F/Users/axel/src/groff/font -F/Users/axel/src/groff/font 
> -M/Users/axel/src/groff/tmac -M/Users/axel/src/groff/tmac -M. 
> examples/typesetting.mom >examples/typesetting.pdf
> 
> groff: couldn't exec gropdf: No such file or directory
> 
> PDFMOM_BIN_PATH is set to call pdfmom.
> pdfmom calles gropdf without the PDFMOM_BIN_PATH and fails when gropdf is not 
> in $PATH.
> If you installed groff with gropdf earlier it is found in $PATH,
> but the version used is not the current version.
> 
> When you install groff and call make again, nothing happens since
> the zero length file already exist.  You have to delete the pdf
> files and the stamp and remake.

Thanks for catching this.  Here's a patch for
  
  groff-current/contrib/mom/Makefile.sub

====================================================================

--- Makefile.sub.orig   2012-09-15 15:59:48.964497338 -0400
+++ Makefile.sub        2012-09-15 15:59:57.303853174 -0400
@@ -39,6 +39,8 @@
 
 PDFMOM=GROFF_COMMAND_PREFIX=''; \
       export GROFF_COMMAND_PREFIX; \
+      GROFF_BIN_PATH=$(GROFF_BIN_PATH); \
+      export GROFF_BIN_PATH; \
       PDFMOM_BIN_PATH=$(top_builddir)/src/devices/gropdf; \
       export PDFMOM_BIN_PATH; \
       $(PDFMOMBIN) $(FFLAG) $(TFLAG)

====================================================================

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca



reply via email to

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