Package: java-package
Version: 0.62
Severity: normal

--- Please enter the report below this line. ---
As a Java developer, I often need to have a zoo of multiple JDK packages, incl. i386 versions (certain corner cases are only reproducible when running a 32 bit JVM). Still, despite I have multiarch enabled:
$ dpkg --print-architecture
$ dpkg --print-foreign-architectures
- I'm unable to convert a jdk-8u152-linux-i586.tar.gz to an i386 package:
$ make-jpkg jdk-8u152-linux-i586.tar.gz
Creating temporary directory: /tmp/make-jpkg.KysK03B3Zh
Loading plugins: /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/

Detected Debian build architecture: amd64
Detected Debian GNU type: x86_64-linux-gnu
The archive jdk-8u152-linux-i586.tar.gz is not supported on the amd64 architecture

No matching packaging method was found for jdk-8u152-linux-i586.tar.gz.
Please make sure you are using a tar.gz or a self-extracting archive
Removing temporary directory: done
Even if I fake DEB_BUILD_ARCH and DEB_BUILD_GNU_TYPE, I'm still unable to create the package:
$ DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_TYPE=i386-linux-gnu make-jpkg jdk-8u152-linux-i586.tar.gz
Creating temporary directory: /tmp/make-jpkg.fAGP6ENGne
Loading plugins: /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/oracle-jd /usr/share/java-package/ /usr/share/java-package/ /usr/share/java-package/

Detected Debian build architecture: i386
Detected Debian GNU type: i386-linux-gnu

Detected product:
    Java(TM) Development Kit (JDK)
    Standard Edition, Version 8 Update 152
Is this correct [Y/n]:

Checking free diskspace: done.

In the next step, the binary file will be extracted. Probably a
license agreement will be displayed. Please read this agreement
carefully. If you do not agree to the displayed license terms, the
package will not be built.

Press [Return] to continue:

Testing extracted archive... okay.

Create debian package:
dpkg-buildpackage: info: source package oracle-java8-jdk
dpkg-buildpackage: info: source version 8u152
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Debian Java Maintainers <>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build package
 debian/rules clean
dh clean
dh: No packages to build.
 debian/rules build
dh build
dh: No packages to build.
 debian/rules binary
dh binary
dh: No packages to build.
 dpkg-genbuildinfo --build=binary
dpkg-genbuildinfo: error: binary build with no binary artifacts found; .buildinfo is meaningless dpkg-buildpackage: error: dpkg-genbuildinfo --build=binary gave error exit status 2

Aborted (-us).

Removing temporary directory: done
Given that make-jpkg simply repacks the original .tar.gz and checks for binary dependencies, it's strange it doesn't allow to build a package for a foreign architecture. And since java-package is a collection of shell scripts, no java-package:i386 counterpart is available, either.

--- System information. ---
Kernel: Linux 4.9.0-4-amd64

Debian Release: 9.3
500 xenial
500 trusty
500 stable-updates
500 stable
500 stable
500 precise
500 jessie
100 stretch-backports

--- Package information. ---
Depends (Version) | Installed
debhelper (>= 9) | 10.2.5
build-essential | 12.3
dpkg-dev | 1.18.24
fakeroot | 1.21-3.1
libasound2 | 1.1.3-5
libfontconfig1 | 2.11.0-6.7+b1
libgl1-mesa-glx | 13.0.6-1+b2
libgtk2.0-0 | 2.24.31-2
libx11-6 | 2:1.6.4-3
libxslt1.1 | 1.1.29-2.1
libxtst6 | 2:1.2.3-1
libxxf86vm1 | 1:1.1.4-1+b2
unzip | 6.0-21

Package's Recommends field is empty.

Suggests (Version) | Installed
openjdk-7-jre |

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

This is the maintainer address of Debian's Java team
Please use for discussions and questions.

Reply via email to