]> git.pld-linux.org Git - packages/php-pecl-grpc.git/commitdiff
fix includes path to avoid hack
authorElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jul 2016 22:05:35 +0000 (01:05 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jul 2016 22:05:35 +0000 (01:05 +0300)
includes.patch [new file with mode: 0644]
php-pecl-grpc.spec

diff --git a/includes.patch b/includes.patch
new file mode 100644 (file)
index 0000000..14e2ccc
--- /dev/null
@@ -0,0 +1,15 @@
+--- grpc-0.15.0/config.m4~     2016-06-28 02:33:35.000000000 +0300
++++ grpc-0.15.0/config.m4      2016-07-20 22:29:20.633876591 +0300
+@@ -5,9 +5,9 @@
+   dnl Write more examples of tests here...
+   dnl # --with-grpc -> add include path
+-  PHP_ADD_INCLUDE(../../grpc/include)
+-  PHP_ADD_INCLUDE(../../grpc/src/php/ext/grpc)
+-  PHP_ADD_INCLUDE(../../grpc/third_party/boringssl/include)
++  PHP_ADD_INCLUDE(include)
++  PHP_ADD_INCLUDE(src/php/ext/grpc)
++  PHP_ADD_INCLUDE(third_party/boringssl/include)
+   LIBS="-lpthread $LIBS"
index daa37f9b266baacc3afb6864c3cbd34930da6c4a..b0a77372b30f20056407653a9b0f21a0e14a7377 100644 (file)
@@ -15,6 +15,7 @@ License:      BSD
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: ba80ec5aa995d7b9e3df7d6d299bbd4b
+Patch0:                includes.patch
 URL:           http://pecl.php.net/package/grpc/
 %{?with_tests:BuildRequires:    %{php_name}-cli}
 BuildRequires: %{php_name}-devel >= 4:5.5
@@ -37,12 +38,12 @@ clients and servers using any combination of the supported languages.
 %prep
 %setup -qc
 mv %{modname}-%{version}/* .
+%patch0 -p1
 
 %build
 phpize
 %configure
-%{__make} \
-       EXTRA_INCLUDES="-I include/ -I src/php/ext/grpc/ -I third_party/boringssl/include/"
+%{__make}
 
 %if %{with tests}
 # simple module load test
This page took 0.106388 seconds and 4 git commands to generate.