[Debian-med-packaging] Bug#986038: imagej currently has an undeclared and substitutable dependency

Alexis PM miscelaneanatural at yahoo.es
Sun Mar 28 13:17:59 BST 2021


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!



More information about the Debian-med-packaging mailing list