Package: imagej
Version: 1.52j-1
Severity: important

Hello

The /usr/bin/imagej script uses:
   if [ -z "$JAVA_HOME" ] ; then
      JAVA_HOME=`/usr/sbin/update-java-alternatives -l | grep openjdk | grep 
$(dpkg-architecture -q DEB_TARGET_ARCH) | sort | tail -1 | tr -s ' ' | cut -d' 
' -f 3`
   fi
but 'dpkg-architecture' is in 'dpkg-dev' package which is not declared as a 
'dependency' of the 'imagej' package.

In order to avoid adding unnecessary or easily replaceable dependencies, it 
seems that a good solution could be to replace
$(dpkg-architecture -q DEB_TARGET_ARCH)
with
dpkg --print-architecture

Thank you very much!

Reply via email to