On Sat, Aug 12, 2006 at 03:51:02PM +0200, Luk Claes wrote: > Your package fails to build from source with sudo as gain-root command > as can be seen in the build log on the alpha buildd [1].
The problem is that qmake automatically creates 3 directories during `make clean`. As clean is being called via rootcmd, those dirs are created with owner=root if sudo is used as rootcmd. During package build files should be placed in those directories, which fails as build doesn't run as root. Removing those 3 directories at the end of the debian/rules clean target solves the problem. I have attached the patch (-fix) and an NMU diff (-nmu). Cheers, Christian Aichinger
diff -Nur mypasswordsafe-0.0.20050615.orig/debian/rules
mypasswordsafe-0.0.20050615/debian/rules
--- mypasswordsafe-0.0.20050615.orig/debian/rules 2006-10-04
03:53:55.000000000 +0200
+++ mypasswordsafe-0.0.20050615/debian/rules 2006-10-04 04:10:26.000000000
+0200
@@ -46,6 +46,10 @@
# Add here commands to clean up after the build process.
-$(MAKE) clean
+
+ # The files below are automatically created by qmake in the clean rule
+ # Remove them, otherwise the build breaks with rootcmd = sudo
+ rm -rf .ui .moc .obj
dh_clean
diff -Nur mypasswordsafe-0.0.20050615.orig/debian/changelog
mypasswordsafe-0.0.20050615/debian/changelog
--- mypasswordsafe-0.0.20050615.orig/debian/changelog 2006-10-04
03:53:55.000000000 +0200
+++ mypasswordsafe-0.0.20050615/debian/changelog 2006-10-04
04:05:45.000000000 +0200
@@ -1,3 +1,10 @@
+mypasswordsafe (0.0.20050615-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * Fix the build failure on alpha (Closes: #382645)
+
+ -- Christian Aichinger <[EMAIL PROTECTED]> Wed, 4 Oct 2006 04:05:04 +0200
+
mypasswordsafe (0.0.20050615-1) unstable; urgency=low
* New upstream release.
diff -Nur mypasswordsafe-0.0.20050615.orig/debian/rules
mypasswordsafe-0.0.20050615/debian/rules
--- mypasswordsafe-0.0.20050615.orig/debian/rules 2006-10-04
03:53:55.000000000 +0200
+++ mypasswordsafe-0.0.20050615/debian/rules 2006-10-04 04:10:26.000000000
+0200
@@ -46,6 +46,10 @@
# Add here commands to clean up after the build process.
-$(MAKE) clean
+
+ # The files below are automatically created by qmake in the clean rule
+ # Remove them, otherwise the build breaks with rootcmd = sudo
+ rm -rf .ui .moc .obj
dh_clean
signature.asc
Description: Digital signature

