Skip Menu |
 

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

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

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

Bug Information
Severity: Important
Broken in: 0.2808
Fixed in: (no value)



Subject: Module::Build::Compat gets EXE_FILES wrong
Download (untitled) / with headers
text/plain 1.8k
I recently released App::Pgrep and the very first report was a failure to install. The following error message was generated: make: *** No rule to make target \ `/Users/ovid/code/App-Pgrep/bin/pgrep', \ needed by `blib/script/pgrep'. Stop. Hey, that's a report from someone else, but that's a path on *my* machine. Here's my Build.PL: use strict; use warnings; use Module::Build; my $builder = Module::Build->new( module_name => 'App::Pgrep', license => 'perl', dist_author => 'Curtis Poe <ovid@cpan.org>', dist_version_from => 'lib/App/Pgrep.pm', build_requires => { 'Scalar::Util' => 1.19, 'Test::More' => 0, 'File::Next' => 0.40, 'PPI' => 1.118, }, exe_files => ['bin/pgrep'], add_to_cleanup => ['App-Pgrep-*'], create_makefile_pl => 'traditional', ); $builder->create_build_script(); Note that I have 'create_makefile_pl' in there. Here's the broken makefile it generated, with an absolute path to bin/pgrep instead of a relative one: # Note: this file was auto-generated by Module::Build::Compat version 0.03 use ExtUtils::MakeMaker; WriteMakefile ( 'PL_FILES' => {}, 'INSTALLDIRS' => 'site', 'NAME' => 'App::Pgrep', 'EXE_FILES' => [ '/Users/ovid/code/App-Pgrep/bin/pgrep' ], 'VERSION_FROM' => 'lib/App/Pgrep.pm', 'PREREQ_PM' => { 'Test::More' => 0, 'Scalar::Util' => '1.19', 'PPI' => '1.118', 'File::Next' => '0.4' } ) ; I can work around this by manually editing Makefile.PL every time it changes, but I'm going to forget and this will happen again :( Cheers, Ovid
From: KWILLIAMS [...] cpan.org
Download (untitled) / with headers
text/plain 431b
I notice that you have exe_files => ['bin/pgrep'], in your Build.PL. But there's no such thing as 'exe_files' (the corresponding parameter is 'script_files', so it's actually defaulting to finding everything in bin/ . The easy fix for you would be to change it to 'script_files'. We still need to fix M::B so it doesn't use the absolute path in the case that script_files isn't specified explicitly, though. -Ken
Download (untitled) / with headers
text/plain 191b
On Mon Aug 20 21:57:37 2007, KWILLIAMS wrote: Show quoted text
> We still need to fix M::B so it doesn't use the absolute path in the > case that script_files isn't specified explicitly, though.
Done. -Ken


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.