summaryrefslogtreecommitdiffstats
path: root/php-pecl-datadog-trace.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-datadog-trace.spec')
-rw-r--r--php-pecl-datadog-trace.spec14
1 files changed, 9 insertions, 5 deletions
diff --git a/php-pecl-datadog-trace.spec b/php-pecl-datadog-trace.spec
index 5432e3a..3d5f086 100644
--- a/php-pecl-datadog-trace.spec
+++ b/php-pecl-datadog-trace.spec
@@ -36,7 +36,7 @@
Summary: APM and distributed tracing for PHP
Name: %{?scl_prefix}php-pecl-datadog-trace
Version: 0.94.0
-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;')}}
# extension is dual-licensed under Apache 2.0 or BSD3.
# bundled rust ext are MIT AND Apache-2.0
License: (Apache-2.0 OR BSD-3-Clause) AND MIT AND Apache-2.0
@@ -46,6 +46,8 @@ Source0: https://pecl.php.net/get/%{proj_name}-%{version}.tgz
Source1: makedeps.sh
Source2: %{proj_name}-deps-%{version}.tgz
+Patch0: https://patch-diff.githubusercontent.com/raw/DataDog/dd-trace-php/pull/2383.patch
+
# ddtrace only supports 64-bit platforms
ExcludeArch: %{ix86} %{arm}
@@ -101,6 +103,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
+%patch -P0 -p1
+
: PEAR installer stuff
sed -e 's:@php_dir@:%{pear_phpdir}:' \
-e 's:_BUILD_FROM_PECL_:1:' \
@@ -158,10 +162,6 @@ EOF
%build
-# Disable LTO
-# https://github.com/DataDog/dd-trace-php/issues/2376
-%define _lto_cflags %{nil}
-
%{?dtsenable}
%if 0%{?scl:1}
source /opt/%{scl_vendor}/%{scl}/enable
@@ -215,6 +215,7 @@ done
%check
cd %{sources}
export DD_TRACE_CLI_ENABLED=1
+export DD_INSTRUMENTATION_TELEMETRY_ENABLED=0
# Erratic results
rm tests/ext/segfault_backtrace_*.phpt
@@ -301,6 +302,9 @@ fi
%changelog
+* Thu Nov 23 2023 Remi Collet <remi@remirepo.net> - 0.94.0-2
+- test build for https://github.com/DataDog/dd-trace-php/pull/2383
+
* Tue Nov 21 2023 Remi Collet <remi@remirepo.net> - 0.94.0-1
- update to 0.94.0
- open https://github.com/DataDog/dd-trace-php/issues/2376 LTO build failure