Skip Menu |

This queue is for tickets about the Module-Build-Tiny CPAN distribution.

Report information
The Basics
Id: 86240
Status: resolved
Priority: 0/
Queue: Module-Build-Tiny

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

Bug Information
Severity: (no value)
Broken in: 0.023
Fixed in: (no value)



Subject: Bootstrapping "./Build install" ignores destdir and installdirs=vendor
Hi, after I unpacked Module-Build-Tiny-0.023 I get this: [SHELL] shlomif@telaviv1:~/Download/unpack/perl/cpan$ cd Module-Build-Tiny-0.023/ shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ls blib Build.PL INSTALL MANIFEST MYMETA.json t Build Changes lib META.json MYMETA.yml Todo _build_params dist.ini LICENSE META.yml README shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ perl B Build Build.PL shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ perl Build.PL Creating new 'Build' script for 'Module-Build-Tiny' version '0.023' shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build build Skip blib/lib/Module/Build/Tiny.pm (unchanged) shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build test t/00-compile.t .......... ok t/release-pod-syntax.t .. skipped: these tests are for release candidate testing t/simple.t .............. ok All tests successful. Files=3, Tests=24, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.39 cusr 0.05 csys = 0.48 CPU) Result: PASS shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build install destdir=`pwd`/foobar !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/usr/lib/perl5/site_perl/5.18.0/Module/Build' mkdir /usr/lib/perl5/site_perl/5.18.0/Module: Permission denied at /usr/lib/perl5/5.18.0/ExtUtils/Install.pm line 469. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at lib/Module/Build/Tiny.pm line 104. shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ mkdir foobar shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build install destdir=`pwd`/foobar !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/usr/lib/perl5/site_perl/5.18.0/Module/Build' mkdir /usr/lib/perl5/site_perl/5.18.0/Module: Permission denied at /usr/lib/perl5/5.18.0/ExtUtils/Install.pm line 469. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at lib/Module/Build/Tiny.pm line 104. shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ [END SHELL] As you can see, I cannot install under the destdir in "./Build install" and, furthermore, the installdirs=vendor argument is ignored. Please look into it. Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #86240] Bootstrapping "./Build install" ignores destdir and installdirs=vendor
Date: Tue, 18 Jun 2013 22:39:19 +0200
To: bug-Module-Build-Tiny [...] rt.cpan.org
From: Leon Timmermans <leont [...] cpan.org>
On Tue, Jun 18, 2013 at 5:58 PM, Shlomi Fish via RT <bug-Module-Build-Tiny@rt.cpan.org> wrote: Show quoted text
> As you can see, I cannot install under the destdir in "./Build install" and, furthermore, the installdirs=vendor argument is ignored. > > Please look into it.
That is correct, you're supposed to pass it as --installdirs=vendor. Module::Build accepts both (and some other forms), in the Build.PL spec we decided to only support a subset of the possibilities. Sorry about that, but we really couldn't reasonably support all options in a sane way. If you ran into this because you're using cpanspec (I remember you're a Mageia packager), I already submitted a pull request at https://github.com/silug/cpanspec/pull/5, but the author seems non-responsive. Leon
Hi Leon, I apologise for the late response. On Tue Jun 18 16:39:56 2013, LEONT wrote: Show quoted text
> On Tue, Jun 18, 2013 at 5:58 PM, Shlomi Fish via RT > <bug-Module-Build-Tiny@rt.cpan.org> wrote:
> > As you can see, I cannot install under the destdir in "./Build
> install" and, furthermore, the installdirs=vendor argument is ignored.
> > > > Please look into it.
> > That is correct, you're supposed to pass it as --installdirs=vendor. > Module::Build accepts both (and some other forms), in the Build.PL > spec we decided to only support a subset of the possibilities. Sorry > about that, but we really couldn't reasonably support all options in a > sane way. >
Thanks! By using --installdirs=vendor and --destdir, I was able to successfully build the package inside the RPM .spec, and to bootstrap it and other packages. I added the correct synopsis for that here: https://wiki.mageia.org/en/Perl_policy Show quoted text
> If you ran into this because you're using cpanspec (I remember you're > a Mageia packager), I already submitted a pull request at > https://github.com/silug/cpanspec/pull/5, but the author seems > non-responsive.
I think we're using https://metacpan.org/module/CPANPLUS::Dist::Mageia (and higher level tools - http://blogs.perl.org/users/shlomi_fish/2012/08/tech-tip-how-to-package-and-maintain-cpan-distributions-in-mageia.html ) instead of cpanspec, but I'll see about converting the Build.PL recipe to it in C-D-Mageia . Regards, -- Shlomi Fish