Re: FTWCA Policy Section 7.6 (Build-Depends/Build-Depends-Indep)
On Mon, Jun 19, 2006 at 02:06:37PM -0500, Carlo Segre wrote:
>On Fri, 16 Jun 2006, gregor herrmann wrote:
>>libmime-lite-perl
>>-----------------
>> * Removed empty /usr/lib/perl5 from package.
This is an annoying MakeMaker artifact. A simple way to avoid this is
to use dh_movefiles, which doesn't move the empty directories.
It also means that you don't need to bother determining the package
name.
Note also the use of make's $(CURDIR), rather than the shell's $(PWD).
Recent versions of sudo don't preserve this variable (see #365534) which
may prevent package from being autobuilt.
--bod
diff -ur libmime-lite-perl-3.01.orig/debian/rules libmime-lite-perl-3.01/debian/rules
--- libmime-lite-perl-3.01.orig/debian/rules 2006-06-21 01:46:46.000000000 +1000
+++ libmime-lite-perl-3.01/debian/rules 2006-06-21 01:44:59.000000000 +1000
@@ -4,11 +4,7 @@
PERL ?= /usr/bin/perl
-package := $(firstword $(shell dh_listpackages))
-prefix := $(PWD)/debian/$(package)/usr
-
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+tmp = $(CURDIR)/debian/tmp
build: build-stamp
build-stamp:
@@ -27,14 +23,17 @@
dh_clean
dh_installdirs
- $(MAKE) install PREFIX=$(prefix)
+ $(MAKE) install PREFIX=$(tmp)/usr
# changes.pod is a changelog, not a man page - Run it through pod2text
# to install it as a changelog and remove it from where it got
# installed.
- rm -f $(prefix)/share/perl5/MIME/changes.pod $(prefix)/share/man/man3/MIME::changes.3pm
+ rm -f $(tmp)/usr/share/perl5/MIME/changes.pod \
+ $(tmp)/usr/share/man/man3/MIME::changes.3pm
+
pod2text changes.pod > debian/changes
+ dh_movefiles /usr
dh_installdocs README
dh_installexamples examples/* contrib
dh_installchangelogs debian/changes
Reply to: