diff options
author | pav <pav@FreeBSD.org> | 2005-01-29 21:39:20 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-01-29 21:39:20 +0800 |
commit | d95840151fc6673b2926b49aef86c75b1251df5b (patch) | |
tree | 592feeace071dbe3c0e1732415fb6830f7fb3492 /science/omnetpp/files | |
parent | 1c38ee8840ac4b847cee4ba1d9f1736e3ca46a73 (diff) | |
download | freebsd-ports-gnome-d95840151fc6673b2926b49aef86c75b1251df5b.tar.gz freebsd-ports-gnome-d95840151fc6673b2926b49aef86c75b1251df5b.tar.zst freebsd-ports-gnome-d95840151fc6673b2926b49aef86c75b1251df5b.zip |
- Bugfixes
- Shared libraries moved from ${PREFIX}/lib/${PORTNAME} to ${PREFIX}/lib
PR: ports/76717
Submitted by: Bjorn Konig <bkoenig@cs.tu-berlin.de> (maintainer)
Diffstat (limited to 'science/omnetpp/files')
-rw-r--r-- | science/omnetpp/files/patch-src-plove | 76 | ||||
-rw-r--r-- | science/omnetpp/files/patch-src-sim-cstat.cc | 65 | ||||
-rw-r--r-- | science/omnetpp/files/patch-src-utils-opp_makemake.in | 11 |
3 files changed, 152 insertions, 0 deletions
diff --git a/science/omnetpp/files/patch-src-plove b/science/omnetpp/files/patch-src-plove new file mode 100644 index 000000000000..e3a0191ec19d --- /dev/null +++ b/science/omnetpp/files/patch-src-plove @@ -0,0 +1,76 @@ +--- src/plove/Makefile.in.bak Mon Jan 24 02:21:32 2005 ++++ src/plove/Makefile.in Mon Jan 24 02:24:52 2005 +@@ -39,7 +39,12 @@ + @echo '' # NOP to prevent automatic rules from firing + + plove-sh: +- echo "$(WISH) -f $(OMNETPP_PLOVE_DIR)/plove.sh "'$$*' > plove ++ echo "#!/bin/sh" > plove ++ echo "if [ -z \`which gnuplot\` ]; then" >> plove ++ echo " echo \"You have to install math/gnuplot in order to use plove.\"" >> plove ++ echo "else" >> plove ++ echo " $(WISH) -f $(OMNETPP_PLOVE_DIR)/plove.sh "'$$*' >> plove ++ echo "fi" >> plove + chmod +x plove + + plove-cyg: +--- src/plove/config.tcl Sat Jan 11 12:07:54 2003 ++++ src/plove/config.tcl Wed Dec 15 15:57:23 2004 +@@ -128,7 +128,7 @@ + -text "my gnuplot prefers filenames with fwd slashes" + } + label-entry .ize.f.f1.awk "awk:" $config(awk) +- label-entry .ize.f.f1.mknod "mknod:" $config(mknod) ++ label-entry .ize.f.f1.mkfifo "mkfifo:" $config(mkfifo) + label-entry .ize.f.f1.sh "sh:" $config(sh) + label-entry .ize.f.f1.tmp "tmp:" $config(tmp) + +@@ -140,7 +140,7 @@ + pack .ize.f.f1.slash -expand 0 -fill x -side top + } + pack .ize.f.f1.awk -expand 0 -fill x -side top +- pack .ize.f.f1.mknod -expand 0 -fill x -side top ++ pack .ize.f.f1.mkfifo -expand 0 -fill x -side top + pack .ize.f.f1.sh -expand 0 -fill x -side top + pack .ize.f.f1.tmp -expand 0 -fill x -side top + +@@ -155,7 +155,7 @@ + set config(gp-slash) $tmp(gp-slash) + } + set config(awk) [.ize.f.f1.awk.e get] +- set config(mknod) [.ize.f.f1.mknod.e get] ++ set config(mkfifo) [.ize.f.f1.mkfifo.e get] + set config(sh) [.ize.f.f1.sh.e get] + set config(tmp) [.ize.f.f1.tmp.e get] + } +--- src/plove/doplot.tcl Sat Jan 11 12:07:54 2003 ++++ src/plove/doplot.tcl Wed Dec 15 15:57:57 2004 +@@ -335,7 +335,7 @@ + -message "Cannot create named pipe $pipe, file name already exists!" + } + } else { +- if [catch {exec $config(mknod) $pipe p} errmsg] { ++ if [catch {exec $config(mkfifo) $pipe} errmsg] { + tk_messageBox -icon warning -type ok -title Warning \ + -message "Cannot create named pipe $pipe: $errmsg" + } +@@ -511,7 +511,7 @@ + # pipes + set pipecmd "" + foreach id $idlist { +- append pipecmd "rm -f $pipebasefname-$id; mknod $pipebasefname-$id p\n" ++ append pipecmd "rm -f $pipebasefname-$id; mkfifo $pipebasefname-$id\n" + } + + # grep and filter commands +--- src/plove/main.tcl Sun Jan 19 10:17:00 2003 ++++ src/plove/main.tcl Wed Dec 15 15:58:12 2004 +@@ -45,7 +45,7 @@ + set config(zcat) "zcat" + set config(gnuplot) "gnuplot" + set config(awk) "awk" +-set config(mknod) "mknod" ++set config(mkfifo) "mkfifo" + set config(sh) "sh" + set config(gp-slash) "1" ;# use slash (not backslash) in filenames in gnuplot scripts (WIN32) + diff --git a/science/omnetpp/files/patch-src-sim-cstat.cc b/science/omnetpp/files/patch-src-sim-cstat.cc new file mode 100644 index 000000000000..554ed4def7d8 --- /dev/null +++ b/science/omnetpp/files/patch-src-sim-cstat.cc @@ -0,0 +1,65 @@ +--- src/sim/cstat.cc 2003-06-25 17:38:24.000000000 +0200 ++++ src/sim/cstat.cc 2004-11-19 12:23:03.000000000 +0100 +@@ -252,8 +252,31 @@ + + void cWeightedStdDev::collect2(double val, double weight) + { +- cStdDev::collect(weight*val); ++ // Lars Westerhoff: collect weight*val*val for sqrsum_samples for variance ++ ++ if (++num_samples <= 0) ++ { ++ // FIXME: num_samples overflow: issue warning and must stop collecting! ++ ev.printf("\a\nWARNING: (%s)%s: observation count overflow!\n\n",className(),fullPath()); ++ } ++ sum_samples+=weight*val; ++ sqrsum_samples+=weight*val*val; + sum_weights += weight; ++ ++ if (num_samples>1) ++ { ++ if (val<min_samples) ++ min_samples=val; ++ else if (val>max_samples) ++ max_samples=val; ++ } ++ else ++ { ++ min_samples=max_samples=val; ++ } ++ ++ if (transientDetectionObject()) td->collect(val); //NL ++ if (accuracyDetectionObject()) ra->collect(val); //NL + } + + void cWeightedStdDev::clearResult() +@@ -264,18 +287,18 @@ + + double cWeightedStdDev::variance() const + { +- throw new cException(this, "variance()/stddev() not implemented"); ++ // Lars Westerhoff + +- // if (sum_weights==0) +- // return 0.0; +- // else +- // { +- // double devsqr = (sqrsum_samples - sum_samples*sum_samples/sum_weights)/(sum_weights-1); +- // if (devsqr<=0) +- // return 0.0; +- // else +- // return devsqr; +- //} ++ if (sum_weights==0) ++ return 0.0; ++ else ++ { ++ double devsqr = (sqrsum_samples - sum_samples*sum_samples/sum_weights)/(sum_weights); // sum_weights-1 ??? ++ if (devsqr<=0) ++ return 0.0; ++ else ++ return devsqr; ++ } + } + + void cWeightedStdDev::saveToFile(FILE *f) const diff --git a/science/omnetpp/files/patch-src-utils-opp_makemake.in b/science/omnetpp/files/patch-src-utils-opp_makemake.in new file mode 100644 index 000000000000..f5bda0876dec --- /dev/null +++ b/science/omnetpp/files/patch-src-utils-opp_makemake.in @@ -0,0 +1,11 @@ +--- src/utils/opp_makemake.in Sun Jan 23 22:29:17 2005 ++++ src/utils/opp_makemake.in Sun Jan 23 22:29:44 2005 +@@ -94,7 +94,7 @@ + + -u | --userinterface) + shift +- userif=`echo $1 | tr [a-z] [A-Z]` ++ userif=`echo $1 | tr '[[:lower:]]' '[[:upper:]]'` + case "$userif" in + CMDENV | TKENV) + ;; |