Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/graphics
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28639/10.4-transitional/unstable/main/finkinfo/graphics

Modified Files:
        xfig.info xfig.patch 
Log Message:
Patch system(gunzip) to handle filenames beginning with hyphens.


Index: xfig.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/graphics/xfig.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xfig.info   26 Oct 2005 04:31:56 -0000      1.3
+++ xfig.info   26 Oct 2005 06:46:32 -0000      1.4
@@ -1,7 +1,7 @@
 Package: xfig
 Version: 3.2.5
 # package for 3.2.5 alpha 5
-Revision: 4
+Revision: 5
 BuildDepends: libjpeg (>= 6b-3), libpng3, libtiff, xaw3d (>= 1.5-11), x11-dev
 Depends: x11, xaw3d-shlibs (>= 1.5-11), libjpeg-bin, app-defaults, 
x-ghostscript-fonts, transfig (>= 3.2.5-2), libjpeg-shlibs, libpng3-shlibs, 
x11-shlibs
 #Source: http://www.xfig.org/xfigdist/%n.%v.full.tar.gz
@@ -29,7 +29,8 @@
 
  Patched an 'install' command to fix installation of filenames
  beginning with hyphens (may not be needed in future upstream
- releases)
+ releases) and an internal system(gunzip) to be able to read the
+ installed files.
 <<
 DescPackaging: <<
  XFIGLIBDIR was set to %p/share/xfig.  Looks in /etc/printcap

Index: xfig.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/graphics/xfig.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xfig.patch  26 Oct 2005 04:26:51 -0000      1.3
+++ xfig.patch  26 Oct 2005 06:46:32 -0000      1.4
@@ -129,3 +129,24 @@
 +
  int           x_fontnum();
  #endif /* U_FONTS_H */
+diff -Nurd -x'*~' xfig.3.2.5-alpha5.orig/f_util.c xfig.3.2.5-alpha5/f_util.c
+--- xfig.3.2.5-alpha5.orig/f_util.c    2004-01-06 14:46:08.000000000 -0500
++++ xfig.3.2.5-alpha5/f_util.c 2005-10-26 02:17:42.000000000 -0400
+@@ -782,7 +782,7 @@
+     else strcpy(dirname, ".");
+ 
+     if (access(dirname, W_OK) == 0) {  /* OK - the directory is writable */
+-      sprintf(unc, "gunzip -q %s", name);
++      sprintf(unc, "gunzip -q -- %s", name);
+       if (system(unc) != 0)
+       file_msg("Couldn't uncompress the file: \"%s\"", unc);
+       strcpy(name, plainname);
+@@ -793,7 +793,7 @@
+         sprintf(tmpfile, "%s%s", TMPDIR, c);
+       else
+         sprintf(tmpfile, "%s/%s", TMPDIR, plainname);
+-      sprintf(unc, "gunzip -q -c %s > %s", name, tmpfile);
++      sprintf(unc, "gunzip -q -c -- %s > %s", name, tmpfile);
+       if (system(unc) != 0)
+         file_msg("Couldn't uncompress the file: \"%s\"", unc);
+       file_msg ("Uncompressing file %s in %s because it is in a read-only 
directory",



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to