Bug#794401: java-package: runnning make-jpkg reports "Invalid size (1 MB) of extracted archive."

David Sauer profa at profa.cz
Sun Aug 2 16:08:12 UTC 2015


Package: java-package
Version: 0.56
Severity: normal

Dear Maintainers,

 I have a problem with make-jpkg. I've tracked the issue into function

diskusage() {
    local path="$1"
    read size dummy < <( du -sm "$path" )
    echo "$size:$dummy" >&2
    echo "$size"
}

which tests size of unpacked java distribution.

The issue is related to OpenVZ guest (and probably doesn't exists on bare hw)
 - `du` tests for disk size of a directory $path, but data have not been written to the disk 
at a time of the `du` (`du` returns very small number, nearly 0).

I haved temporarily fixed the problem with a sleep:

diskusage() {
    local path="$1"
    sleep 10  # <------------------------------------ inserted sleep
    read size dummy < <( du -sm "$path" )
    echo "$size:$dummy" >&2
    echo "$size"
}

but this is a bit dirty solution (it simply waits some time to finish write-to-disk operation physically)
 by host container.

The Java archived I tried to pack into .deb was oracle java 8.

Hope this helps,

David Sauer

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-042stab108.8 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages java-package depends on:
ii  debhelper   9.20150101
ii  dpkg-dev    1.17.25
ii  fakeroot    1.20.2-1
ii  libasound2  1.0.28-1
ii  libx11-6    2:1.6.2-3
ii  unzip       6.0-16

Versions of packages java-package recommends:
ii  gcc  4:4.9.2-2

Versions of packages java-package suggests:
pn  openjdk-7-jre  <none>

-- no debconf information



More information about the pkg-java-maintainers mailing list