Skip Menu |

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

Report information
The Basics
Id: 79588
Status: open
Worked: 1 hour (60 min)
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

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



Subject: Module::Build deletes my files
Date: Wed, 12 Sep 2012 13:49:56 +0400
To: bug-Module-Build [...] rt.cpan.org
From: Victor Efimov <victor [...] vsespb.ru>
perl Build.PL ./Build dist Creating Net-Amazon-TreeHash-0.71 Can't copy('META.yml', 'Net-Amazon-TreeHash-0.71/META.yml'): No such file or directory at /usr/local/share/perl/5.10.1/Module/Build/Base.pm line 5614. it reports META.yml is missed, just after deleting it. if I run then perl Build.PL I am getting WARNING: the following files are missing in your kit: META.yml Please inform the author. If I restore file from backup - all repeats again. META.yml: --- abstract: 'Amazon Glacier TreeHash algorithm' author: - 'Victor Efimov' configure_requires: Module::Build: 0.36 generated_by: 'Module::Build version 0.3624' license: Software::License::GPL_3 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Net-Amazon-TreeHash provides: Net::Amazon::TreeHash: file: lib/Net/Amazon/TreeHash.pm version: 0.71 requires: Digest::SHA: 0 version: 0.71 Build.PL: use strict; use warnings; use Module::Build; use lib qw(lib); my $build = Module::Build->new( module_name => 'Net::Amazon::TreeHash', author => 'Victor Efimov', dist_author => 'Victor Efimov', recursive_test_files=>1, dist_abstract=>'Amazon Glacier TreeHash algorithm', license => 'Software::License::GPL_3', requires => { 'Digest::SHA' => 0, } ); $build->create_build_script();
Subject: Re: Module::Build deletes my files
Date: Wed, 12 Sep 2012 16:27:33 +0400
To: bug-Module-Build [...] rt.cpan.org
From: Victor Efimov <victor [...] vsespb.ru>
also module--build version - 0.4003 MANIFEST: Build.PL README t/t_treehash.t lib/Net/Amazon/TreeHash.pm MANIFEST This list of files META.yml 2012/9/12 Victor Efimov <victor@vsespb.ru> Show quoted text
> > perl Build.PL > ./Build dist > Creating Net-Amazon-TreeHash-0.71 > Can't copy('META.yml', 'Net-Amazon-TreeHash-0.71/META.yml'): No such file > or directory at /usr/local/share/perl/5.10.1/Module/Build/Base.pm line 5614. > > it reports META.yml is missed, just after deleting it. > > if I run then perl Build.PL > > I am getting > > WARNING: the following files are missing in your kit: > META.yml > Please inform the author. > > > If I restore file from backup - all repeats again. > > > META.yml: > > --- > abstract: 'Amazon Glacier TreeHash algorithm' > author: > - 'Victor Efimov' > configure_requires: > Module::Build: 0.36 > generated_by: 'Module::Build version 0.3624' > license: Software::License::GPL_3 > meta-spec: > url: http://module-build.sourceforge.net/META-spec-v1.4.html > version: 1.4 > name: Net-Amazon-TreeHash > provides: > Net::Amazon::TreeHash: > file: lib/Net/Amazon/TreeHash.pm > version: 0.71 > requires: > Digest::SHA: 0 > version: 0.71 > > > Build.PL: > > use strict; > use warnings; > use Module::Build; > > use lib qw(lib); > > my $build = Module::Build->new( > module_name => 'Net::Amazon::TreeHash', > author => 'Victor Efimov', > dist_author => 'Victor Efimov', > > > recursive_test_files=>1, > dist_abstract=>'Amazon Glacier TreeHash algorithm', > license => 'Software::License::GPL_3', > requires => { > 'Digest::SHA' => 0, > } > ); > > $build->create_build_script(); > > > > >
On Wed Sep 12 05:50:08 2012, vsespb wrote: Show quoted text
> perl Build.PL > ./Build dist > Creating Net-Amazon-TreeHash-0.71 > Can't copy('META.yml', 'Net-Amazon-TreeHash-0.71/META.yml'): No such file > or directory at /usr/local/share/perl/5.10.1/Module/Build/Base.pm line
5614. Show quoted text
> > it reports META.yml is missed, just after deleting it. > > if I run then perl Build.PL > > I am getting > > WARNING: the following files are missing in your kit: > META.yml > Please inform the author. > > > If I restore file from backup - all repeats again. > > > META.yml: > > --- > abstract: 'Amazon Glacier TreeHash algorithm' > author: > - 'Victor Efimov' > configure_requires: > Module::Build: 0.36 > generated_by: 'Module::Build version 0.3624' > license: Software::License::GPL_3 > meta-spec: > url: http://module-build.sourceforge.net/META-spec-v1.4.html > version: 1.4 > name: Net-Amazon-TreeHash > provides: > Net::Amazon::TreeHash: > file: lib/Net/Amazon/TreeHash.pm > version: 0.71 > requires: > Digest::SHA: 0 > version: 0.71 > > > Build.PL: > > use strict; > use warnings; > use Module::Build; > > use lib qw(lib); > > my $build = Module::Build->new( > module_name => 'Net::Amazon::TreeHash', > author => 'Victor Efimov', > dist_author => 'Victor Efimov', > > > recursive_test_files=>1, > dist_abstract=>'Amazon Glacier TreeHash algorithm', > license => 'Software::License::GPL_3', > requires => { > 'Digest::SHA' => 0, > } > ); > > $build->create_build_script();
This looks like a duplicate of #72585. When creating a new meta file, it first deletes the old one and then creates a new one, but it doesn't halt on failure. I guess it needs something that you're not giving it, though it's not entirely obvious to me what it is (it should be able to get dist_name and dist_version from module_name). Leon
Subject: Re: [rt.cpan.org #79588] Module::Build deletes my files
Date: Tue, 9 Oct 2012 21:35:39 +0400
To: bug-Module-Build [...] rt.cpan.org
From: Victor Efimov <victor [...] vsespb.ru>
Why would it create/overwrite META.yml - META.yml is the _source_ input file, not output file, isn't it ? also can it be related to my other problem with license ids https://rt.cpan.org/Public/Bug/Display.html?id=79587 ? 2012/9/20 Leon Timmermans via RT <bug-Module-Build@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=79588 > > > On Wed Sep 12 05:50:08 2012, vsespb wrote:
> > perl Build.PL > > ./Build dist > > Creating Net-Amazon-TreeHash-0.71 > > Can't copy('META.yml', 'Net-Amazon-TreeHash-0.71/META.yml'): No such file > > or directory at /usr/local/share/perl/5.10.1/Module/Build/Base.pm line
> 5614.
> > > > it reports META.yml is missed, just after deleting it. > > > > if I run then perl Build.PL > > > > I am getting > > > > WARNING: the following files are missing in your kit: > > META.yml > > Please inform the author. > > > > > > If I restore file from backup - all repeats again. > > > > > > META.yml: > > > > --- > > abstract: 'Amazon Glacier TreeHash algorithm' > > author: > > - 'Victor Efimov' > > configure_requires: > > Module::Build: 0.36 > > generated_by: 'Module::Build version 0.3624' > > license: Software::License::GPL_3 > > meta-spec: > > url: http://module-build.sourceforge.net/META-spec-v1.4.html > > version: 1.4 > > name: Net-Amazon-TreeHash > > provides: > > Net::Amazon::TreeHash: > > file: lib/Net/Amazon/TreeHash.pm > > version: 0.71 > > requires: > > Digest::SHA: 0 > > version: 0.71 > > > > > > Build.PL: > > > > use strict; > > use warnings; > > use Module::Build; > > > > use lib qw(lib); > > > > my $build = Module::Build->new( > > module_name => 'Net::Amazon::TreeHash', > > author => 'Victor Efimov', > > dist_author => 'Victor Efimov', > > > > > > recursive_test_files=>1, > > dist_abstract=>'Amazon Glacier TreeHash algorithm', > > license => 'Software::License::GPL_3', > > requires => { > > 'Digest::SHA' => 0, > > } > > ); > > > > $build->create_build_script();
> > This looks like a duplicate of #72585. When creating a new meta file, it > first deletes the old one and then creates a new one, but it doesn't > halt on failure. I guess it needs something that you're not giving it, > though it's not entirely obvious to me what it is (it should be able to > get dist_name and dist_version from module_name). > > Leon >
Subject: Re: [rt.cpan.org #79588] Module::Build deletes my files
Date: Sat, 10 Nov 2012 11:32:41 -0800
To: bug-Module-Build [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
On 2012.10.9 10:35 AM, Victor Efimov via RT wrote: Show quoted text
> Why would it create/overwrite META.yml - META.yml is the _source_ input > file, not output file, isn't it ?
Other way around. META.yml is built from information you give in Build.PL. It is generated as part of "Build distmeta" which is run as part of "Build dist".
From: victor [...] vsespb.ru
I think I fixed it by fixing wrong license recursive_test_files=>1, dist_abstract=>'Amazon Glacier TreeHash algorithm', - license => 'Software::License::GPL_3', + license => 'gpl3', requires => { 'Digest::SHA' => 0, } i.e. problem now that M:B does not produce right error message in this case, but instead just complains about missing meta files. On Thu Sep 20 00:37:08 2012, LEONT wrote: Show quoted text
> halt on failure. I guess it needs something that you're not giving it, > though it's not entirely obvious to me what it is (it should be able to > get dist_name and dist_version from module_name). > > Leon
As a slight advance on understanding this issue, I have logged an issue with CPAN::Meta. See Issue #45: Interaction with RT#79588 and auto-delete of META.*