develooper Front page | perl.perl5.porters | Postings from June 2011

[patch] add dependency to {cpan,dist,ext}/*/Makefile on $(VERSION_FROM)

From:
Jim Cromie
Date:
June 13, 2011 12:58
Subject:
[patch] add dependency to {cpan,dist,ext}/*/Makefile on $(VERSION_FROM)
Message ID:
BANLkTink9eJBG5NqeAhfhHa1T0r+ktf0aQ@mail.gmail.com
I need a little help with this:

When generating a Makefile from Makefile.PL, add a dependency on
$(VERSION_FROM) so that when the file's VERSION is bumped, the
later date will cause Makefile to be regenerated too, and thus get
the new VERSION.

Going forward, the dependency fixes problems like this:

cpan/Unicode-Normalize/t/tie................................... \
Unicode::Normalize object version 1.10 does not match \
bootstrap parameter 1.12 at ../../lib/DynaLoader.pm line 213.

Note: this problem doesnt occur for most smokers, because standard
practice is to do make (real|dist)?clean, or git clean -dxf, or rm -rf.

Ive tested this by doing a full build on a cleaned tree,
then merging this branch with blead at a2bf5ab1b8344732,
which bumps Opcode and mro VERSIONs, then doing an
incremental make test.


Patch apparently causes this failure, I dont know why.
Was hoping someone recognizes it.

cpan/ExtUtils-MakeMaker/t/PL_FILES.............................ok
cpan/ExtUtils-MakeMaker/t/pm...................................ok
cpan/ExtUtils-MakeMaker/t/pm_to_blib...........................#
Failed test 'run(make)'
#   at t/pm_to_blib.t line 57.
#          got: 512
#     expected: 0
# make[1]: Entering directory
`/home/jimc/projects/perl-core/perl/cpan/ExtUtils-MakeMaker/t/Big-Dummy'
# Makefile out-of-date with respect to lib/Big/Dummy.pm
# Cleaning current config before rebuilding Makefile...
# make -f Makefile.old clean > /dev/null 2>&1
# /home/jimc/projects/perl-core/perl/perl "-I../../../../lib"
"-I../../../../lib" Makefile.PL
# Current package is: main
# Writing Makefile for Big::Liar
# Writing MYMETA.yml
# Big::Liar's vars
# INST_LIB = ../blib/lib
# INST_ARCHLIB = ../blib/arch
# Writing Makefile for Big::Dummy
# Writing MYMETA.yml
# ==> Your Makefile has been rebuilt. <==
# ==> Please rerun the make command.  <==
# false
# make[1]: *** [Makefile] Error 1
# make[1]: Leaving directory
`/home/jimc/projects/perl-core/perl/cpan/ExtUtils-MakeMaker/t/Big-Dummy'
Can't open blib/lib/Big/Dummy.pm for reading: No such file or
directory at t/lib/MakeMaker/Test/Utils.pm line 397.
FAILED at test 7
cpan/ExtUtils-MakeMaker/t/pod2man..............................ok
cpan/ExtUtils-MakeMaker/t/postamble............................ok



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About