[Xapian-tickets] [Xapian] #692: Infinite loop when building Search::Xapian with CPANPLUS
Xapian
nobody at xapian.org
Thu Oct 29 05:59:19 GMT 2015
#692: Infinite loop when building Search::Xapian with CPANPLUS
-----------------------------------+--------------------
Reporter: voegelas | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.2.x
Component: Search::Xapian | Version: 1.2.21
Severity: normal | Keywords: perl
Blocked By: | Blocking:
Operating System: All |
-----------------------------------+--------------------
When building Search::Xapian with CPANPLUS the script Makefile.PL
overwrites the Makefile created by ExtUtils::!MakeMaker with a stub
Makefile as the variables $srcdir and $buildir are defined and identical.
As a consequence the make command calls itself in an infinite loop. The
attached patch replaces "if (defined $builddir)" with "if (defined
$builddir && $builddir ne $srcdir)".
CPANPLUS executes Makefile.PL in the following way:
cd $srcdir
perl -e 'use strict; BEGIN { my $old = select STDERR; $|++; select $old;
$|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; }'
$srcdir/Makefile.PL
--
Ticket URL: <http://trac.xapian.org/ticket/692>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list