ALT Linux Bugzilla
– Attachment 7262 Details for
Bug 34143
[FR] собирать без pcre jit на e2k
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
backported #73121 fix
0001-backported-73121-fix.patch (text/plain), 2.93 KB, created by
Michael Shigorin
on 2017-11-07 16:15:54 MSK
(
hide
)
Description:
backported #73121 fix
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2017-11-07 16:15:54 MSK
Size:
2.93 KB
patch
obsolete
>From b146c53b03eca6c3f5fc8908ea31d55cf931ae19 Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Sat, 7 Oct 2017 14:30:52 +0300 >Subject: [PATCH 1/2] backported #73121 fix > >--- > .gear/php-pcre-jit.patch | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > create mode 100644 .gear/php-pcre-jit.patch > >diff --git a/.gear/php-pcre-jit.patch b/.gear/php-pcre-jit.patch >new file mode 100644 >index 0000000..a99908d >--- /dev/null >+++ b/.gear/php-pcre-jit.patch >@@ -0,0 +1,77 @@ >+From 03119df9e1e03c0f751c746eec42b592368a7281 Mon Sep 17 00:00:00 2001 >+From: Anatol Belski <ab@php.net> >+Date: Fri, 23 Sep 2016 01:52:42 +0200 >+Subject: [PATCH] Fix bug #73121 Bundled PCRE doesn't compile because JIT isn't >+ supported on s390 >+ >+Adapted for php5 by Michael Shigorin <mike@altlinux.org> >+through dropping chunks for ext/pcre/php_pcre.[ch] >+(weren't modified the expected way in the tree). >+--- >+ ext/pcre/config.w32 | 6 ++++++ >+ ext/pcre/config0.m4 | 12 ++++++++++++ >+ ext/pcre/pcrelib/config.h | 6 +++++- >+ 3 files changed, 23 insertions(+), 1 deletion(-) >+ >+diff --git a/ext/pcre/config.w32 b/ext/pcre/config.w32 >+index 594b1cb..7e9832c 100644 >+--- a/ext/pcre/config.w32 >++++ b/ext/pcre/config.w32 >+@@ -11,3 +11,9 @@ AC_DEFINE('HAVE_PCRE', 1, 'Have PCRE library'); >+ PHP_PCRE="yes"; >+ PHP_INSTALL_HEADERS("ext/pcre", "php_pcre.h pcrelib/"); >+ ADD_FLAG("CFLAGS_PCRE", " /D HAVE_CONFIG_H"); >++ >++ARG_WITH("pcre-jit", "Enable PCRE JIT support", "yes"); >++if (PHP_PCRE_JIT != "no") { >++ AC_DEFINE('HAVE_PCRE_JIT_SUPPORT', 1, 'PCRE library'); >++} >++ >+diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 >+index bfe2009..9e2c98c 100644 >+--- a/ext/pcre/config0.m4 >++++ b/ext/pcre/config0.m4 >+@@ -66,3 +66,15 @@ PHP_ARG_WITH(pcre-regex,, >+ PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h pcrelib/]) >+ AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ]) >+ fi >++ >++PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality], yes, no) >++ if test "$PHP_PCRE_REGEX" != "no"; then >++ AC_MSG_CHECKING([whether to enable PCRE JIT functionality]) >++ if test "$PHP_PCRE_JIT" != "no"; then >++ AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [ ]) >++ AC_MSG_RESULT([yes]) >++ else >++ AC_MSG_RESULT([no]) >++ fi >++ fi >++ >+diff --git a/ext/pcre/pcrelib/config.h b/ext/pcre/pcrelib/config.h >+index 0f7a9f7..e3ed148 100644 >+--- a/ext/pcre/pcrelib/config.h >++++ b/ext/pcre/pcrelib/config.h >+@@ -1,7 +1,9 @@ >+ >+ #include <php_compat.h> >+ >+-#ifndef PHP_WIN32 >++#ifdef PHP_WIN32 >++# include <config.w32.h> >++#else >+ # include <php_config.h> >+ #endif >+ >+@@ -397,7 +399,9 @@ them both to 0; an emulation function will be used. */ >+ #undef SUPPORT_GCOV >+ >+ /* Define to any value to enable support for Just-In-Time compiling. */ >++#if HAVE_PCRE_JIT_SUPPORT >+ #define SUPPORT_JIT >++#endif >+ >+ /* Define to any value to allow pcregrep to be linked with libbz2, so that it >+ is able to handle .bz2 files. */ >+-- >+2.7.4 >+ >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34143
: 7262 |
7263