Skip Menu |
 

This queue is for tickets about the Module-Install-RTx CPAN distribution.

Report information
The Basics
Id: 12964
Status: open
Priority: 0/
Queue: Module-Install-RTx

People
Owner: Nobody in particular
Requestors: BULB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.01

Attachments


Subject: Does not honor DESTDIR
Download (untitled) / with headers
text/plain 784b
Hello, I've been trying to create a package of a Module::Install::RTx-built module today. And I ran across a problem, that it does not honor DESTDIR=<something> argument to module install. The following patch should fix it: --- Module-Install-RTx-0.11.orig/lib/Module/Install/RTx.pm 2005-02-27 03:55:14.000000000 +0100 +++ Module-Install-RTx-0.11/lib/Module/Install/RTx.pm 2005-05-26 18:02:50.590394307 +0200 @@ -66,7 +66,7 @@ } $path{$_} .= "/$name" for grep $path{$_}, qw(etc po var); - my $args = join(', ', map "q($_)", %path); + my $args = join(', ', map "q($_), q(\$(DESTDIR)$path{$_})", keys %path); $path{lib} = "$RT::LocalPath/lib" unless %subdirs and ! $subdirs{'lib'}; print "./$_\t=> $path{$_}\n" for sort keys %path;
Download (untitled) / with headers
text/plain 1.2k
DESTDIR seems to work for modules and packages, but not for the included HTML stuff. I tried to run cpan2deb RTx::EmailCompletion which fails as follows: dh binary dh_testroot dh_prep dh_installdirs dh_auto_install make[1]: Entering directory `/home/racke/RTx-EmailCompletion-0.06' Installing /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/perl5/RTx/EmailCompletion.pm Installing /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/perl5/RTx/EmailCompletion/Ldap.pm Installing /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/man/man3/RTx::EmailCompletion.3pm !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/opt/rt3/local/plugins/RTx-EmailCompletion/html/Callbacks/RTx-EmailCompletion/Elements/Header' mkdir /opt/rt3/local/plugins/RTx-EmailCompletion: Permission denied at /usr/share/perl5/ExtUtils/Install.pm line 457 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1 make[1]: *** [install] Error 13 make[1]: Leaving directory `/home/racke/RTx-EmailCompletion-0.06' dh_auto_install: make returned exit code 2 Regards Racke
Subject: Re: [rt.cpan.org #12964] Does not honor DESTDIR
Date: Wed, 22 Jul 2009 11:32:30 +0400
To: bug-Module-Install-RTx [...] rt.cpan.org
From: Ruslan Zakirov <ruslan.zakirov [...] gmail.com>
Download (untitled) / with headers
text/plain 1.5k
I'm not big expert in packaging. Patches are welcome as long as things stay backward compatible. On Wed, Jul 22, 2009 at 10:24 AM, Stefan Hornburg via RT<bug-Module-Install-RTx@rt.cpan.org> wrote: Show quoted text
>       Queue: Module-Install-RTx >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=12964 > > > DESTDIR seems to work for modules and packages, but not for the included > HTML stuff. > > I tried to run cpan2deb RTx::EmailCompletion which fails as follows: > > dh binary >   dh_testroot >   dh_prep >   dh_installdirs >   dh_auto_install > make[1]: Entering directory `/home/racke/RTx-EmailCompletion-0.06' > Installing > /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/perl5/RTx/EmailCompletion.pm > Installing > /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/perl5/RTx/EmailCompletion/Ldap.pm > Installing > /home/racke/RTx-EmailCompletion-0.06/debian/librtx-emailcompletion-perl/usr/share/man/man3/RTx::EmailCompletion.3pm > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ERROR: Can't create > '/opt/rt3/local/plugins/RTx-EmailCompletion/html/Callbacks/RTx-EmailCompletion/Elements/Header' > mkdir /opt/rt3/local/plugins/RTx-EmailCompletion: Permission denied at > /usr/share/perl5/ExtUtils/Install.pm line 457 > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >  at -e line 1 > make[1]: *** [install] Error 13 > make[1]: Leaving directory `/home/racke/RTx-EmailCompletion-0.06' > dh_auto_install: make returned exit code 2 > > Regards >         Racke >
-- Best regards, Ruslan.
Download (untitled) / with headers
text/plain 952b
Dne st 22.čec.2009 03:38:52, Ruslan.Zakirov@gmail.com napsal(a): Show quoted text
> I'm not big expert in packaging. Patches are welcome as long as things > stay backward compatible.
I believe the original report does include a patch, inline in the text. Can you please try it? For convenience, repeating the patch (due to cut&paste from web to web I cannot guarantee this copy is not whitespace-damaged though): --- Module-Install-RTx-0.11.orig/lib/Module/Install/RTx.pm 2005-02-27 03:55:14.000000000 +0100 +++ Module-Install-RTx-0.11/lib/Module/Install/RTx.pm 2005-05-26 18:02:50.590394307 +0200 @@ -66,7 +66,7 @@ } $path{$_} .= "/$name" for grep $path{$_}, qw(etc po var); - my $args = join(', ', map "q($_)", %path); + my $args = join(', ', map "q($_), q(\$(DESTDIR)$path{$_})", keys %path); $path{lib} = "$RT::LocalPath/lib" unless %subdirs and ! $subdirs{'lib'}; print "./$_\t=> $path{$_}\n" for sort keys %path;
Subject: [rt.cpan.org #12964] Does not honor DESTDIR
Date: Mon, 4 Feb 2013 11:14:00 -0500
To: bug-Module-Install-RTx [...] rt.cpan.org
From: Andrew Psaltis <ampsaltis [...] gmail.com>
Download (untitled) / with headers
text/plain 162b
I have observed this behavior in Module::Install::RTx 0.30. Attached is a patch which similar to the above diffs that should solve the problem. Thanks, ~Andrew

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.