Bug#795027: jarwrapper: Does not work when installed in chroot while already active outside the chroot

Raphaël Hertzog hertzog at debian.org
Sun Aug 9 20:01:39 UTC 2015


Package: jarwrapper
Version: 0.52
Severity: important
User: devel at kali.org
Usertags: origin-kali

In Kali, we have a package depending on jarwrapper and which provides
/usr/bin/burpsuite as an executable jar. However when it gets installed
in the build chroot of our live ISO image, the postinst of jarwrapper does
nothing because it believes that the required binfmt-support is already
there:

Setting up jarwrapper (0.48) ...
update-binfmts: warning: found manually created entry for jarwrapper in /proc/sys/fs/binfmt_misc; leaving it alone

Thus nothing is stored in /var/lib/binfmts/ and the required binfmt_misc
support is not setup when you boot the generated live image.

$ ls -al /var/lib/binfmts/
total 12
drwxr-xr-x  2 root root 4096 août   9 19:15 .
drwxr-xr-x 17 root root 4096 août   9 19:15 ..
-rw-r--r--  1 root root   58 août   9 19:15 python2.7

I believe that the proper fix for this is also the proper fix for
#779895 : shipping a file ready to use by binfmt-support
in /usr/share/binfmts as /usr/share/doc/binfmt-support/README.Debian
suggests.

A patch will follow.

-- System Information:
Debian Release: stretch/sid
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jarwrapper depends on:
ii  binfmt-support  2.1.5-1
ii  fastjar         2:0.98-5

jarwrapper recommends no packages.

jarwrapper suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list