Package: makeself
Version: 2.1.5

MS_diskspace() function fails on HP-UX 11.23 (Itanium)
if TMPDIR (--target) has long volume name.

   $ ./I0ICT7112000.bin --noexec --target /support
   Creating directory /support
   Verifying archive integrity... All good.
   Uncompressing InterconnecT./I0ICT7112000.bin[412]: 77%: Expression is
not complete; more tokens expected.


The reason is that df -kP (or tail) behaves different on this platform 
and linewraps for long volumes names so that available space check is
done against a volume % (5th column) instead of kb (4th column).
( Solaris also linewraps, but 'tail -l' interprets as one line. )

Good:

    $ df -kP /tmp
    Filesystem          1024-blocks  Used  Available Capacity Mounted on
    /dev/vg00/lvol5       2097152   188280  1908872     9%   /tmp

Bad:

    $ df -kP /support
    Filesystem          1024-blocks  Used  Available Capacity Mounted on
    uxcptln14:/NAS/NFS/support
                         587777800 449109696 138668104    77%   /support

HP-UX Version:

    $ uname -a
    HP-UX uxcpth05 B.11.23 U ia64 3652505302 unlimited-user license


Solution is to change MS_diskspace() line to always print
3rd field from end of line, instead of 4th from beginning.

Use this:     
              df -kP "\$1" | tail -1 | awk '{print \$(NF-2}'

Instead of:   
              df -kP "\$1" | tail -1 | awk '{print \$4}'





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to