Bug#205361: [Fwd: [Build-common-hackers] Bug#205361: cdbs: perl modules should install into DEB_DESTDIR]

Jonas Smedegaard Jonas Smedegaard <jonas@jones.dk>, 205361@bugs.debian.org
Sun, 24 Aug 2003 14:55:11 +0200


On Thu, 14 Aug 2003 23:20:44 -0400
Colin Walters <walters@verbum.org> wrote:

> Jonas, did you see this bug report?

Hmm, no. Not unitl you forwarded it to me (I thought I subscribed to
bugs for this package, but obviously not).

I have fixed the problem now in CVS, but not the way proposed. Here's
the patch used (broken because my mailer insists on always linewrap):

diff -u -r1.2 perlmodule-vars.mk.in
--- 1/class/perlmodule-vars.mk.in       25 Jul 2003 22:14:43 -0000    =20
1.2+++ 1/class/perlmodule-vars.mk.in       24 Aug 2003 12:48:28 -0000
@@ -31,9 +31,9 @@
 # Override optimizations to follow Perl Policy 3.3
 DEB_MAKE_INVOKE =3D $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)
OPTIMIZE=3D"$(CFLAGS)"=20
-# If there are more than one package, simply install into the first
one.-# Unset to install into debian/tmp instead.
-DEB_MAKEMAKER_PACKAGE :=3D $(strip $(shell
$(_cdbs_scripts_path)/list-packages same))+# Install into first listed
package by default.+# Unset for standard debhelper rules (use debian/tmp
if multiple packages).+DEB_MAKEMAKER_PACKAGE :=3D $(firstword $(shell
$(_cdbs_scripts_path)/list-packages))=20
 DEB_MAKEMAKER_INVOKE =3D /usr/bin/perl Makefile.PL INSTALLDIRS=3Dvendor
=20
@@ -41,6 +41,6 @@
 DEB_MAKE_BUILD_TARGET =3D all
 DEB_MAKE_CLEAN_TARGET =3D distclean
 DEB_MAKE_CHECK_TARGET =3D test
-DEB_MAKE_INSTALL_TARGET =3D install
PREFIX=3D$(CURDIR)/debian/$(DEB_MAKEMAKER_PACKAGE)/usr+DEB_MAKE_INSTALL_T
ARGET =3D install PREFIX=3D$(if
$(DEB_MAKEMAKER_PACKAGE),$(CURDIR)/debian/$(DEB_MAKEMAKER_PACKAGE)/usr,
$(DEB_DESTDIR)/usr)=20
 endif

 - Jonas

--=20
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er n=E6r: http://www.shibumi.org/eoti.htm