Skip to content

Commit

Permalink
php7: fix for icu 68.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nxhack authored and 1715173329 committed Nov 14, 2020
1 parent 77ab6b5 commit a10ccd9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/php7/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=php
PKG_VERSION:=7.4.12
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Michael Heimpold <[email protected]>
PKG_LICENSE:=PHP-3.01
Expand Down
13 changes: 13 additions & 0 deletions lang/php7/patches/1005-support_for_icu4c_68_1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/build/php.m4 2020-10-28 00:01:52.000000000 +0900
+++ b/build/php.m4 2020-11-13 08:57:27.939303216 +0900
@@ -1907,6 +1907,10 @@
if test "$PKG_CONFIG icu-io --atleast-version=60"; then
ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1"
fi
+
+ if test "$PKG_CONFIG icu-io --atleast-version=68"; then
+ ICU_CFLAGS="$ICU_CFLAGS -DU_DEFINE_FALSE_AND_TRUE=1"
+ fi
])

dnl

0 comments on commit a10ccd9

Please sign in to comment.