Package: galax
Version: 1.1-1
Severity: serious
Tags: patch

galax FTBFS when built with -rsudo instead of -rfakeroot, because
.depend files are created as root in the clean target and make the build
target fail.
The below patch fixes it.

Cheers,
Julien

diff -u galax-1.1/debian/rules galax-1.1/debian/rules
--- galax-1.1/debian/rules
+++ galax-1.1/debian/rules
@@ -6,6 +6,7 @@
 
 PKGNAME = galax
 DEB_MAKE_BUILD_TARGET = world
+DEB_MAKE_CLEAN_TARGET = clobber
  # $(LN) override so that we only install the best binary, instead of both .opt
  # and .byte together with the best symlink
 DEB_MAKE_INSTALL_TARGET = install LN=cp DESTDIR=$(CURDIR)/debian/tmp
@@ -39,6 +40,8 @@
        touch debian/configure-stamp
 clean::
        rm -f debian/configure-stamp
+       rm -f META
+       rm -f config/Makefile.conf
 
 # fix wrong permissions (+x) on some .mli files
 binary-post-install/libgalax-ocaml-dev::
diff -u galax-1.1/debian/changelog galax-1.1/debian/changelog
--- galax-1.1/debian/changelog
+++ galax-1.1/debian/changelog
@@ -1,3 +1,11 @@
+galax (1.1-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Make sure the .depend files are removed in clean, to fix ftbfs when using
+    sudo instead of fakeroot.
+
+ -- Julien Cristau <[EMAIL PROTECTED]>  Sun, 01 Jun 2008 12:55:36 +0200
+
 galax (1.1-1) unstable; urgency=low
 
   * new upstream release: 1.1 (first public release of the 1.x series)
only in patch2:
unchanged:
--- galax-1.1.orig/Makefile
+++ galax-1.1/Makefile
@@ -827,7 +827,7 @@
        $(RM) $(LOCALPREFIX)/config/Makefile.conf
        $(RM) $(LOCALPREFIX)/regress/testconfig.xml
 
-clean::
+clobber::
        $(RM) $(LOCALPREFIX)/c_api/.depend
        $(RM) $(LOCALPREFIX)/tools/escaping/.depend
        $(RM) $(LOCALPREFIX)/tools/ucs2_to_utf8/.depend



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to