Commit Graph

41 Commits

Author SHA1 Message Date
Hirokazu MORIKAWA bc13112a7c php7: Support for icu 70.1
This PR prepares PHP for a few minor changes that cause PHP builds to fail when using --enable-intl with ICU 70.1.

Change UBool to bool for equality operators in ICU >= 70.1

https://github.com/php/php-src/pull/7596

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-11-02 09:36:12 +09:00
Michael Heimpold fb9e05615b php7: update to 7.4.23
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-08-31 20:31:49 +02:00
Michael Heimpold f15aba89f7 php7: update to 7.4.21
This fixes:
    - CVE-2021-21704
    - CVE-2021-21705

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-07-05 00:13:35 +02:00
Michael Heimpold 87e852fc71 php7: update to 7.4.16
Also refresh patch.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-03-04 23:15:47 +01:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Michael Heimpold 110ea1b994 php7: remove obsolete patch for ICU 68.1
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-11-29 21:59:06 +01:00
Hirokazu MORIKAWA fc9fa48973 php7: fix for icu 68.1
https://github.com/openwrt/packages/pull/13883
https://github.com/php/php-src/commit/8eaaabd

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-11-13 09:06:15 +09:00
Michael Heimpold 70f26ed2fc php7: update to 7.4.11
This fixes:
  - CVE-2020-7069
  - CVE-2020-7070

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-10-03 22:09:51 +02:00
Michael Heimpold a8ff4663b5 php7: update to 7.4.3
This fixes:
  - CVE-2020-7061
  - CVE-2020-7062
  - CVE-2020-7063

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-02-25 22:56:15 +01:00
Michael Heimpold 0f10c8c841 php7: major upgrade to 7.4.1
- remove obsolete patches and update other ones
- filter support is now available as an extension module
- php7-mod-hash: this extension is now part of the core binary
  and cannot be built as an extension module anymore
- php7-mod-gd:
  - do not use bundled libgd, but rely on external one
  - this also obsoletes dependencies and configuration options
- php7-mod-zip: requires external libzip now

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-12-21 16:59:53 +01:00
Rosen Penev 8015772fdb
php7: Properly fix compilation without deprecated APIs
It seems that OpenSSL is bugged. While OpenSSL uses this code, it doesn't
export these defines anywhere. Match against the API version instead.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-25 11:43:35 -08:00
Rosen Penev b81a2bd384
php7: Fix compilation without deprecated OpenSSL APIs
Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-04-20 14:07:51 -07:00
Michael Heimpold 80cdd53134 php7: update to 7.2.16
Also refresh patch which does not apply cleanly anymore.

Run tested on Duckbill for mxs platform.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-03-13 22:21:16 +01:00
Michael Heimpold 1d4081dd4c php7: fix cross compiling patch (fixes #8166)
Fixes: e148924a4 ("php7: update to 7.2.15")
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-02-10 21:50:25 +01:00
Michael Heimpold e148924a4c php7: update to 7.2.15
Also refresh patch which does not apply cleanly anymore.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-02-09 13:35:58 +01:00
Michael Heimpold d0057d5eb4 php7: update to 7.2.5
Also drop obsolete patches.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-04-28 23:41:31 +02:00
Michael Heimpold 7c0dd7ae87 php7: fix compile issue with icu 61.1 (refs #5853)
Compile tested only at the moment.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-04-02 23:29:54 +02:00
Michael Heimpold 379f4a9507 php7: update to 7.2.2
Also refresh patches to reflect new year.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-02-05 20:50:46 +01:00
Philip Prindeville e1a4178de1 php7: redux of fix for issue #5488
Upstream was a little premature on asking for a change and not
vetting it.  Here is the currently proposed fix.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2018-01-25 15:19:30 -07:00
Philip Prindeville 6230ab4437 php7: fix issue 5488
Depending on which version of libiconv you're using, php_iconv_string()
doesn't always null out *out as part of its initialization.  This
patch makes that behavior invariant.

Submitted upstream as https://github.com/php/php-src/pull/3037 where
it's approved and waiting a merge.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2018-01-25 12:51:51 -07:00
Michael Heimpold 9f4b18c757 php7: update to 7.2.1
Remove a patch which was included upstream.

While at, also add openssl configuration parameters when modules are selected
which depend on openssl (reported by Philip Prindeville).

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-01-04 20:43:57 +01:00
Philip Prindeville 97efa62c22 php7: fix syntax issue in MIPS code for pcre
Copied from upstream (master).

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-12-29 17:41:12 -07:00
Michael Heimpold 97305e41b6 php7: disable valgrind support
The check to enable/disable this new feature of PHP 7.2 works
incorrectly when cross-compiling because it detects the host headers
only and there is no way to pass in a dedicated directory.

The wish to change this was reported upstream at:
https://bugs.php.net/bug.php?id=75722

For the meantime, use a self-cooked patch.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-12-28 22:00:07 +01:00
Philip Prindeville 1d1d67e0b9 php7: update to 7.2.0
Also drop mcrypt module as it's deprecated.

Dropped patches have been accepted upstream or something homologous.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-12-22 18:26:04 -07:00
Alexander Couzens 5dbbb1ba11 php7: remove build timestamp
Build timestamp prevents reproducible builds [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2017-12-14 19:00:11 +01:00
Michael Heimpold 9a901e05e9 php7: try to fix compilation on LEDE buildbots
Detection of U8T_DECOMPOSE seems to be broken when cross-compiling,
so needs to be preseeded.

-snip-
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL
 is missing. This should not happen. Check config.log for additional information.
-snap-

This requires also a patch for PHP to make the preseeding working.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-26 22:07:45 +01:00
Philip Prindeville f2641e9fb2 php7: backport upstream fix for multiline logging
See: https://github.com/php/php-src/pull/2674

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-08-19 11:31:42 -06:00
Michael Heimpold d6c333b705 php7: update to 7.1.6
Removed patch 1008-fix-musl-sys-headers.patch which was integrated
upstream.

(Compile tested only so far)

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-06-10 15:06:53 +02:00
Michael Heimpold b7eb92aada php7: update to 7.1.5
Remove patch 1006-fix-gettext.patch which was integrated upstream.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-05-14 22:31:25 +02:00
Philip Prindeville c401946b0e php7: fix php build issues with musl headers (fixes #4263)
MUSL is complaining about <sys/poll.h> instead of <poll.h>.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

[ Replaced the *-t1lib filtering stuff by simply removing the
left-over configure option ]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-04-17 21:58:32 +02:00
Michael Heimpold cf75d8a0f9 php7: fix bind_textdomain_codeset detection (refs #4250)
The gettext extension is only useful when linked against libintl-full
package, however, the detection did not work sucessfully. This patch
by @Dimazhan fixes this.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-04-11 23:31:37 +02:00
Michael Heimpold 97df69951c php7: update to 7.1.1
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-24 21:39:59 +01:00
Michael Heimpold 1a8c52015c php7: add a patch to fix build on aarch64
This fixes the following build error, spotted by the LEDE buildbots:

{standard input}: Assembler messages:
{standard input}:557: Error: operand 3 should be an integer register -- `mul x0,x0,1048576'
{standard input}:558: Error: operand 3 should be an integer register -- `smulh x1,x0,1048576'
Makefile:1466: recipe for target 'ext/opcache/zend_accelerator_module.lo' failed

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-11 22:24:26 +01:00
Michael Heimpold 3fc9ae5071 php7: update to 7.1.0
Adjust patches for new upstream revision.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-10 23:07:41 +01:00
Michael Heimpold 583af8565e php7: update to 7.0.13
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-11-16 21:12:39 +01:00
Michael Heimpold 80f0ea5728 php7: update to 7.0.12
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-10-16 20:53:46 +02:00
Michael Heimpold f353950649 php7: adjust patch to unbreak build (fixes #3202)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-22 19:38:10 +02:00
Michael Heimpold 6d2d5a6a19 php7: package phar extension
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-21 21:55:44 +02:00
Michael Heimpold 86acab6430 php7: mod-mysqli: use libmysqlclient instead of libmysqlclient_r (refs #3132)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-04 13:40:44 +02:00
Michael Heimpold c6d45a041e php7: restructure patches
- Add some more patches from Debian
- Rename existing ones (our own patches starts with prefix 1000+)

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-03 21:51:23 +02:00
Michael Heimpold 292c2ffc18 php7: add new package
This is a copy of the existing php5 stuff, adopted for PHP7.

Please not, that its not supported to install both php5
and php7 in parallel on the target.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-03 21:51:23 +02:00