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
amd64
$ dpkg --print-foreign-architectures
i386
- 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/common.sh /usr/share/java-package/javase.sh /usr/share/java-package/jdk-doc.sh /usr/share/java-package/oracle-jdk-doc.sh /usr/share/java-package/oracle-jdk.sh /usr/share/java-package/oracle-jre.sh /usr/share/java-package/oracle-server-jre.sh


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/common.sh /usr/share/java-package/javase.sh /usr/share/java-package/jdk-doc.sh /usr/share/java-package/oracle-jd k-doc.sh /usr/share/java-package/oracle-jdk.sh /usr/share/java-package/oracle-jre.sh /usr/share/java-package/oracle-server-jre.sh

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
    Oracle(TM)
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 <pkg-java-maintainers@lists.alioth.debian.org>
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. ---
Architecture:
Kernel: Linux 4.9.0-4-amd64

Debian Release: 9.3
500 xenial package.perforce.com
500 trusty package.perforce.com
500 stable-updates ftp.ru.debian.org
500 stable security.debian.org
500 stable ftp.ru.debian.org
500 precise package.perforce.com
500 jessie mirror.ppa.trinitydesktop.org
100 stretch-backports ftp.ru.debian.org

--- 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
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to