summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-02-19 14:30:00 +0100
committerRemi Collet <remi@php.net>2024-02-19 14:30:00 +0100
commit86bfc2d780aa8dffe519fde092ee100411d0e0ed (patch)
tree7b6b5363873551a75c3b2ac930b34a32478d6cc0
parentd54f8935e19e01e0960e8dbeb74708d1ba8ba074 (diff)
ignore incompatible-pointer-types errors, reported as
https://github.com/RubixML/Tensor/issues/42
-rw-r--r--php-pecl-tensor.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/php-pecl-tensor.spec b/php-pecl-tensor.spec
index 5728799..4e689ff 100644
--- a/php-pecl-tensor.spec
+++ b/php-pecl-tensor.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-tensor
#
-# Copyright (c) 2020-2023 Remi Collet
+# Copyright (c) 2020-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -21,7 +21,7 @@
Summary: Objects for scientific computing in PHP
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
@@ -93,6 +93,9 @@ EOF
%build
%{?dtsenable}
+# see https://github.com/RubixML/Tensor/issues/42
+export CFLAGS="%{optflags} -Wno-incompatible-pointer-types"
+
cd %{sources}/ext
%{__phpize}
@@ -189,6 +192,10 @@ fi
%changelog
+* Mon Feb 19 2024 Remi Collet <remi@remirepo.net> - 1.10.1-2
+- ignore incompatible-pointer-types errors, reported as
+ https://github.com/RubixML/Tensor/issues/42
+
* Wed Sep 20 2023 Remi Collet <remi@remirepo.net> - 3.0.4-1
- update to 3.0.4
- build out of sources tree