[Debian-med-packaging] Bug#649119: imagej: max_mem variable not set on 32-bit Linux
Witold Baryluk
baryluk at smp.if.uj.edu.pl
Thu Nov 17 20:16:06 UTC 2011
Package: imagej
Version: 1.45k-1
Severity: normal
Pretty simple bug. max_mem is set only on x86_64
in start wrapper, but should in fact be set on
all Linux architectures. Same code as for amd64
works, so it can be moved to Linux generic path.
In fact I think somebody performed some copy-paste,
and forgot to change free_mem to max_mem.
patch below
--- imagej.org 2011-11-17 21:13:10.584635165 +0100
+++ imagej 2011-11-17 21:13:52.254336782 +0100
@@ -107,7 +107,7 @@
else
arch='-d32'
java_path="${ij_path}/jre/bin/java"
- free_mem=`free | awk 'NR == 2 {fmem=int($2 / 1024); if (fmem < 1800) {print fmem} else {print 1800}}'`
+ max_mem=`free | awk 'NR == 2 {fmem=int($2 / 1024); if (fmem < 1800) {print fmem} else {print 1800}}'`
free_mem=`free | awk 'NR == 3 {fmem=int($4 / 1024); if (fmem < 1800) {print fmem} else {print 1800}}'`
mem=${free_mem}/3*2
if (( $mem > $default_mem || $mem < $min_mem )) ; then mem=$default_mem ; fi
Thanks.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages imagej depends on:
ii openjdk-6-jre 6b23~pre11-1
imagej recommends no packages.
Versions of packages imagej suggests:
pn java-virtual-machine <none>
-- no debconf information
More information about the Debian-med-packaging
mailing list