Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
php 7.1.1-2: EL-7 rebuild with dts (again)
  • Loading branch information
remicollet committed Jan 18, 2017
1 parent 62c98a6 commit b1a4c84
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 11 deletions.
25 changes: 25 additions & 0 deletions php/php71/php-intl.patch
@@ -0,0 +1,25 @@
From 6af22d0d3ed224d89be1d1e9e53ff7e2e2e5439d Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@php.net>
Date: Wed, 18 Jan 2017 13:00:49 +0100
Subject: [PATCH] Fix #73956 Link use CC instead of CXX

---
ext/intl/config.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/intl/config.m4 b/ext/intl/config.m4
index dd28276..ca2cd82 100644
--- a/ext/intl/config.m4
+++ b/ext/intl/config.m4
@@ -86,7 +86,7 @@ if test "$PHP_INTL" != "no"; then
breakiterator/codepointiterator_methods.cpp \
uchar/uchar.c \
idn/idn.c \
- $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
+ $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx)
PHP_ADD_BUILD_DIR($ext_builddir/collator)
PHP_ADD_BUILD_DIR($ext_builddir/converter)
PHP_ADD_BUILD_DIR($ext_builddir/common)
--
2.1.4

8 changes: 7 additions & 1 deletion php/php71/php71.spec
Expand Up @@ -121,7 +121,7 @@
%endif

#global rcver RC1
%global rpmrel 2
%global rpmrel 3

Summary: PHP scripting language for creating dynamic web sites
Name: php
Expand Down Expand Up @@ -177,6 +177,7 @@ Patch47: php-5.6.3-phpinfo.patch
Patch91: php-5.6.3-oci8conf.patch

# Upstream fixes (100+)
Patch100: php-intl.patch

# Security fixes (200+)

Expand Down Expand Up @@ -1026,6 +1027,7 @@ httpd -V | grep -q 'threaded:.*yes' && exit 1
%patch91 -p1 -b .remi-oci8

# upstream patches
%patch100 -p1 -b .73956

# security patches

Expand Down Expand Up @@ -2051,6 +2053,10 @@ fi


%changelog
* Wed Jan 18 2017 Remi Collet <remi@fedoraproject.org> 7.1.1-3
- EL-7: add patch for https://bugs.php.net/73956
- switch back to gcc 6.2

* Wed Jan 18 2017 Remi Collet <remi@fedoraproject.org> 7.1.1-2
- EL-7: rebuild using gcc 4.8 instead of 6.2
because of https://bugzilla.redhat.com/1414348
Expand Down
25 changes: 25 additions & 0 deletions scl-php71/php/php-intl.patch
@@ -0,0 +1,25 @@
From 6af22d0d3ed224d89be1d1e9e53ff7e2e2e5439d Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@php.net>
Date: Wed, 18 Jan 2017 13:00:49 +0100
Subject: [PATCH] Fix #73956 Link use CC instead of CXX

---
ext/intl/config.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/intl/config.m4 b/ext/intl/config.m4
index dd28276..ca2cd82 100644
--- a/ext/intl/config.m4
+++ b/ext/intl/config.m4
@@ -86,7 +86,7 @@ if test "$PHP_INTL" != "no"; then
breakiterator/codepointiterator_methods.cpp \
uchar/uchar.c \
idn/idn.c \
- $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
+ $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx)
PHP_ADD_BUILD_DIR($ext_builddir/collator)
PHP_ADD_BUILD_DIR($ext_builddir/converter)
PHP_ADD_BUILD_DIR($ext_builddir/common)
--
2.1.4

8 changes: 7 additions & 1 deletion scl-php71/php/php.spec
Expand Up @@ -125,7 +125,7 @@
%endif

#global rcver RC1
%global rpmrel 2
%global rpmrel 3


Summary: PHP scripting language for creating dynamic web sites
Expand Down Expand Up @@ -183,6 +183,7 @@ Patch47: php-5.6.3-phpinfo.patch
Patch91: php-5.6.3-oci8conf.patch

# Upstream fixes (100+)
Patch100: php-intl.patch

# Security fixes (200+)

Expand Down Expand Up @@ -894,6 +895,7 @@ support for JavaScript Object Notation (JSON) to PHP.
%patch91 -p1 -b .remi-oci8

# upstream patches
%patch100 -p1 -b .73956

# security patches

Expand Down Expand Up @@ -1808,6 +1810,10 @@ fi


%changelog
* Wed Jan 18 2017 Remi Collet <remi@fedoraproject.org> 7.1.1-3
- EL-7: add patch for https://bugs.php.net/73956
- switch back to gcc 6.2

* Wed Jan 18 2017 Remi Collet <remi@fedoraproject.org> 7.1.1-2
- EL-7: rebuild using gcc 4.8 instead of 6.2
because of https://bugzilla.redhat.com/1414348
Expand Down
8 changes: 4 additions & 4 deletions tools/mock/el7x71.cfg
@@ -1,6 +1,6 @@
config_opts['root'] = 'el7x'
config_opts['target_arch'] = 'x86_64'
#config_opts['chroot_setup_cmd'] = 'install @buildsys-build devtoolset-6-toolchain'
config_opts['chroot_setup_cmd'] = 'install @buildsys-build devtoolset-6-toolchain'
config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst

Expand All @@ -25,9 +25,9 @@ config_opts['macros']['%rhel']="7"
config_opts['macros']['%_with_ibase']="1"
config_opts['macros']['%_with_oci8']="1"
config_opts['macros']['%runselftest']="1"
#config_opts['macros']['%dtsversion']="6"
#config_opts['macros']['%dtsenable']="source /opt/rh/devtoolset-6/enable"
#config_opts['macros']['%dtsprefix']="devtoolset-6-"
config_opts['macros']['%dtsversion']="6"
config_opts['macros']['%dtsenable']="source /opt/rh/devtoolset-6/enable"
config_opts['macros']['%dtsprefix']="devtoolset-6-"

config_opts['yum.conf'] = """
[main]
Expand Down
9 changes: 4 additions & 5 deletions tools/mock/el7xscl71.cfg
@@ -1,7 +1,6 @@
config_opts['root'] = 'scl71el7x'
config_opts['target_arch'] = 'x86_64'
#config_opts['chroot_setup_cmd'] = 'install @buildsys-build scl-utils-build php71-build devtoolset-6-toolchain'
config_opts['chroot_setup_cmd'] = 'install @buildsys-build scl-utils-build php71-build'
config_opts['chroot_setup_cmd'] = 'install @buildsys-build scl-utils-build php71-build devtoolset-6-toolchain'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst

config_opts['plugin_conf']['ccache_enable'] = True
Expand All @@ -28,9 +27,9 @@ config_opts['macros']['%_with_ibase']="1"
config_opts['macros']['%_with_oci8']="1"
config_opts['macros']['%runselftest']="1"
config_opts['macros']['%nophptag']="1"
#config_opts['macros']['%dtsversion']="6"
#config_opts['macros']['%dtsenable']="source /opt/rh/devtoolset-6/enable"
#config_opts['macros']['%dtsprefix']="devtoolset-6-"
config_opts['macros']['%dtsversion']="6"
config_opts['macros']['%dtsenable']="source /opt/rh/devtoolset-6/enable"
config_opts['macros']['%dtsprefix']="devtoolset-6-"

config_opts['yum.conf'] = """
[main]
Expand Down

0 comments on commit b1a4c84

Please sign in to comment.