[med-svn] [Git][med-team/imagej][master] 2 commits: d/extra/imagej: fix wrapper for java >= 10 (closes #913747)
David Miguel Susano Pinto
gitlab at salsa.debian.org
Thu Dec 13 15:59:57 GMT 2018
David Miguel Susano Pinto pushed to branch master at Debian Med / imagej
Commits:
1e2dead9 by David Miguel Susano Pinto at 2018-12-13T15:40:04Z
d/extra/imagej: fix wrapper for java >= 10 (closes #913747)
- - - - -
20cef33b by David Miguel Susano Pinto at 2018-12-13T15:40:32Z
releasing package imagej version 1.52i-1
- - - - -
2 changed files:
- debian/changelog
- debian/extra/imagej
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,14 @@
-imagej (1.52i-1) UNRELEASED; urgency=medium
+imagej (1.52i-1) unstable; urgency=medium
* New upstream version 1.52i
-
- -- David Miguel Susano Pinto <carandraug+dev at gmail.com> Wed, 12 Dec 2018 17:57:38 +0000
+ * Fix imagej wrapper (the program that starts the Image GUI in
+ Debian) for Java version 10 or later. The wrapper made use of the
+ -d64 and -d32 options which have been deprecated for a while, did
+ nothing, and were removed in OpenJDK 10. See "Removal of Java
+ Launcher's Data Model Options -d32 and -d64" on the openjdk-10
+ release notes (Closes: #913747)
+
+ -- David Miguel Susano Pinto <carandraug+dev at gmail.com> Thu, 13 Dec 2018 15:40:16 +0000
imagej (1.52g-1) unstable; urgency=medium
=====================================
debian/extra/imagej
=====================================
@@ -93,7 +93,6 @@ macroargs=''
# max memory allocation is 1800MB on 32bit java and 4000 on 64bit java
if [[ `uname` == 'SunOS' ]] ; then
- arch='-d64'
java_path="${ij_path}/jre64/bin/java"
max_mem=`vmstat | awk 'NR == 3 {fmem=int($5 / 1024); if (fmem < 4000) {print fmem} else {print 4000}}'`
free_mem="max_mem"
@@ -101,14 +100,12 @@ if [[ `uname` == 'SunOS' ]] ; then
if (( $mem > $default_mem || $mem < $min_mem )) ; then mem=$default_mem ; fi
elif [[ `uname` == 'Linux' ]] ; then
if [[ `uname -m` == 'x86_64' ]] ; then
- arch='-d64'
java_path="${ij_path}/jre64/bin/java"
max_mem=`free | awk 'NR == 2 {fmem=int($2 / 1024); if (fmem < 4000) {print fmem} else {print 4000}}'`
free_mem=`free | awk 'NR == 3 {fmem=int($4 / 1024); if (fmem < 4000) {print fmem} else {print 4000}}'`
mem=${free_mem}/3*2
if (( $mem > $default_mem || $mem < $min_mem )) ; then mem=$default_mem ; fi
else
- arch='-d32'
java_path="${ij_path}/jre/bin/java"
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}}'`
@@ -418,9 +415,9 @@ fi
if [ "$JAVA_HOME" ] ; then
if (( $verbosity > 0 )) ; then
echo ${modules}
- echo $JAVA_HOME/bin/java ${arch} -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
+ echo $JAVA_HOME/bin/java -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
else
- eval $JAVA_HOME/bin/java ${arch} -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
+ eval $JAVA_HOME/bin/java -mx${mem}m ${jni} ${modules} ij.ImageJ -ijpath ${ij_user_path} -port${count} ${images} ${macrocmd} ${macroargs}
fi
else
echo "No JVM found to run ImageJ"
View it on GitLab: https://salsa.debian.org/med-team/imagej/compare/cf373ae8f9085ec9cc52612120428dde3fe014e0...20cef33b7602403e6cb38302ab3b6c4650035ac6
--
View it on GitLab: https://salsa.debian.org/med-team/imagej/compare/cf373ae8f9085ec9cc52612120428dde3fe014e0...20cef33b7602403e6cb38302ab3b6c4650035ac6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20181213/dad0ced0/attachment-0001.html>
More information about the debian-med-commit
mailing list