diff options
author | Jan Rękorajski | 2013-06-09 17:52:54 (GMT) |
---|---|---|
committer | Jan Rękorajski | 2013-06-09 17:52:54 (GMT) |
commit | 3b4a5fe41d8411a1413b3d3fb54de45b4f5314f6 (patch) | |
tree | 2ad0a98a6efe404368b56d2b1d3ff63a4f6680e4 | |
parent | f33fc2d689aa003ee28981c91a30d3beee57b212 (diff) | |
download | perl-YAML-LibYAML-3b4a5fe41d8411a1413b3d3fb54de45b4f5314f6.zip perl-YAML-LibYAML-3b4a5fe41d8411a1413b3d3fb54de45b4f5314f6.tar.gz |
- fix format string errorsauto/th/perl-YAML-LibYAML-0.41-1
-rw-r--r-- | format-error.patch | 39 | ||||
-rw-r--r-- | perl-YAML-LibYAML.spec | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/format-error.patch b/format-error.patch new file mode 100644 index 0000000..2b25380 --- /dev/null +++ b/format-error.patch @@ -0,0 +1,39 @@ +diff -urbaN YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c YAML-LibYAML-0.35/LibYAML/perl_libyaml.c +--- YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c 2011-04-03 18:28:08.000000000 +0200 ++++ YAML-LibYAML-0.35/LibYAML/perl_libyaml.c 2011-04-08 09:25:49.633009787 +0200 +@@ -188,7 +188,7 @@ + return; + + load_error: +- croak(loader_error_msg(&loader, NULL)); ++ croak("%s", loader_error_msg(&loader, NULL)); + } + + /* +@@ -271,7 +271,7 @@ + return return_sv; + + load_error: +- croak(loader_error_msg(loader, NULL)); ++ croak("%s", loader_error_msg(loader, NULL)); + } + + /* +@@ -314,7 +314,7 @@ + else if (strlen(tag) <= strlen(prefix) || + ! strnEQ(tag, prefix, strlen(prefix)) + ) croak( +- loader_error_msg(loader, form("bad tag found for hash: '%s'", tag)) ++ "%s", loader_error_msg(loader, form("bad tag found for hash: '%s'", tag)) + ); + class = tag + strlen(prefix); + sv_bless(hash_ref, gv_stashpv(class, TRUE)); +@@ -347,7 +347,7 @@ + else if (strlen(tag) <= strlen(prefix) || + ! strnEQ(tag, prefix, strlen(prefix)) + ) croak( +- loader_error_msg(loader, form("bad tag found for array: '%s'", tag)) ++ "%s", loader_error_msg(loader, form("bad tag found for array: '%s'", tag)) + ); + class = tag + strlen(prefix); + sv_bless(array_ref, gv_stashpv(class, TRUE)); diff --git a/perl-YAML-LibYAML.spec b/perl-YAML-LibYAML.spec index 99a0edb..f3636c5 100644 --- a/perl-YAML-LibYAML.spec +++ b/perl-YAML-LibYAML.spec @@ -15,6 +15,7 @@ License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 951ea0542ed7228ba285196e437c8d89 +Patch0: format-error.patch URL: http://search.cpan.org/dist/YAML-LibYAML/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 @@ -33,6 +34,7 @@ YAML::XS::LibYAML to moduł wrappera XS dla libyaml. %prep %setup -q -n %{pdir}-%{pnam}-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL \ |