Package: db5.3
Version: 5.3.15-4
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu quantal ubuntu-patch openjdk-7-transition

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Ensure backwards compatible Java bytecode is built (LP: #1049766):
    - d/rules: Specify JAVACFLAGS (source/target = 1.5) and pass to
      dh_auto_configure.

This ensures that libdb5.3-java is compatible will all java runtime
environments supported in Debian.

Thanks for considering the patch.


- -- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-15-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQWs6hAAoJEL/srsug59jDnL4QAJarlMedMy67RZmqWrHQf7nr
++bfAFuu5PnOcDQgD2qZji1khh4Vj8IzOhuGRd+VKkUOOlwMD3oSO2GmV6bJrmi7
qb/dGNvPUrnINj9H7/3NY8cpSIigUUjUSatxzAlu29yoquKBc6xkk1UEdipGE5kK
Vzx+kfS9TrIIjSgzQjIUmozQ+cDmCRXcO/RMZk/rirgIzUexK1wOLJw5hmv5KdXm
Vgdgz3Qh6FDsTpoT2yW7wAyMYAG9yamJgv5YfjjbnLxO/Q6aSAjshXR3O9f3YW3F
aWqHJRQ1e8LJsWhZeEGqv7OvrtImmuYufl2xQyQ9pPi56xD3p/2g/AdVAFvLOjL+
4YB8Tpmg4pienFS8S2YAKe9IcSAArjCOC+VWi9/5D7PzxuTo4FFU7A/SBjbYo/6D
zYcTZW+Kr+oxgqsESmmN0T/F4GCYMoPTfSheFhbzexrzC0jI0k4MwC2H7nwVteaf
37eE5z+DkZZdcLHOTxXxcuHijxgQjq2PUvZMba76beAQ79Rg49pzLCWgt155G0yD
viq82Qtm8FoCib+TK3AQAoMtXZk5y4BxzV4SD90waoy84CQkWywHtxHzwH8eWZ1D
wsuxUXlSdIK92ajgl2R7KifW93sTr/wPWW88DdtnZGGCPtials5e6mgUpLnR6ZYI
m1s7DZLxQ/9JHy3xinLq
=xrEU
-----END PGP SIGNATURE-----
diff -Nru db5.3-5.3.15/debian/changelog db5.3-5.3.15/debian/changelog
diff -Nru db5.3-5.3.15/debian/rules db5.3-5.3.15/debian/rules
--- db5.3-5.3.15/debian/rules	2012-05-11 13:30:04.000000000 +0100
+++ db5.3-5.3.15/debian/rules	2012-09-19 19:17:21.000000000 +0100
@@ -62,6 +62,7 @@
 endif
 
 ifeq (yes,$(ENABLE_JAVA))
+JAVACFLAGS=-source 1.5 -target 1.5
 JAVA_HOME ?= /usr/lib/jvm/default-java
 CFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
 CONFIGURE_SWITCHES += --enable-java
@@ -96,9 +97,9 @@
 
 override_dh_auto_configure:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	dh_auto_configure -Ddist -Bbuild-test -- $(CONFIGURE_SWITCHES) --enable-test
+	JAVACFLAGS="$(JAVACFLAGS)" dh_auto_configure -Ddist -Bbuild-test -- $(CONFIGURE_SWITCHES) --enable-test
 endif
-	dh_auto_configure -Ddist -Bbuild-production -- $(CONFIGURE_SWITCHES) --disable-test
+	JAVACFLAGS="$(JAVACFLAGS)" dh_auto_configure -Ddist -Bbuild-production -- $(CONFIGURE_SWITCHES) --disable-test
 
 override_dh_auto_clean:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))

Reply via email to