Bug#606078: ExtUtils::MakeMaker: generated makefile can't cope with perl upgrade

Jonathan Nieder jrnieder at gmail.com
Mon Dec 6 08:41:07 UTC 2010


Package: perl-modules
Version: 5.10.1-16
Tags: upstream

Upgraded perl to 5.12.2-2 today.  Works very well, generally;
thanks!  But:

 $ cd ~/src/git
 $ make -j2
     SUBDIR git-gui
     SUBDIR gitk-git
 make[1]: Nothing to be done for `all'.
     SUBDIR perl
 make[2]: *** No rule to make target `/usr/lib/perl/5.10/Config.pm', needed by `perl.mak'.  Stop.
 make[1]: *** [all] Error 2
 make: *** [all] Error 2

Hmm, that's odd.

 $ make V=1
[...]
 make -f perl.mak all
 make[2]: Entering directory `/home/jrn/src/git/perl'
 make[2]: *** No rule to make target `/usr/lib/perl/5.10/Config.pm', needed by `perl.mak'.  Stop.
[...]
 $ cat perl/perl.mak
 # This Makefile is for the Git extension to perl.
 #
 # It was generated automatically by MakeMaker version
 # 6.55_02 (Revision: 65502) from the contents of
 # Makefile.PL. Don't edit this file, edit Makefile.PL instead.
[...]
 # --- MakeMaker makefile section:
 # We take a very conservative approach here, but it's worth it.
 # We move Makefile to Makefile.old here to avoid gnu make looping.
 $(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP)
	$(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?"
	$(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..."
	-$(NOECHO) $(RM_F) $(MAKEFILE_OLD)
	-$(NOECHO) $(MV)   $(FIRST_MAKEFILE) $(MAKEFILE_OLD)
	- $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL)
	$(PERLRUN) Makefile.PL "PREFIX=/home/jrn" "INSTALL_BASE="
	$(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <=="
	$(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command.  <=="
	$(FALSE)

Ah.  Should be fixable by adding a dummy

 $(CONFIGDEP) : ;

Thoughts?






More information about the Perl-maintainers mailing list