r46308 - in /trunk/libmodule-load-conditional-perl: CHANGES META.yml Makefile.PL debian/README.Debian debian/changelog debian/control debian/copyright debian/rules lib/Module/Load/Conditional.pm
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sat Oct 24 14:24:54 UTC 2009
Author: jawnsy-guest
Date: Sat Oct 24 14:24:48 2009
New Revision: 46308
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46308
Log:
WAITS-FOR libmodule-corelist-perl 2.22
* New upstream release
* Refreshed copyright information
* Standards-Version 3.8.3 (drop perl version dependency)
* Use new short debhelper rules format
* Added myself to Uploaders and Copyright
* Add a README.Debian to note this module is DEPRECATED
Added:
trunk/libmodule-load-conditional-perl/debian/README.Debian
Modified:
trunk/libmodule-load-conditional-perl/CHANGES
trunk/libmodule-load-conditional-perl/META.yml
trunk/libmodule-load-conditional-perl/Makefile.PL
trunk/libmodule-load-conditional-perl/debian/changelog
trunk/libmodule-load-conditional-perl/debian/control
trunk/libmodule-load-conditional-perl/debian/copyright
trunk/libmodule-load-conditional-perl/debian/rules
trunk/libmodule-load-conditional-perl/lib/Module/Load/Conditional.pm
Modified: trunk/libmodule-load-conditional-perl/CHANGES
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/CHANGES?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/CHANGES (original)
+++ trunk/libmodule-load-conditional-perl/CHANGES Sat Oct 24 14:24:48 2009
@@ -1,3 +1,13 @@
+Changes for 0.32 Fri Oct 23 21:56:11 BST 2009
+=================================================
+* Version bump
+
+Changes for 0.31_01 Fri Oct 23 09:47:12 BST 2009
+=================================================
+* Added DEPRECATED and support for determining if
+ a core module is loaded from perl lib path and
+ setting uptodate accordingly.
+
Changes for 0.30 Mon Jan 19 16:25:55 CET 2009
=================================================
* This is a test-suite fix release only. Users of
Modified: trunk/libmodule-load-conditional-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/META.yml?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/META.yml (original)
+++ trunk/libmodule-load-conditional-perl/META.yml Sat Oct 24 14:24:48 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Module-Load-Conditional
-version: 0.30
+version: 0.32
abstract: Looking up module information / loading at runtime
author:
- Jos Boumans <kane[at]cpan.org>
@@ -8,8 +8,11 @@
distribution_type: module
configure_requires:
ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
requires:
Locale::Maketext::Simple: 0
+ Module::CoreList: 2.22
Module::Load: 0.11
Params::Check: 0
Test::More: 0
@@ -18,7 +21,7 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.48
+generated_by: ExtUtils::MakeMaker version 6.54
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
Modified: trunk/libmodule-load-conditional-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/Makefile.PL?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/Makefile.PL (original)
+++ trunk/libmodule-load-conditional-perl/Makefile.PL Sat Oct 24 14:24:48 2009
@@ -13,6 +13,8 @@
### tests under 5.6.2. XS version is OK
### see t/02_Parse_Version.t for details
'version' => '0.69',
+ ### We need 2.22 for is_deprecated()
+ 'Module::CoreList' => '2.22',
},
INSTALLDIRS => ( $] >= 5.009005 ? 'perl' : 'site' ),
AUTHOR => 'Jos Boumans <kane[at]cpan.org>',
Added: trunk/libmodule-load-conditional-perl/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/debian/README.Debian?rev=46308&op=file
==============================================================================
--- trunk/libmodule-load-conditional-perl/debian/README.Debian (added)
+++ trunk/libmodule-load-conditional-perl/debian/README.Debian Sat Oct 24 14:24:48 2009
@@ -1,0 +1,2 @@
+Please note that this module is considered DEPRECATED upstream, so it may not
+receive future support and may be removed from Debian.
Modified: trunk/libmodule-load-conditional-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/debian/changelog?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/debian/changelog (original)
+++ trunk/libmodule-load-conditional-perl/debian/changelog Sat Oct 24 14:24:48 2009
@@ -1,4 +1,14 @@
-libmodule-load-conditional-perl (0.30-2) UNRELEASED; urgency=low
+libmodule-load-conditional-perl (0.32-1) UNRELEASED; urgency=low
+
+ WAITS-FOR libmodule-corelist-perl 2.22
+
+ [ Jonathan Yu ]
+ * New upstream release
+ * Refreshed copyright information
+ * Standards-Version 3.8.3 (drop perl version dependency)
+ * Use new short debhelper rules format
+ * Added myself to Uploaders and Copyright
+ * Add a README.Debian to note this module is DEPRECATED
[ Nathan Handler ]
* debian/watch: Update to ignore development releases.
@@ -7,7 +17,7 @@
* debian/control: Changed: (build-)depend on perl instead of perl-
modules.
- -- Nathan Handler <nhandler at ubuntu.com> Sat, 06 Jun 2009 01:35:02 +0000
+ -- Jonathan Yu <jawnsy at cpan.org> Sat, 24 Oct 2009 06:44:59 -0400
libmodule-load-conditional-perl (0.30-1) unstable; urgency=low
Modified: trunk/libmodule-load-conditional-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/debian/control?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/debian/control (original)
+++ trunk/libmodule-load-conditional-perl/debian/control Sat Oct 24 14:24:48 2009
@@ -2,14 +2,14 @@
Section: perl
Priority: optional
Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: perl (>= 5), libmodule-load-perl,
+Build-Depends-Indep: perl, libmodule-load-perl,
perl (>= 5.10) | libversion-perl, liblocale-maketext-simple-perl,
- libparams-check-perl
+ libparams-check-perl, libmodule-corelist-perl (>= 2.22)
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Alejandro Garrido Mota <garridomota at gmail.com>,
- Damyan Ivanov <dmn at debian.org>,
+ Damyan Ivanov <dmn at debian.org>, Jonathan Yu <jawnsy at cpan.org>,
gregor herrmann <gregoa at debian.org>, Rene Mayorga <rmayorga at debian.org>
-Standards-Version: 3.8.0
+Standards-Version: 3.8.3
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libmodule-load-conditional-perl
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libmodule-load-conditional-perl
Homepage: http://search.cpan.org/dist/Module-Load-Conditional/
@@ -18,10 +18,12 @@
Architecture: all
Depends: ${perl:Depends}, ${misc:Depends}, libmodule-load-perl,
perl (>= 5.10) | libversion-perl, liblocale-maketext-simple-perl,
- libparams-check-perl
-Description: Module::Load::Conditional - Looking up module information
- Module::Load::Conditional provides simple ways to query and possibly
- load any of the modules you have installed on your system during runtime.
- It is able to load multiple modules at once or none at all if one of
- them was not able to load. It also takes care of any error checking and
- so forth.
+ libparams-check-perl, libmodule-corelist-perl (>= 2.22)
+Description: module for looking up information about modules
+ Module::Load::Conditional provides simple ways to query and possibly load any
+ of the modules you have installed on your system during runtime. It is able
+ to load multiple modules at once or none at all if one of them was not able
+ to load. It also takes care of any error checking and so forth.
+ .
+ Please note that this module is considered DEPRECATED upstream, so it may not
+ receive future support and may be removed from Debian.
Modified: trunk/libmodule-load-conditional-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/debian/copyright?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/debian/copyright (original)
+++ trunk/libmodule-load-conditional-perl/debian/copyright Sat Oct 24 14:24:48 2009
@@ -1,21 +1,21 @@
Format-Specification:
http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Jos Boumans <kane at cpan.org>.
+Upstream-Maintainer: Jos Boumans <kane at cpan.org>
Upstream-Source: http://search.cpan.org/dist/Module-Load-Conditional/
Upstream-Name: Module-Load-Conditional
Files: *
-Copyright: © 2002 Jos Boumans <kane at cpan.org>
+Copyright: 2002, Jos Boumans <kane at cpan.org>
License-Alias: Perl
License: Artistic | GPL-1+
Files: debian/*
-Copyright:
- © 2007-2008, Alejandro Garrido Mota <garridomota at gmail.com>
- © 2008, Damyan Ivanov <dmn at debian.org>,
- © 2008, gregor herrmann <gregoa at debian.org>
- © 2008, MartÃn Ferrari <tincho at debian.org>
- © 2008, Roberto C. Sanchez <roberto at debian.org>
+Copyright: 2009, Jonathan Yu <jawnsy at cpan.org>
+ 2008, Damyan Ivanov <dmn at debian.org>
+ 2008, gregor herrmann <gregoa at debian.org>
+ 2008, MartÃn Ferrari <tincho at debian.org>
+ 2008, Roberto C. Sanchez <roberto at debian.org>
+ 2007-2008, Alejandro Garrido Mota <garridomota at gmail.com>
License: Artistic | GPL-1+
License: Artistic
Modified: trunk/libmodule-load-conditional-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/debian/rules?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/debian/rules (original)
+++ trunk/libmodule-load-conditional-perl/debian/rules Sat Oct 24 14:24:48 2009
@@ -1,23 +1,4 @@
#!/usr/bin/make -f
-build: build-stamp
-build-stamp:
- dh build
- touch $@
-
-clean:
+%:
dh $@
-
-install: install-stamp
-install-stamp: build-stamp
- dh install
- touch $@
-
-binary-arch:
-
-binary-indep: install
- dh $@
-
-binary: binary-arch binary-indep
-
-.PHONY: binary binary-arch binary-indep install clean build
Modified: trunk/libmodule-load-conditional-perl/lib/Module/Load/Conditional.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-load-conditional-perl/lib/Module/Load/Conditional.pm?rev=46308&op=diff
==============================================================================
--- trunk/libmodule-load-conditional-perl/lib/Module/Load/Conditional.pm (original)
+++ trunk/libmodule-load-conditional-perl/lib/Module/Load/Conditional.pm Sat Oct 24 14:24:48 2009
@@ -14,12 +14,13 @@
use constant ON_VMS => $^O eq 'VMS';
BEGIN {
- use vars qw[ $VERSION @ISA $VERBOSE $CACHE @EXPORT_OK
+ use vars qw[ $VERSION @ISA $VERBOSE $CACHE @EXPORT_OK $DEPRECATED
$FIND_VERSION $ERROR $CHECK_INC_HASH];
use Exporter;
@ISA = qw[Exporter];
- $VERSION = '0.30';
+ $VERSION = '0.32';
$VERBOSE = 0;
+ $DEPRECATED = 0;
$FIND_VERSION = 1;
$CHECK_INC_HASH = 0;
@EXPORT_OK = qw[check_install can_load requires];
@@ -135,6 +136,9 @@
uptodate will always be true if the module was found.
If no parsable version was found in the module, uptodate will also be
true, since C<check_install> had no way to verify clearly.
+
+See also C<$Module::Load::Conditional::DEPRECATED>, which affects
+the outcome of this value.
=back
@@ -208,7 +212,7 @@
($fh) = $dir->[0]->($dir, $file, @{$dir}{1..$#{$dir}})
} elsif (UNIVERSAL::can($dir, 'INC')) {
- ($fh) = $dir->INC->($dir, $file);
+ ($fh) = $dir->INC($file);
}
if (!UNIVERSAL::isa($fh, 'GLOB')) {
@@ -298,6 +302,16 @@
version->new( $args->{version} ) <= version->new( $href->{version} )
? 1
: 0;
+ }
+
+ if ( $DEPRECATED and version->new($]) >= version->new('5.011') ) {
+ require Module::CoreList;
+ require Config;
+
+ $href->{uptodate} = 0 if
+ exists $Module::CoreList::version{ 0+$] }{ $args->{module} } and
+ Module::CoreList::is_deprecated( $args->{module} ) and
+ $Config::Config{privlibexp} eq $href->{dir};
}
return $href;
@@ -600,6 +614,15 @@
C<can_load>. It is useful to inspect this when C<can_load> returns
C<undef>.
+=head2 $Module::Load::Conditional::DEPRECATED
+
+This controls whether C<Module::Load::Conditional> checks if
+a dual-life core module has been deprecated. If this is set to
+true C<check_install> will return false to C<uptodate>, if
+a dual-life module is found to be loaded from C<$Config{privlibexp}>
+
+The default is 0;
+
=head1 See Also
C<Module::Load>
More information about the Pkg-perl-cvs-commits
mailing list