[Reproducible-commits] [libextutils-depends-perl] 35/187: - In Makefile.PL, don't use the bogus package "MAIN".

Maria Valentina Marin Rodrigues akira-guest at moszumanska.debian.org
Wed Jan 21 21:16:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

akira-guest pushed a commit to branch pu/reproducible_builds
in repository libextutils-depends-perl.

commit 9a9a4e7cf11d5cf35e27facbadcaa42038a563d8
Author: Torsten Schönfeld <tsch at src.gnome.org>
Date:   Mon Jan 7 20:37:17 2008 +0000

    	- In Makefile.PL, don't use the bogus package "MAIN".
    
    svn path=/trunk/; revision=51
---
 Changes     | 1 +
 Makefile.PL | 7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Changes b/Changes
index 65d9d4e..fb1214b 100644
--- a/Changes
+++ b/Changes
@@ -5,6 +5,7 @@ Revision history for Perl extension ExtUtils::Depends.
 	- In get_makefile_vars, comment out the code that put the installed
 	  libraries into @OBJECT, which caused them to get deleted on
 	  realclean.
+	- In Makefile.PL, don't use the bogus package "MAIN".
 
 0.205 Sun Jan 23 13:20:14 EST 2005
 	- Disable the RPM-related postamble on Win32.  The 'date' command
diff --git a/Makefile.PL b/Makefile.PL
index aa0e455..6770e10 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -10,9 +10,9 @@ WriteMakefile(
     'VERSION_FROM' => 'lib/ExtUtils/Depends.pm',
 );
 
-package MY;
 use Cwd;
-sub postamble
+
+sub MY::postamble
 {
 	# none of this rpm stuff is useful on win32, and actually it can cause
 	# nmake to barf.
@@ -29,7 +29,7 @@ sub postamble
 		'SOURCE' => '$(DISTNAME)-$(VERSION).tar.gz',
 		'DATE'    => $date,
 	);
-	
+
 	my $substitute = '$(PERL) -npe \''.join('; ', map {
 			"s/\\\@$_\\\@/$subs{$_}/g";
 		} keys %subs).'\'';
@@ -57,4 +57,3 @@ dist-srpms :: Makefile dist perl-\$(DISTNAME).spec \$(RPMS_DIR)/
 	rpmbuild -bs --define \"_topdir \$(RPMS_DIR)\" perl-\$(DISTNAME).spec
 "
 }
-package MAIN;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libextutils-depends-perl.git



More information about the Reproducible-commits mailing list