[56488] trunk/dports/x11/lesstif

jeremyhu at macports.org jeremyhu at macports.org
Fri Aug 28 13:32:17 PDT 2009


Revision: 56488
          http://trac.macports.org/changeset/56488
Author:   jeremyhu at macports.org
Date:     2009-08-28 13:32:13 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
lesstif: Added missing braces to CutPaste code which caused nedit to crash with XQuartz 2.4.0

Modified Paths:
--------------
    trunk/dports/x11/lesstif/Portfile

Added Paths:
-----------
    trunk/dports/x11/lesstif/files/
    trunk/dports/x11/lesstif/files/missing_braces.patch

Modified: trunk/dports/x11/lesstif/Portfile
===================================================================
--- trunk/dports/x11/lesstif/Portfile	2009-08-28 17:53:45 UTC (rev 56487)
+++ trunk/dports/x11/lesstif/Portfile	2009-08-28 20:32:13 UTC (rev 56488)
@@ -3,6 +3,7 @@
 PortSystem 1.0
 name		lesstif
 version		0.95.2
+revision	1
 categories	x11
 maintainers	mac.com:lomion
 description 	An Open Source implementation of OSF/Motif.
@@ -36,6 +37,8 @@
 variant motif20	{ configure.args-append --enable-build-20 }
 variant xdnd	{ configure.args-append --enable-xdnd }
 
+patchfiles missing_braces.patch
+
 post-patch {
 	system "touch ${worksrcpath}/test/{NEWS,README,AUTHORS,ChangeLog,COPYING}"
 

Added: trunk/dports/x11/lesstif/files/missing_braces.patch
===================================================================
--- trunk/dports/x11/lesstif/files/missing_braces.patch	                        (rev 0)
+++ trunk/dports/x11/lesstif/files/missing_braces.patch	2009-08-28 20:32:13 UTC (rev 56488)
@@ -0,0 +1,17 @@
+--- lib/Xm-2.1/CutPaste.c.orig	2007-09-12 13:05:58.000000000 -0700
++++ lib/Xm-2.1/CutPaste.c	2009-08-28 13:30:49.000000000 -0700
+@@ -1027,10 +1027,11 @@ _XmClipboardReplaceItem(Display *display
+ 	nunits = transferlen;
+ 	/* XChangeProperty expects a buffer of longs when receiving 32 bits
+ 	   data, MEUHH */
+-	if (sizeof(long) != 4)
++	if (sizeof(long) != 4) {
+ 	    convert_buf = XtMalloc(len * sizeof(long));
+-        for (i = 0; i < len; i++)
+-            convert_buf[i] = data[i];
++	    for (i = 0; i < len; i++)
++		convert_buf[i] = data[i];
++	}
+ 	break;
+ 
+     case 16:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090828/e4bc5f51/attachment-0001.html>


More information about the macports-changes mailing list