Bug#282902: java-package: Fails with unset variable ${j2se_release}

Stephen Kennedy stephen-debianbug@havok.com, 282902@bugs.debian.org
Thu Nov 25 02:49:28 2004


Package: java-package
Version: 0.16
Severity: grave
Justification: renders package unusable

%sudo make-jpkg j2re-1_4_2_06-linux-i586.bin
...
Create debian package:
    dh_testdir
    dh_testroot
    dh_installchangelogs
    dh_installdocs
    dh_strip
    dh_compress
    dh_fixperms
    dh_installdeb
    dh_shlibdeps
    dh_gencontrol
    dh_md5sums
    dh_builddeb
dpkg-deb: parse error, in file
`/tmp/make-jpkg.XXXXE5kf3M/install/DEBIAN/control' near line 7 package
`sun-j2re1.4':
 `Provides' field, invalid package name `j2re${j2se_release}': character
`$' not allowed - only letters, digits and -+._ allowed
dh_builddeb: command returned error code 512

Aborted (--destdir=/tmp/make-jpkg.XXXXE5kf3M).

Removing temporary directory: done


Changing j2re.sh:15
Provides: java-common, java-virtual-machine, java-runtime,
java2-runtime, java-browser-plugin, j2re\${j2se_release}

to (no escape) made it work.
Provides: java-common, java-virtual-machine, java-runtime,
java2-runtime, java-browser-plugin, j2re${j2se_release}


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686-smp
Locale: LANG=en_IE.UTF-8@euro, LC_CTYPE=en_IE.UTF-8@euro

Versions of packages java-package depends on:
ii  debhelper                     4.2.20     helper programs for debian/rules

-- no debconf information