[29015] trunk/dports/devel/m4

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 13 00:18:37 PDT 2007


Revision: 29015
          http://trac.macosforge.org/projects/macports/changeset/29015
Author:   nox at macports.org
Date:     2007-09-13 00:18:37 -0700 (Thu, 13 Sep 2007)

Log Message:
-----------
m4:
 * Fixed #12699 (thanks takanori!).
 * Removed cd call.

Modified Paths:
--------------
    trunk/dports/devel/m4/Portfile

Added Paths:
-----------
    trunk/dports/devel/m4/files/
    trunk/dports/devel/m4/files/patch-src_output.c

Modified: trunk/dports/devel/m4/Portfile
===================================================================
--- trunk/dports/devel/m4/Portfile	2007-09-13 06:54:14 UTC (rev 29014)
+++ trunk/dports/devel/m4/Portfile	2007-09-13 07:18:37 UTC (rev 29015)
@@ -4,6 +4,7 @@
 
 name            m4
 version         1.4.10
+revision        1
 categories      devel
 maintainers     blair openmaintainer
 platforms       darwin
@@ -25,6 +26,8 @@
                 sha1 df46910c7e711aef1a654b077ef48d86a6a0cc6b \
                 rmd160 db9e91a01104a7543e69527da6d4f059a56ffefb
 
+patchfiles      patch-src_output.c
+
 configure.args  --program-prefix=g
 
 post-destroot {
@@ -43,10 +46,9 @@
 variant with_default_names {
     post-destroot {
         foreach d {bin share/info share/man/man1} {
-            cd ${destroot}${prefix}/$d
-            foreach a [glob g*] {
+            foreach a [glob -directory ${destroot}${prefix}/$d -tail g*] {
                 regexp g(.+) $a dummy b
-                file link -hard $b g$b
+                file link -hard ${destroot}${prefix}/$d/$b ${destroot}${prefix}/$d/g$b
             }
         }
     }

Added: trunk/dports/devel/m4/files/patch-src_output.c
===================================================================
--- trunk/dports/devel/m4/files/patch-src_output.c	                        (rev 0)
+++ trunk/dports/devel/m4/files/patch-src_output.c	2007-09-13 07:18:37 UTC (rev 29015)
@@ -0,0 +1,14 @@
+--- src/output.c        5 Jul 2007 03:53:08 -0000       1.1.1.1.2.23
++++ src/output.c        22 Jul 2007 04:23:17 -0000
+@@ -252,6 +252,11 @@ m4_tmpopen (int divnum)
+   else if (set_cloexec_flag (fileno (file), true) != 0)
+     M4ERROR ((warning_status, errno,
+	      "Warning: cannot protect diversion across forks"));
++  /* POSIX states that it is undefined whether an append stream starts
++     at offset 0 or at the end.  We want the beginning.  */
++  else if (fseeko (file, 0, SEEK_SET) != 0)
++    M4ERROR ((EXIT_FAILURE, errno,
++	      "cannot seek to beginning of diversion"));
+   return file;
+ }
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070913/e35bedd3/attachment.html


More information about the macports-changes mailing list