diff -r 3e2a08d916c6 -r 6a12068a8ac8 lsof/lsof.patch --- a/lsof/lsof.patch Fri Aug 03 16:49:08 2012 +0200 +++ b/lsof/lsof.patch Fri Aug 03 16:51:55 2012 +0200 @@ -1,7 +1,7 @@ Index: Configure ---- Configure.orig 2010-01-18 20:01:14 +0100 -+++ Configure 2010-01-19 20:14:11 +0100 -@@ -443,7 +443,7 @@ +--- Configure.orig 2012-04-10 18:35:48.000000000 +0200 ++++ Configure 2012-08-03 12:18:36.290850960 +0200 +@@ -440,7 +440,7 @@ fi # } fi # } LSOF_TGT="aix" @@ -10,7 +10,7 @@ if test $? -eq 0 # { then -@@ -597,7 +597,7 @@ +@@ -594,7 +594,7 @@ rm -f dialects/aix/aix5/j2/j2_snapshot.h fi # } @@ -19,7 +19,7 @@ if test $? -eq 0 # { then -@@ -635,7 +635,7 @@ +@@ -632,7 +632,7 @@ # This is AIX >= 5 on ia64. LSOF_TSTK64=1 @@ -28,7 +28,7 @@ if test $? -eq 0 # { then -@@ -712,7 +712,7 @@ +@@ -709,7 +709,7 @@ fi # } LSOF_TSTK64=1 LSOF_TMP1=1 @@ -37,7 +37,7 @@ if test $? -eq 0 # { then LSOF_CFGF="$LSOF_CFGF -maix64" -@@ -759,7 +759,7 @@ +@@ -756,7 +756,7 @@ fi #} LSOF_CFGF="$LSOF_CFGF -DAIXV=$LSOF_VERS" LSOF_DIALECT_DIR=aix @@ -46,7 +46,7 @@ if test $? -eq 0 # { then -@@ -2239,7 +2239,7 @@ +@@ -2269,7 +2269,7 @@ fi # } fi # } fi # } @@ -55,7 +55,7 @@ if test $? -eq 0 # { then LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` -@@ -2293,7 +2293,7 @@ +@@ -2323,7 +2323,7 @@ then LSOF_CFGF="$LSOF_CFGF -Ae +DD32" else @@ -64,7 +64,7 @@ if test $? -ne 0 # { then LSOF_CFGF="$LSOF_CFGF +DD32" -@@ -2377,7 +2377,7 @@ +@@ -2407,7 +2407,7 @@ echo "* NOTICE! Configuring for 64 bit HP-UX *" echo "* *" echo "*****************************************" @@ -73,7 +73,7 @@ if test $? -eq 0 # { then -@@ -2446,7 +2446,7 @@ +@@ -2476,7 +2476,7 @@ else LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64" LSOF_CINFO="${LSOF_CINFO}, 32 bit HP-UX" @@ -82,7 +82,7 @@ if test $? -ne 0 # { then LSOF_CFGF="$LSOF_CFGF +DAportable" -@@ -3655,7 +3655,7 @@ +@@ -3710,7 +3710,7 @@ LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` fi # } fi # } @@ -91,7 +91,7 @@ if test $? -eq 0 # { then LSOF_CFGL="$LSOF_CFGL -w" -@@ -4300,6 +4300,9 @@ +@@ -4355,6 +4355,9 @@ LSOF_TSTBIGF=" " LSOF_TSTLFLG="-lsocket -lnsl" LSOF_VERS="100000" @@ -101,7 +101,7 @@ ;; 5.11*) LSOF_TSTBIGF=" " -@@ -4391,7 +4394,7 @@ +@@ -4446,7 +4449,7 @@ echo "main(){" >> ${LSOF_TMPC}.c echo "enum prnodetype p=PR_GWINDOWS;}" >> ${LSOF_TMPC}.c echo "Testing prdata.h for PR_GWINDOWS, using $LSOF_CC" @@ -110,7 +110,7 @@ if test $? -eq 0 # { then $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 -@@ -4416,7 +4419,7 @@ +@@ -4471,7 +4474,7 @@ echo "main(){" >> ${LSOF_TMPC}.c echo "enum prnodetype p=PR_LDT;}" >> ${LSOF_TMPC}.c echo "Testing prdata.h for PR_LDT, using $LSOF_CC" @@ -119,7 +119,7 @@ if test $? -eq 0 # { then $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 -@@ -4450,7 +4453,7 @@ +@@ -4505,7 +4508,7 @@ echo $SOLARIS_KERNBITS | grep 64 > /dev/null if test $? -eq 0 # { then @@ -128,16 +128,7 @@ if test $? -eq 0 # { then -@@ -4669,7 +4672,7 @@ - then - LSOF_CTFH=1 - fi # } -- if test -r ${LSOF_INCLUDE}/sys/fs/zfs.h # { -+ if false # { - then - if test $LSOF_CTFH -eq 1 # { - then -@@ -4729,7 +4732,7 @@ +@@ -4836,7 +4839,7 @@ echo "main(){" >> ${LSOF_TMPC}.c echo "enum vtype p=VSOCK;}" >> ${LSOF_TMPC}.c echo "Testing vnode.h for VSOCK, using $LSOF_CC" @@ -146,7 +137,7 @@ if test $? -eq 0 # { then $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 -@@ -5418,7 +5421,7 @@ +@@ -5525,7 +5528,7 @@ echo "$i" >> $LSOF_TSTCFLG done # } fi # } @@ -156,8 +147,8 @@ then echo "-DLT_GCC" >> $LSOF_TSTCFLG Index: dialects/freebsd/machine.h ---- dialects/freebsd/machine.h.orig 2008-10-21 18:16:15 +0200 -+++ dialects/freebsd/machine.h 2010-01-19 19:16:39 +0100 +--- dialects/freebsd/machine.h.orig 2010-07-29 18:04:31.000000000 +0200 ++++ dialects/freebsd/machine.h 2012-08-03 12:18:36.291289597 +0200 @@ -441,6 +441,11 @@ */ @@ -171,9 +162,9 @@ /* Index: dialects/sun/machine.h ---- dialects/sun/machine.h.orig 2009-03-25 20:22:23 +0100 -+++ dialects/sun/machine.h 2010-01-19 19:16:39 +0100 -@@ -84,6 +84,7 @@ +--- dialects/sun/machine.h.orig 2011-09-07 21:16:07.000000000 +0200 ++++ dialects/sun/machine.h 2012-08-03 12:18:36.291671855 +0200 +@@ -105,6 +105,7 @@ #include # if solaris>=80000