I'm trying to create soft link in the %setup section of the Singularity recipe file. If the link is relative, it does not work. For example:
ln -s ${SINGULARITY_ROOTFS}../python2/2.7.5a ${SINGULARITY_ROOTFS}/usr/pkgs/python/2.7.5
It creates:
lrwxrwxrwx 1 root root 49 Apr 24 06:33 /tmp/build-temp-976030219/rootfs/usr/pkgs/python/2.7.5 -> /tmp/build-temp-976030219/rootfs../python2/2.7.5a
The /tmp/build-temp-976030219/rootfs../python2/2.7.5a is of course invalid path. I don't want to start getting the realpath because I could get other links on the way. How to make it work with relative paths? Am I not using the ${SINGULARITY_ROOTFS} properly?