Bug#651810: libhibernate3-java: Patch to Fix FTBFS with OpenJDK7 and avoid incremental build on Ubuntu
Miguel Landaeta
miguel at miguel.cc
Thu Dec 15 02:05:56 UTC 2011
tags 651810 + pending
thanks
On Wed, Dec 14, 2011 at 09:53:28AM -0430, Miguel Landaeta wrote:
> On Wed, Dec 14, 2011 at 12:29:38PM +0000, James Page wrote:
> > Thinking about it a bit more we could add a check in debian/rules to
> > determine whether the package or install target should get used based
> > on match with the current version of the package in the archive.
>
> I thought something similar. Probably I'll take a closer look at this today.
This should work:
diff --git a/debian/rules b/debian/rules
index a2b0a97..48e4a67 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,12 @@ JAVA_HOME := /usr/lib/jvm/default-java
DEB_MAVEN_DOC_TARGET := javadoc:aggregate
DEB_BUILDDIR := $(CURDIR)/project
+# Avoid incremental builds when packaging a new upstream release by
+# using the maven install target to ensure that artifacts are installed
+ifeq ($(shell echo -n $(DEB_VERSION) | sed -sre 's/^.*-(.*)$$/\1/'),1)
+DEB_MAVEN_BUILD_TARGET := install
+endif
+
clean::
-rm -rf debian/null mvn-build
Thanks for that patch. It's already merged.
--
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20111214/1f37174d/attachment.pgp>
More information about the pkg-java-maintainers
mailing list