r42899 - in /trunk/libvariable-magic-perl: Changes MANIFEST META.yml Magic.xs Makefile.PL README debian/changelog debian/control debian/copyright debian/rules lib/Variable/Magic.pm t/01-import.t t/90-boilerplate.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Wed Aug 26 13:31:35 UTC 2009
Author: jawnsy-guest
Date: Wed Aug 26 13:31:29 2009
New Revision: 42899
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=42899
Log:
* New upstream release
+ New constant VMG_FORKSAFE introduced to determine whether
the module behaves nicely when fork()ing
* Standards-Version 3.8.3 (drop perl version dependency)
* Drop versioned dependencies on packages where a newer version is
available in oldstable
* Added myself to Uploaders and Copyright
* Updated copyright file with people in changelog
* Use new short debhelper 7 rules format
Removed:
trunk/libvariable-magic-perl/t/90-boilerplate.t
Modified:
trunk/libvariable-magic-perl/Changes
trunk/libvariable-magic-perl/MANIFEST
trunk/libvariable-magic-perl/META.yml
trunk/libvariable-magic-perl/Magic.xs
trunk/libvariable-magic-perl/Makefile.PL
trunk/libvariable-magic-perl/README
trunk/libvariable-magic-perl/debian/changelog
trunk/libvariable-magic-perl/debian/control
trunk/libvariable-magic-perl/debian/copyright
trunk/libvariable-magic-perl/debian/rules
trunk/libvariable-magic-perl/lib/Variable/Magic.pm
trunk/libvariable-magic-perl/t/01-import.t
Modified: trunk/libvariable-magic-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/Changes?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/Changes (original)
+++ trunk/libvariable-magic-perl/Changes Wed Aug 26 13:31:29 2009
@@ -1,4 +1,11 @@
Revision history for Variable-Magic
+
+0.37 2009-08-25 15:25 UTC
+ + Add : The new constant VMG_FORKSAFE can be tested to know whether the
+ module will behave nicely when fork()ing. It's currently always
+ true except on Windows where you need perl 5.10.1 for it to be
+ true.
+ + Doc : Nits and clarifications.
0.36 2009-07-05 16:30 UTC
+ Chg : getdata() now returns an empty list when no magic is present.
Modified: trunk/libvariable-magic-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/MANIFEST?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/MANIFEST (original)
+++ trunk/libvariable-magic-perl/MANIFEST Wed Aug 26 13:31:29 2009
@@ -37,7 +37,6 @@
t/35-stash.t
t/40-threads.t
t/41-clone.t
-t/90-boilerplate.t
t/91-pod.t
t/92-pod-coverage.t
t/95-portability-files.t
Modified: trunk/libvariable-magic-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/META.yml?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/META.yml (original)
+++ trunk/libvariable-magic-perl/META.yml Wed Aug 26 13:31:29 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Variable-Magic
-version: 0.36
+version: 0.37
abstract: Associate user-defined magic to variables from Perl.
author:
- Vincent Pit <perl at profvince.com>
@@ -15,6 +15,7 @@
ExtUtils::MakeMaker: 0
Test::More: 0
requires:
+ base: 0
Carp: 0
Exporter: 0
perl: 5.008
@@ -28,7 +29,7 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.52
+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/libvariable-magic-perl/Magic.xs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/Magic.xs?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/Magic.xs (original)
+++ trunk/libvariable-magic-perl/Magic.xs Wed Aug 26 13:31:29 2009
@@ -34,6 +34,11 @@
#ifndef dNOOP
# define dNOOP
+#endif
+
+/* Safe unless stated otherwise in Makefile.PL */
+#ifndef VMG_FORKSAFE
+# define VMG_FORKSAFE 1
#endif
#ifndef VMG_MULTIPLICITY
@@ -1263,6 +1268,7 @@
newSVuv(VMG_COMPAT_SCALAR_LENGTH_NOLEN));
newCONSTSUB(stash, "VMG_PERL_PATCHLEVEL", newSVuv(VMG_PERL_PATCHLEVEL));
newCONSTSUB(stash, "VMG_THREADSAFE", newSVuv(VMG_THREADSAFE));
+ newCONSTSUB(stash, "VMG_FORKSAFE", newSVuv(VMG_FORKSAFE));
newCONSTSUB(stash, "VMG_OP_INFO_NAME", newSVuv(VMG_OP_INFO_NAME));
newCONSTSUB(stash, "VMG_OP_INFO_OBJECT", newSVuv(VMG_OP_INFO_OBJECT));
}
Modified: trunk/libvariable-magic-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/Makefile.PL?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/Makefile.PL (original)
+++ trunk/libvariable-magic-perl/Makefile.PL Wed Aug 26 13:31:29 2009
@@ -45,6 +45,11 @@
push @DEFINES, '-DVMG_MULTIPLICITY=0';
}
+# Fork emulation got "fixed" in 5.10.1
+if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
+ push @DEFINES, '-DVMG_FORKSAFE=0';
+}
+
@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
my $dist = 'Variable-Magic';
@@ -79,7 +84,8 @@
PREREQ_PM => {
'Carp' => 0,
'Exporter' => 0,
- 'XSLoader' => 0
+ 'XSLoader' => 0,
+ 'base' => 0,
},
MIN_PERL_VERSION => 5.008,
META_MERGE => \%META,
Modified: trunk/libvariable-magic-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/README?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/README (original)
+++ trunk/libvariable-magic-perl/README Wed Aug 26 13:31:29 2009
@@ -2,7 +2,7 @@
Variable::Magic - Associate user-defined magic to variables from Perl.
VERSION
- Version 0.36
+ Version 0.37
SYNOPSIS
use Variable::Magic qw/wizard cast VMG_OP_INFO_NAME/;
@@ -81,13 +81,13 @@
* "get"
- This magic is invoked when the variable is evaluated (does not
- include array/hash subscripts and slices).
+ This magic is invoked when the variable is evaluated. It is never
+ called for arrays and hashes.
* "set"
- This one is triggered each time the value of the variable changes
- (includes array/hash subscripts and slices).
+ This one is triggered each time the value of the variable changes.
+ It is called for array subscripts and slices, but never for hashes.
* "len"
@@ -228,7 +228,7 @@
$_[2] is an alias to the current key. Nothing prevents you
from changing it, but be aware that there lurk dangerous
- side effects. For example, it may righteously be readonly if
+ side effects. For example, it may rightfully be readonly if
the key was a bareword. You can get a copy instead by
passing "copy_key => 1" to "wizard", which allows you to
safely assign to $_[2] in order to e.g. redirect the action
@@ -406,6 +406,11 @@
True iff this module could have been built with thread-safety features
enabled.
+ "VMG_FORKSAFE"
+ True iff this module could have been built with fork-safety features
+ enabled. This will always be true except on Windows where it's false for
+ perl 5.10.0 and below .
+
"VMG_OP_INFO_NAME"
Value to pass with "op_info" to get the current op name in the magic
callbacks.
Modified: trunk/libvariable-magic-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/debian/changelog?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/debian/changelog (original)
+++ trunk/libvariable-magic-perl/debian/changelog Wed Aug 26 13:31:29 2009
@@ -1,3 +1,17 @@
+libvariable-magic-perl (0.37-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ + New constant VMG_FORKSAFE introduced to determine whether
+ the module behaves nicely when fork()ing
+ * Standards-Version 3.8.3 (drop perl version dependency)
+ * Drop versioned dependencies on packages where a newer version is
+ available in oldstable
+ * Added myself to Uploaders and Copyright
+ * Updated copyright file with people in changelog
+ * Use new short debhelper 7 rules format
+
+ -- Jonathan Yu <frequency at cpan.org> Wed, 26 Aug 2009 05:23:59 -0400
+
libvariable-magic-perl (0.36-1) unstable; urgency=low
[ Nathan Handler ]
Modified: trunk/libvariable-magic-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/debian/control?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/debian/control (original)
+++ trunk/libvariable-magic-perl/debian/control Wed Aug 26 13:31:29 2009
@@ -1,12 +1,13 @@
Source: libvariable-magic-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7), perl (>= 5.8), libtest-pod-perl (>= 1.14),
- libtest-pod-coverage-perl (>= 1.04), libtest-portability-files-perl
+Build-Depends: debhelper (>= 7), perl, libtest-pod-perl,
+ libtest-pod-coverage-perl, libtest-portability-files-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Antonio Radici <antonio at dyne.org>,
- Ansgar Burchardt <ansgar at 43-1.org>, Nathan Handler <nhandler at ubuntu.com>
-Standards-Version: 3.8.2
+ Ansgar Burchardt <ansgar at 43-1.org>, Nathan Handler <nhandler at ubuntu.com>,
+ Jonathan Yu <frequency at cpan.org>
+Standards-Version: 3.8.3
Homepage: http://search.cpan.org/dist/Variable-Magic/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libvariable-magic-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libvariable-magic-perl/
Modified: trunk/libvariable-magic-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/debian/copyright?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/debian/copyright (original)
+++ trunk/libvariable-magic-perl/debian/copyright Wed Aug 26 13:31:29 2009
@@ -10,7 +10,10 @@
License: Artistic | GPL-1+
Files: debian/*
-Copyright: 2009, Antonio Radici <antonio at dyne.org>
+Copyright: 2009, Jonathan Yu <frequency at cpan.org>
+ 2009, Nathan Handler <nhandler at ubuntu.com>
+ 2009, Ansgar Burchardt <ansgar at 43-1.org>
+ 2009, Antonio Radici <antonio at dyne.org>
License: Artistic | GPL-1+
License: Artistic
Modified: trunk/libvariable-magic-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/debian/rules?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/debian/rules (original)
+++ trunk/libvariable-magic-perl/debian/rules Wed Aug 26 13:31:29 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: install
- dh $@
-
-binary-indep:
-
-binary: binary-arch binary-indep
-
-.PHONY: binary binary-arch binary-indep install clean build
Modified: trunk/libvariable-magic-perl/lib/Variable/Magic.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/lib/Variable/Magic.pm?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/lib/Variable/Magic.pm (original)
+++ trunk/libvariable-magic-perl/lib/Variable/Magic.pm Wed Aug 26 13:31:29 2009
@@ -13,13 +13,13 @@
=head1 VERSION
-Version 0.36
+Version 0.37
=cut
our $VERSION;
BEGIN {
- $VERSION = '0.36';
+ $VERSION = '0.37';
}
=head1 SYNOPSIS
@@ -105,13 +105,15 @@
C<get>
-This magic is invoked when the variable is evaluated (does not include array/hash subscripts and slices).
+This magic is invoked when the variable is evaluated.
+It is never called for arrays and hashes.
=item *
C<set>
-This one is triggered each time the value of the variable changes (includes array/hash subscripts and slices).
+This one is triggered each time the value of the variable changes.
+It is called for array subscripts and slices, but never for hashes.
=item *
@@ -278,7 +280,7 @@
C<$_[2]> is an alias to the current key.
Nothing prevents you from changing it, but be aware that there lurk dangerous side effects.
-For example, it may righteously be readonly if the key was a bareword.
+For example, it may rightfully be readonly if the key was a bareword.
You can get a copy instead by passing C<< copy_key => 1 >> to L</wizard>, which allows you to safely assign to C<$_[2]> in order to e.g. redirect the action to another key.
This however has a little performance drawback because of the copy.
@@ -471,6 +473,11 @@
True iff this module could have been built with thread-safety features enabled.
+=head2 C<VMG_FORKSAFE>
+
+True iff this module could have been built with fork-safety features enabled.
+This will always be true except on Windows where it's false for perl 5.10.0 and below .
+
=head2 C<VMG_OP_INFO_NAME>
Value to pass with C<op_info> to get the current op name in the magic callbacks.
@@ -552,7 +559,7 @@
qw/SIG_MIN SIG_MAX SIG_NBR MGf_COPY MGf_DUP MGf_LOCAL VMG_UVAR/,
qw/VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID VMG_COMPAT_ARRAY_UNDEF_CLEAR VMG_COMPAT_SCALAR_LENGTH_NOLEN/,
qw/VMG_PERL_PATCHLEVEL/,
- qw/VMG_THREADSAFE/,
+ qw/VMG_THREADSAFE VMG_FORKSAFE/,
qw/VMG_OP_INFO_NAME VMG_OP_INFO_OBJECT/
]
);
Modified: trunk/libvariable-magic-perl/t/01-import.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvariable-magic-perl/t/01-import.t?rev=42899&op=diff
==============================================================================
--- trunk/libvariable-magic-perl/t/01-import.t (original)
+++ trunk/libvariable-magic-perl/t/01-import.t Wed Aug 26 13:31:29 2009
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 21;
+use Test::More tests => 22;
require Variable::Magic;
@@ -13,7 +13,7 @@
VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID
VMG_COMPAT_ARRAY_UNDEF_CLEAR VMG_COMPAT_SCALAR_LENGTH_NOLEN
VMG_PERL_PATCHLEVEL
- VMG_THREADSAFE
+ VMG_THREADSAFE VMG_FORKSAFE
VMG_OP_INFO_NAME VMG_OP_INFO_OBJECT/) {
eval { Variable::Magic->import($_) };
is($@, '', 'import ' . $_);
More information about the Pkg-perl-cvs-commits
mailing list