dont fail when building java source packages

Bug #120793 reported by Michael Koch
4
Affects Status Importance Assigned to Milestone
cdbs (Ubuntu)
Invalid
Low
Martin Pitt

Bug Description

When building a new source version from a Java source package the build fails when the Java runtime referenced in debian/rules is not present.
This is a common case when working on a Java package and building it only in pbuilder.

Revision history for this message
Michael Koch (konqueror) wrote :

A tested fix for this is here:

diff -Nru /tmp/1SUpT4sPud/cdbs-0.4.49ubuntu1/1/class/ant.mk.in /tmp/ZuqDGkMS2P/cdbs-0.4.49ubuntu2/1/class/ant.mk.in
--- /tmp/1SUpT4sPud/cdbs-0.4.49ubuntu1/1/class/ant.mk.in 2007-05-21 06:30:47.000000000 +0000
+++ /tmp/ZuqDGkMS2P/cdbs-0.4.49ubuntu2/1/class/ant.mk.in 2007-06-17 07:08:41.000000000 +0000
@@ -43,7 +43,7 @@
        $(DEB_ANT_INVOKE) $(DEB_ANT_BUILD_TARGET)
        touch debian/stamp-ant-build

-clean:: ant-sanity-check
+clean::
        -$(DEB_ANT_INVOKE) $(DEB_ANT_CLEAN_TARGET)
        rm -f debian/stamp-ant-build

diff -Nru /tmp/1SUpT4sPud/cdbs-0.4.49ubuntu1/debian/changelog /tmp/ZuqDGkMS2P/cdbs-0.4.49ubuntu2/debian/changelog
--- /tmp/1SUpT4sPud/cdbs-0.4.49ubuntu1/debian/changelog 2007-05-21 07:06:22.000000000 +0000
+++ /tmp/ZuqDGkMS2P/cdbs-0.4.49ubuntu2/debian/changelog 2007-06-17 07:04:17.000000000 +0000
@@ -1,3 +1,9 @@
+cdbs (0.4.49ubuntu2) gutsy; urgency=low
+
+ * Don't fail on debuild -S when "ant clean" can't be executed.
+
+ -- Michael Koch <email address hidden> Sun, 17 Jun 2007 07:03:22 +0000 +
 cdbs (0.4.49ubuntu1) gutsy; urgency=low

   * Merge to Debian unstable; remaining Ubuntu changes:

Martin Pitt (pitti)
Changed in cdbs:
assignee: nobody → pitti
importance: Undecided → Low
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I don't quite understand this -- why shouldn't the Java runtime be present? It should certainly be a build dependency for Java packages?

Changed in cdbs:
status: In Progress → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in cdbs:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.