From ad98be9bba26bf962207de981116443eeb425956 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Tue, 25 Apr 2017 17:38:09 +0200
Subject: Fix retrieving JIT_SIZE

---
 perl-re-engine-PCRE2.spec                          |  9 +++++-
 re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch | 35 ++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch

diff --git a/perl-re-engine-PCRE2.spec b/perl-re-engine-PCRE2.spec
index d149992..386837c 100644
--- a/perl-re-engine-PCRE2.spec
+++ b/perl-re-engine-PCRE2.spec
@@ -1,6 +1,6 @@
 Name:           perl-re-engine-PCRE2
 Version:        0.11
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        PCRE2 regular expression engine for Perl
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/re-engine-PCRE2/
@@ -8,6 +8,9 @@ Source0:        
http://www.cpan.org/authors/id/R/RU/RURBAN/re-engine-PCRE2-%{ver
 # Respect Makefile.PL's arguments,
 # <https://github.com/rurban/re-engine-PCRE2/pull/20>
 Patch0:         re-engine-PCRE2-0.11-Do-not-empty-ARGV-in-Makefile.PL.patch
+# Fix retrieving JIT_SIZE, bug #1445223,
+# <https://github.com/rurban/re-engine-PCRE2/issues/23>
+Patch1:         re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch
 BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  gcc
@@ -38,6 +41,7 @@ PCRE2 regular expressions provided by libpcre2-8.
 %prep
 %setup -q -n re-engine-PCRE2-%{version}
 %patch0 -p1
+%patch1 -p1
 # Fix permissions, <https://github.com/rurban/re-engine-PCRE2/issues/21>
 chmod -x PCRE2.{pm,xs}
 
@@ -61,5 +65,8 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Apr 25 2017 Petr Pisar <[email protected]> - 0.11-2
+- Fix retrieving JIT_SIZE (bug #1445223)
+
 * Fri Apr 21 2017 Petr Pisar <[email protected]> 0.11-1
 - Specfile autogenerated by cpanspec 1.78.
diff --git a/re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch 
b/re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch
new file mode 100644
index 0000000..477b175
--- /dev/null
+++ b/re-engine-PCRE2-0.11-Fix-retrieving-JIT-SIZE.patch
@@ -0,0 +1,35 @@
+From eca9c82ada7752ffe530769ab00dc8eee33a62bd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
+Date: Tue, 25 Apr 2017 17:29:00 +0200
+Subject: [PATCH] Fix retrieving JIT SIZE
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+There was a typo causing jitsize() to return value of non-JIT
+compiled pattern. It manifested into 'no jitsize 0' t/config.t
+failures on systems where PCRE2 library has disabled JIT. This patch
+fixes it.
+
+https://github.com/rurban/re-engine-PCRE2/issues/23
+Signed-off-by: Petr Písař <[email protected]>
+---
+ PCRE2.xs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/PCRE2.xs b/PCRE2.xs
+index 69e414f..3584cd0 100644
+--- a/PCRE2.xs
++++ b/PCRE2.xs
+@@ -609,7 +609,7 @@ DECL_U32_PATTERN_INFO(rx, newline, NEWLINE)
+ DECL_U32_PATTERN_INFO(rx, recursionlimit, RECURSIONLIMIT)
+ 
+ DECL_UV_PATTERN_INFO(rx, size, SIZE)
+-DECL_UV_PATTERN_INFO(rx, jitsize, SIZE)
++DECL_UV_PATTERN_INFO(rx, jitsize, JITSIZE)
+ #ifdef PCRE2_INFO_FRAMESIZE
+ DECL_UV_PATTERN_INFO(rx, framesize, FRAMESIZE)
+ #endif
+-- 
+2.7.4
+
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-re-engine-PCRE2.git/commit/?h=master&id=ad98be9bba26bf962207de981116443eeb425956
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to