logo       


Re: FTWCA Policy Section 7.6 (Build-Depends/Build-Depends-Indep): msg#00083

Subject: 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




Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe