Bug#899239: java-package: please add support for java 10

2018-08-25 Thread Roberto De Oliveira
Definitely it is related with new file name pattern adopted by Sun. I
don't know much about the script, but I add the following name pattern
matching to usr/share/java-package/oracle-jre.sh and it works:

  # Update to match with version 10 and newer
  if [[ $archive_name =~ ^jre-([0-9]+)\.([0-9]+)\.([0-9]+)_linux-
(i586|x64|amd64)_(bin|tar\.gz) ]]
  then
j2se_release=${BASH_REMATCH[1]}
j2se_update=${BASH_REMATCH[3]}
j2se_arch=${BASH_REMATCH[4]}
if [[ $j2se_update != "" ]]
then
  j2se_version_name="$j2se_release Update $j2se_update"
  j2se_version=${j2se_release}u${j2se_update}${revision}
else
  j2se_version_name="$j2se_release GA"
  j2se_version=${j2se_release}${revision}
fi
  fi

-- 
Saludos,
Roberto De Oliveira



Bug#899239: java-package: please add support for java 10

2018-05-21 Thread Frédéric Baldit
Package: java-package
Version: 0.62
Severity: normal

Dear Maintainer,

the following command worked for me with java 8 but failed for java 10:

$ make-jpkg jdk-10.0.1_linux-x64_bin.tar.gz
Creating temporary directory: /tmp/make-jpkg.KtGzbUGZ37
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

No matching packaging method was found for
jdk-10.0.1_linux-x64_bin.tar.gz. Please make sure you are using a
tar.gz or a self-extracting archive Removing temporary directory: done

It seems this bug is similar to the one previously reported for java 9
(#876426), but now Oracle is only provinding java 10 and java 8 jdks.

Thank's in advance for any help,


-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.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  build-essential  12.3
ii  debhelper10.2.5
ii  dpkg-dev 1.18.24
ii  fakeroot 1.21-3.1
ii  libasound2   1.1.3-5
ii  libfontconfig1   2.11.0-6.7+b1
ii  libgl1-mesa-glx  13.0.6-1+b2
ii  libgtk2.0-0  2.24.31-2
ii  libx11-6 2:1.6.4-3
ii  libxslt1.1   1.1.29-2.1
ii  libxtst6 2:1.2.3-1
ii  libxxf86vm1  1:1.1.4-1+b2
ii  unzip6.0-21

java-package recommends no packages.

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

-- no debconf information




--
  Frédéric Baldit