From 9fa5aa9143471cda101c2ac9e87f7bf90ccd0b36 Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Sun, 21 Sep 2014 17:36:27 -0500 Subject: [PATCH] Fix distclean for "pm_to_blib directly" extensions. The values of the %pm hash already have ../../ prepended, so we were trying to remove, for example, ../../../../lib/Exporter.pm instead of ../../lib/Exporter.pm. This fixes [perl #122820] wherein it was reported that a distclean make left some build products under lib/. --- make_ext.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_ext.pl b/make_ext.pl index f19bf181f04b..b855c6326a45 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -719,7 +719,7 @@ sub just_pm_to_blib { # (which it has to deal with, as cpan/foo/bar creates # lib/auto/foo/bar, but the EU::MM rule will only # rmdir lib/auto/foo/bar, leaving lib/auto/foo - _unlink("../../$_") + _unlink($_) foreach sort values %pm; } }