[libyaml-syck-perl] 01/02: Control blessing of loaded objects through an environment variable

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Fri May 19 19:09:42 UTC 2017


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

cbiedl-guest pushed a commit to branch yaml-unsafe
in repository libyaml-syck-perl.

commit f44eabe8176180842811aaf5749b7c829f98f242
Author: Christoph Biedl <debian.axhn at manchmal.in-ulm.de>
Date:   Fri May 19 15:00:36 2017 +0000

    Control blessing of loaded objects through an environment variable
---
 debian/patches/control-blessing.patch | 11 +++++++++++
 debian/patches/series                 |  1 +
 debian/rules                          |  2 ++
 3 files changed, 14 insertions(+)

diff --git a/debian/patches/control-blessing.patch b/debian/patches/control-blessing.patch
new file mode 100644
index 0000000..15246a0
--- /dev/null
+++ b/debian/patches/control-blessing.patch
@@ -0,0 +1,11 @@
+--- a/lib/YAML/Syck.pm
++++ b/lib/YAML/Syck.pm
+@@ -20,7 +20,7 @@
+     @ISA       = qw( Exporter );
+ 
+     $SortKeys    = 1;
+-    $LoadBlessed = 1;
++    $LoadBlessed = $ENV{'PERL_USE_UNSAFE_YAML'};
+ 
+     local $@;
+     eval {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c41435a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+control-blessing.patch
diff --git a/debian/rules b/debian/rules
index abde6ef..541cde4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export PERL_USE_UNSAFE_YAML=1
+
 %:
 	dh $@
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libyaml-syck-perl.git



More information about the Pkg-perl-cvs-commits mailing list