diff options
author | nork <nork@FreeBSD.org> | 2003-04-11 19:06:19 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-04-11 19:06:19 +0000 |
commit | 7da337ea346bab5543f461fe29c86b366ac7344f (patch) | |
tree | 25f21797148cec8309931dc802bf320843812600 | |
parent | f74dda12265253597c8963012e91ec7cdabc9a54 (diff) | |
download | FreeBSD-ports-7da337ea346bab5543f461fe29c86b366ac7344f.zip FreeBSD-ports-7da337ea346bab5543f461fe29c86b366ac7344f.tar.gz |
Fix build on sparc64.
PR: ports/48904
Submitted by: Matthias Andree <matthias.andree@web.de> (maintainer)
-rw-r--r-- | mail/bogofilter-current/files/patch-aa | 48 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-aa | 48 |
2 files changed, 96 insertions, 0 deletions
diff --git a/mail/bogofilter-current/files/patch-aa b/mail/bogofilter-current/files/patch-aa new file mode 100644 index 0000000..c909a1c --- /dev/null +++ b/mail/bogofilter-current/files/patch-aa @@ -0,0 +1,48 @@ +Index: tests/bogofilter/t.robx +=================================================================== +RCS file: /cvsroot/bogofilter/bogofilter/tests/bogofilter/Attic/t.robx,v +retrieving revision 1.12 +diff -u -r1.12 t.robx +--- ./tests/bogofilter/t.robx 3 Feb 2003 13:44:21 -0000 1.12 ++++ ./tests/bogofilter/t.robx 3 Mar 2003 23:56:57 -0000 +@@ -12,6 +12,8 @@ + # robx.YYYYMMDD: + # tests - directory containing individual output files + ++set -x ++ + : ${srcdir=.} + relpath="`pwd`/../.." + NODB=1 . ${srcdir}/../t.frame +@@ -38,8 +40,8 @@ + stats_in_header=Y + EOF + +-$BOGOFILTER -r -s < ${SYSTEST}/inputs/spam.mbx +-$BOGOFILTER -r -n < ${SYSTEST}/inputs/good.mbx ++$BOGOFILTER -C -r -s < ${SYSTEST}/inputs/spam.mbx ++$BOGOFILTER -C -r -n < ${SYSTEST}/inputs/good.mbx + + if [ ! -z "$RUN_FROM_MAKE" ] ; then + $BOGOUTIL -R $TMPDIR +@@ -52,7 +54,8 @@ + + [ ! -z "$BF_SAVEDIR" ] && . ${srcdir}/../t.save + +-RESULT=`$BOGOUTIL -w $TMPDIR .ROBX | $AWK '/.ROBX/ { print $2; }'` ++PRINT="`$BOGOUTIL -w $TMPDIR .ROBX`" ++RESULT=`echo "$PRINT" | $AWK '/.ROBX/ { print $2; }'` + + WANT="252685" + +@@ -62,4 +65,9 @@ + # $BOGOFILTER -x ml -vvv -r -n < ${SYSTEST}/inputs/good.mbx > ${TMPDIR}/good.txt + fi + +-test $RESULT = "$WANT" ++if test $RESULT = "$WANT" ; then ++ : ++else ++ echo "ROBX difference: got $RESULT, wanted $WANT" ++ exit 1 ++fi diff --git a/mail/bogofilter/files/patch-aa b/mail/bogofilter/files/patch-aa new file mode 100644 index 0000000..c909a1c --- /dev/null +++ b/mail/bogofilter/files/patch-aa @@ -0,0 +1,48 @@ +Index: tests/bogofilter/t.robx +=================================================================== +RCS file: /cvsroot/bogofilter/bogofilter/tests/bogofilter/Attic/t.robx,v +retrieving revision 1.12 +diff -u -r1.12 t.robx +--- ./tests/bogofilter/t.robx 3 Feb 2003 13:44:21 -0000 1.12 ++++ ./tests/bogofilter/t.robx 3 Mar 2003 23:56:57 -0000 +@@ -12,6 +12,8 @@ + # robx.YYYYMMDD: + # tests - directory containing individual output files + ++set -x ++ + : ${srcdir=.} + relpath="`pwd`/../.." + NODB=1 . ${srcdir}/../t.frame +@@ -38,8 +40,8 @@ + stats_in_header=Y + EOF + +-$BOGOFILTER -r -s < ${SYSTEST}/inputs/spam.mbx +-$BOGOFILTER -r -n < ${SYSTEST}/inputs/good.mbx ++$BOGOFILTER -C -r -s < ${SYSTEST}/inputs/spam.mbx ++$BOGOFILTER -C -r -n < ${SYSTEST}/inputs/good.mbx + + if [ ! -z "$RUN_FROM_MAKE" ] ; then + $BOGOUTIL -R $TMPDIR +@@ -52,7 +54,8 @@ + + [ ! -z "$BF_SAVEDIR" ] && . ${srcdir}/../t.save + +-RESULT=`$BOGOUTIL -w $TMPDIR .ROBX | $AWK '/.ROBX/ { print $2; }'` ++PRINT="`$BOGOUTIL -w $TMPDIR .ROBX`" ++RESULT=`echo "$PRINT" | $AWK '/.ROBX/ { print $2; }'` + + WANT="252685" + +@@ -62,4 +65,9 @@ + # $BOGOFILTER -x ml -vvv -r -n < ${SYSTEST}/inputs/good.mbx > ${TMPDIR}/good.txt + fi + +-test $RESULT = "$WANT" ++if test $RESULT = "$WANT" ; then ++ : ++else ++ echo "ROBX difference: got $RESULT, wanted $WANT" ++ exit 1 ++fi |