FAQ
Module/Build/t/compat.t fails the fakeinstall test when PREFIX is set.

lib/Module/Build/t/compat....# Failed test 'Should have installdirs=vendor'
# at ../lib/Module/Build/t/compat.t line 221.
# '# make fakeinstall INSTALLDIRS=vendor INSTALLVENDORLIB=/home/rmb1/misc/src/perl/build-g/t/_tmp8003/lbiidr
# # /home/rmb1/misc/src/perl/build-g/perl Build --makefile_env_macros 1 fakeinstall
# # prefixify /usr/local/share/man/man3 from to /opt
# # cannot prefixify, falling back to default.
# # Manifying blib/lib/Simple.pm -> blib/libdoc/Simple.3
# # no path to prefixify, falling back to default.
# # no path to prefixify, falling back to default.
# # prefixify /home/rmb1/misc/src/perl/build-g/t/_tmp8003/lbiidr from to /opt
# # cannot prefixify, falling back to default.
# # prefixify /usr/local/share/man/man3 from to /opt
# # cannot prefixify, falling back to default.
# # no path to prefixify, falling back to default.
# # Installing /opt/lib/perl5/Simple.pm
# # Installing /opt/man/man3/Simple.3
# # Writing /opt/lib/perl5/5.11.0/i686-linux-64int/auto/Simple/.packlist
# '
# doesn't match '(?x-ism:\/home\/rmb1\/misc\/src\/perl\/build\-g\/t\/_tmp8003\/lbiidr .* Simple\.pm)'

Here is a patch

Robin Barker

diff -ur ../perl-current/lib/Module/Build/t/compat.t ./lib/Module/Build/t/compat.t
--- ../perl-current/lib/Module/Build/t/compat.t 2008-09-30 12:29:35.000000000 +0100
+++ ./lib/Module/Build/t/compat.t 2008-10-28 18:26:18.000000000 +0000
@@ -205,6 +205,7 @@

(my $libdir2 = $libdir) =~ s/libdir/lbiidr/;
my @make_args = ('INSTALLDIRS=vendor', "INSTALLVENDORLIB=$libdir2");
+ local $ENV{PREFIX} if $ENV{PREFIX}; # ignore environment PREFIX

if ($is_vms_mms) { # VMS MMK/MMS macros use different syntax.
$make_args[0] = '/macro=("' . join('","',@make_args) . '")';
End of patch


-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------

Search Discussions

  • Michael G Schwern at Oct 29, 2008 at 9:21 pm

    Robin Barker wrote:
    Module/Build/t/compat.t fails the fakeinstall test when PREFIX is set.
    Thanks. There's new code to scrub out %ENV for all tests. I've added PREFIX
    to that. I also threw in INSTALL_BASE and INSTALLDIRS.


    --
    125. Two drink limit does not mean two kinds of drinks.
    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
    http://skippyslist.com/list/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedOct 29, '08 at 1:19p
activeOct 29, '08 at 9:21p
posts2
users2
websiteperl.org

2 users in discussion

Michael G Schwern: 1 post Robin Barker: 1 post

People

Translate

site design / logo © 2021 Grokbase