Merge lp:~peter-pearse/ubuntu/natty/openssl/prop001 into lp:ubuntu/natty/openssl

Proposed by Peter Pearse
Status: Needs review
Proposed branch: lp:~peter-pearse/ubuntu/natty/openssl/prop001
Merge into: lp:ubuntu/natty/openssl
Diff against target: 31 lines (+13/-0)
2 files modified
debian/changelog (+12/-0)
debian/rules (+1/-0)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/openssl/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+47984@code.launchpad.net

This proposal supersedes a proposal from 2011-01-27.

Description of the change

debian/rules clean:

For all builds, change all 'rm -f' in Makefile to 'rm -fr'.

Allows clean after build to succeed.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote : Posted in a previous version of this proposal

I don't understand how this patch is supposed to work. First, all builds - not just cross-builds - are customarily done as non-root, and second, 'rm -f' doesn't work any better on directories as root than it does as non-root. So I think this patch is wrong; can you show a log of the failure you're trying to fix, to understand what's really going on here?

In any case, we definitely should not be editing the upstream makefiles as part of the debian/rules clean target. Changes to upstream files, where necessary, should be included directly in the packaging.

review: Needs Information
Revision history for this message
Steve Langasek (vorlon) wrote : Posted in a previous version of this proposal

Aha, have reproduced this problem. It is indeed a generic failure when running clean-after-build, that affects all builds and not just cross-builds.

So I think we can reduce this to a one-line patch:

         dh_testroot
         -rm -f build
         -./Configure $(CONFARGS) debian-$(DEB_HOST_ARCH)
+ -sed -i -e 's/rm -f/rm -rf/' Makefile
         [ ! -f Makefile ] || make -f Makefile clean clean-shared
         #-make -f Makefile dclean
 # perl util/ssldir.pl /usr/local/ssl

Can you confirm whether this fixes the issue for you?

review: Needs Fixing
Revision history for this message
Peter Pearse (peter-pearse) wrote :

Fixed for me - amended & re-submitted branch.

Revision history for this message
Steve Langasek (vorlon) wrote :

Merged, thanks!

Had to clean up the changelog a bit in the process:
 - target needs to be natty
 - there should be only one package version added; please amend the existing changelog entry when revising a merge
 - the changelog entry should describe what has changed and why (the "why" is now that "clean after build fails", so we should say that so people don't think this is somehow specific to cross-compilation)

Unmerged revisions

54. By Peter Pearse

Make generic & neater - thanks to <email address hidden>

53. By Peter Pearse

Change 'rm -f' to 'rm -fr' in Makefiles to allow non-root cross build

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-12-23 20:20:03 +0000
3+++ debian/changelog 2011-01-31 11:47:32 +0000
4@@ -1,3 +1,15 @@
5+openssl (0.9.8o-4ubuntu3) natty; urgency=low
6+
7+ * Make generic & neater
8+
9+ -- Peter Pearse <peter.pearse@linaro.org> Mon, 31 Jan 2011 11:39:43 +0000
10+
11+openssl (0.9.8o-4ubuntu2) maverick; urgency=low
12+
13+ * Change Makefile 'rm -f' to 'rm -fr' for (non root) cross builds
14+
15+ -- Peter Pearse <peter.pearse@linaro.org> Thu, 27 Jan 2011 10:03:59 +0000
16+
17 openssl (0.9.8o-4ubuntu1) natty; urgency=low
18
19 * Merge from debian unstable. Remaining changes: (LP: #693902)
20
21=== modified file 'debian/rules'
22--- debian/rules 2010-11-18 12:54:37 +0000
23+++ debian/rules 2011-01-31 11:47:32 +0000
24@@ -73,6 +73,7 @@
25 dh_testroot
26 -rm -f build-stamp
27 -./Configure $(CONFARGS) debian-$(DEB_HOST_ARCH)
28+ -sed -i -e 's/rm -f/rm -rf/' Makefile
29 [ ! -f Makefile ] || make -f Makefile clean clean-shared
30 #-make -f Makefile dclean
31 # perl util/ssldir.pl /usr/local/ssl

Subscribers

People subscribed via source and target branches

to all changes: