Hi,

first please consider the attached patch required for a correct VPATH build.

========

In addition there are still serious problems with updating the resources in
~/.gv via gv-update-userconfig.

When there is no such file ~/.gv, I obtain the message:

One of the files
    /usr/local/X11R6/share/gv/gv_system.ad
    /usr/local/X11R6/lib/X11/app-defaults/GV
belongs to an older version of gv and cannot be used.
Please remove or update the outdated file.
Quite probably your /usr/local/X11R6/lib/X11/app-defaults/GV is too old.
Running gv-update-userconfig /usr/local/X11R6/lib/X11/app-defaults/GV should 
help
by removing all incompatible resources.

This is misleading (a non-root user can certainly not update files under
/usr/local). Moreover "gv-update-userconfig" fails with
Cannot open $HOME/.gv for reading.

Thus the user has to "touch ~/.gv; gv-update-userconfig", but this is by no
means obvious.

Please fix gv such that the program correctly diagnoses that ~/.gv is
missing (and creates such a file). In addition gv-update-userconfig should
also create this file when missing.

Regards
Peter Breitenlohner <p...@mppmu.mpg.de>
        This patch is required in a VPATH build to correctly generate
        src/gv-i18n.h and src/gv_intern_res_unix.dat

diff -ur gv-3.7.1.orig/src/Makefile.am gv-3.7.1/src/Makefile.am
--- gv-3.7.1.orig/src/Makefile.am       2010-06-03 18:36:25.000000000 +0200
+++ gv-3.7.1/src/Makefile.am    2010-06-03 18:36:25.000000000 +0200
@@ -205,7 +205,7 @@
        @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite 
-sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
        @echo "GV.gsX11Device:          -sDEVICE=x11" >> gv_intern_res_unix.dat
        @echo "GV.gsX11AlphaDevice:     -sDEVICE=x11 -dTextAlphaBits=4 
-dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS" >> 
gv_intern_res_unix.dat
-       @echo "GV.gsSafeDir:            True" >> 
$(srcdir)/gv_intern_res_unix.dat
+       @echo "GV.gsSafeDir:            True" >> gv_intern_res_unix.dat
        @echo "GV.gsSafer:              True" >> gv_intern_res_unix.dat
        @echo "GV.gsQuiet:              True" >> gv_intern_res_unix.dat
        @echo "GV.infoVerbose:          Warnings" >> gv_intern_res_unix.dat
diff -ur gv-3.7.1.orig/src/Makefile.in gv-3.7.1/src/Makefile.in
--- gv-3.7.1.orig/src/Makefile.in       2010-06-08 19:59:16.000000000 +0200
+++ gv-3.7.1/src/Makefile.in    2010-06-08 19:59:16.000000000 +0200
@@ -1172,7 +1172,7 @@
        @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite 
-sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
        @echo "GV.gsX11Device:          -sDEVICE=x11" >> gv_intern_res_unix.dat
        @echo "GV.gsX11AlphaDevice:     -sDEVICE=x11 -dTextAlphaBits=4 
-dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS" >> 
gv_intern_res_unix.dat
-       @echo "GV.gsSafeDir:            True" >> 
$(srcdir)/gv_intern_res_unix.dat
+       @echo "GV.gsSafeDir:            True" >> gv_intern_res_unix.dat
        @echo "GV.gsSafer:              True" >> gv_intern_res_unix.dat
        @echo "GV.gsQuiet:              True" >> gv_intern_res_unix.dat
        @echo "GV.infoVerbose:          Warnings" >> gv_intern_res_unix.dat
diff -ur gv-3.7.1.orig/src/gv-i18n.pl gv-3.7.1/src/gv-i18n.pl
--- gv-3.7.1.orig/src/gv-i18n.pl        2010-06-03 18:36:25.000000000 +0200
+++ gv-3.7.1/src/gv-i18n.pl     2010-08-19 13:40:13.000000000 +0200
@@ -18,7 +18,7 @@
    $lang2 = $lang;
    $lang2 =~ s/[^a-zA-Z_0-9]/_/g;
    print "static String gv_nls_${lang2} [] = {\n";
-   system "$src/ad2c nls/$lang";
+   system "$src/ad2c $src/nls/$lang";
    print "0};\n\n";
 }
 

Reply via email to