commit a2d834a24f570e49e95ff7a6ef6716fc0d73da40
Author: Elan Ruusamäe <[email protected]>
Date:   Sat Oct 28 21:51:16 2017 +0300

    restore sqlite3 version check
    
    refs f2e9281

 php.spec | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/php.spec b/php.spec
index 24d4065..f955189 100644
--- a/php.spec
+++ b/php.spec
@@ -2163,12 +2163,12 @@ if test "$ver" != "%{pharver}"; then
        : Update the pharver macro and rebuild.
        exit 1
 fi
-#ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' 
ext/sqlite3/php_sqlite3.h)
-#if test "$ver" != "%{sqlite3ver}"; then
-#      : Error: Upstream Sqlite3 version is now ${ver}, expecting 
%{sqlite3ver}.
-#      : Update the sqlite3ver macro and rebuild.
-#      exit 1
-#fi
+ver=$(awk '/#define PHP_SQLITE3_VERSION/ {print $3}' ext/sqlite3/php_sqlite3.h 
| xargs)
+if test "$ver" != "PHP_VERSION"; then
+       : Error: Upstream Sqlite3 version is now ${ver}, expecting 
%{sqlite3ver}.
+       : Update the sqlite3ver macro and rebuild.
+       exit 1
+fi
 ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' 
ext/zip/php_zip.h)
 if test "$ver" != "%{zipver}"; then
        : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/a2d834a24f570e49e95ff7a6ef6716fc0d73da40

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to