Hallo Matt!

Quoting Matthew D. Fuller ([EMAIL PROTECTED]):
> A little slower this time :|  FreeBSD port updated to b4.

There is a tiny bug in your port. The line number information
within syntax errors is off by some lines. This is because m4 doesn't
get the -s switch. The switch is accidently passed as argv[0].

Additionally, FreeBSD's m4 honours the -s switch. I see no motivation
to use GNU m4. But maybee there is another point.


The patch:

diff -ur ctwm-b4-orig/files/patch-aa ctwm/files/patch-aa
--- ctwm-b4-orig/files/patch-aa Fri May  6 00:37:37 2005
+++ ctwm/files/patch-aa Fri May  6 13:40:07 2005
@@ -6,7 +6,7 @@
  #endif

  #if defined USE_M4 || defined USEM4
-+     M4PROG = $(LOCALBASE)/bin/gm4
++     M4PROG = /usr/bin/m4
     M4LIBDIR =
     M4INCDIR =

diff -ur ctwm-b4-orig/files/patch-ab ctwm/files/patch-ab
--- ctwm-b4-orig/files/patch-ab Sun Feb 13 20:29:15 2000
+++ ctwm/files/patch-ab Fri May  6 13:42:48 2005
@@ -13,7 +13,7 @@
                   dup2(fids[1], 1);       /* stdout = pipe to parent */
                   /* get_defs("m4", dpy, display_name) */
                   tmp_file = m4_defs(dpy, display_name);
-!                 execlp(M4PROG, "-s", tmp_file, "-", NULL);
+!                 execlp(M4PROG, M4PROG, "-s", tmp_file, "-", NULL);
                   /* If we get here we are screwed... */
                   perror("Can't execlp() m4");
                   exit(124);


-Derik.

Reply via email to