[Pkg-openssl-devel] Bug#611667: openssl: clean-after-build fails due to wrong Makefile rule

Steve Langasek steve.langasek at canonical.com
Mon Jan 31 19:34:58 UTC 2011


Package: openssl
Version: 0.9.8o-4
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi guys,

As part of an effort to make the Ubuntu base system cross-compilable, we've
noticed that ./debian/rules clean fails in the openssl package after a
complete build because the clean rules tries to remove directories with 'rm
-f', which obviously fails.  This needs to be an 'rm -rf' instead.

Attached is a patch for one possible way to implement this fix.  You could
instead fix this in debian/patches of course, but given that the rule only
affects a file that will be immediately be removed, fixing it in
debian/rules also seems adequate to me.

The changelog entry for this change in Ubuntu is:

  * Fix Makefile to properly clean up libs/ dirs in clean target

You may wish to apply this fix in Debian as well.  I've marked this bug as
'important' because this is technically a violation of Policy 4.9.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
=== modified file 'debian/rules'
--- debian/rules	2010-11-18 12:54:37 +0000
+++ debian/rules	2011-01-31 18:17:25 +0000
@@ -73,6 +73,7 @@
 	dh_testroot
 	-rm -f build-stamp
 	-./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



More information about the Pkg-openssl-devel mailing list