[71943] trunk/dports/devel/libhsplasma

ryandesign at macports.org ryandesign at macports.org
Tue Sep 28 03:13:48 PDT 2010


Revision: 71943
          http://trac.macports.org/changeset/71943
Author:   ryandesign at macports.org
Date:     2010-09-28 03:13:45 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
libhsplasma: add variants for debugging network communications

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

Added Paths:
-----------
    trunk/dports/devel/libhsplasma/files/
    trunk/dports/devel/libhsplasma/files/patch-commdebug.diff

Modified: trunk/dports/devel/libhsplasma/Portfile
===================================================================
--- trunk/dports/devel/libhsplasma/Portfile	2010-09-28 09:42:53 UTC (rev 71942)
+++ trunk/dports/devel/libhsplasma/Portfile	2010-09-28 10:13:45 UTC (rev 71943)
@@ -28,6 +28,8 @@
                             port:openssl \
                             port:python26
 
+patchfiles                  patch-commdebug.diff
+
 configure.args-append       -DDISABLE_PYTHON:BOOL=OFF \
                             -DPYTHON_INCLUDE_DIR:PATH=${frameworks_dir}/Python.framework/Versions/2.6/Headers \
                             -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.6.dylib
@@ -53,6 +55,16 @@
     configure.cxxflags-append -ggdb
 }
 
+variant commdebug description {Debug network communications (high-level)} {
+    configure.cflags-append     -DCOMMDEBUG
+    configure.cxxflags-append   -DCOMMDEBUG
+}
+
+variant commdebug2 description {Debug network communications (low-level)} {
+    configure.cflags-append     -DCOMMDEBUG2
+    configure.cxxflags-append   -DCOMMDEBUG2
+}
+
 livecheck.type              regex
 livecheck.url               ${hg.url}
 livecheck.version           [lindex [split ${version} -] 1]

Added: trunk/dports/devel/libhsplasma/files/patch-commdebug.diff
===================================================================
--- trunk/dports/devel/libhsplasma/files/patch-commdebug.diff	                        (rev 0)
+++ trunk/dports/devel/libhsplasma/files/patch-commdebug.diff	2010-09-28 10:13:45 UTC (rev 71943)
@@ -0,0 +1,29 @@
+--- net/crypt/pnRC4.cpp.orig	2010-09-26 23:16:46.000000000 -0500
++++ net/crypt/pnRC4.cpp	2010-09-27 03:54:16.000000000 -0500
+@@ -115,7 +115,7 @@
+         }
+ 
+ #ifdef COMMDEBUG
+-        plDebug::Debug("     <- Int%d: %lu", size * 8, data);
++        plDebug::Debug("     <- Int%d: %lu", size * 8, data.fUint);
+ #endif
+     } else {
+         if (size == 1)
+@@ -162,7 +162,7 @@
+         }
+ 
+ #ifdef COMMDEBUG
+-        plDebug::Debug("     -> Int%d: %lu", size * 8, data);
++        plDebug::Debug("     -> Int%d: %lu", size * 8, data.fUint);
+ #endif
+     } else {
+         if (size == 1) {
+@@ -177,7 +177,7 @@
+         }
+ 
+ #ifdef COMMDEBUG
+-        plString ln = plString::Format("     <- Int%d[%d]: ", size * 8, count);
++        plString ln = plString::Format("     -> Int%d[%d]: ", size * 8, count);
+         size_t lnbufSize = count * ((size * 2) + 1);
+         char* lnbuf = new char[lnbufSize + 1];
+         for (size_t i=0; i<count; i++) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100928/aa63ba36/attachment.html>


More information about the macports-changes mailing list