summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-04-15 11:45:42 +0200
committerRemi Collet <remi@php.net>2026-04-15 11:45:42 +0200
commit7ae4316294610d310044301b03fba4b94eacbe56 (patch)
tree48a0161c142d97a3e21b36e2e007b7549916089f
parente6b03df161a482f5f425d49b7169d990fc5244f0 (diff)
add deprecation message using patch fromHEADmaster
https://github.com/pear/pear-core/pull/169
-rw-r--r--169.patch25
-rw-r--r--php-pear.spec10
2 files changed, 33 insertions, 2 deletions
diff --git a/169.patch b/169.patch
new file mode 100644
index 0000000..1c28ac4
--- /dev/null
+++ b/169.patch
@@ -0,0 +1,25 @@
+From ca70e73c90e121b4f448a5dc102092215a04467c Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 15 Apr 2026 11:11:15 +0200
+Subject: [PATCH] add message about PECL deprecated by PIE
+
+---
+ scripts/pearcmd.php | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/scripts/pearcmd.php b/scripts/pearcmd.php
+index 290435333..4203a638d 100644
+--- a/scripts/pearcmd.php
++++ b/scripts/pearcmd.php
+@@ -360,6 +360,11 @@ function usage($error = null, $helpsubject = null)
+ "Type \"$progname help <command>\" to get the help ".
+ "for the specified command.";
+ }
++ if (PEAR_RUNTYPE === 'pecl'&& in_array($helpsubject, array(null, 'install', 'upgrade'))) {
++ $put .=
++ "\nNotice: PECL is now deprecated. " .
++ "PHP Installer for Extensions (PIE) is the replacement for PECL.";
++ }
+ fputs($stdout, "$put\n");
+ fclose($stdout);
+
diff --git a/php-pear.spec b/php-pear.spec
index 9434fe2..a84f32c 100644
--- a/php-pear.spec
+++ b/php-pear.spec
@@ -40,7 +40,7 @@
Summary: PHP Extension and Application Repository framework
Name: %{?scl_prefix}php-pear
Version: 1.10.18
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
# BSD-2-Clause: PEAR, PEAR_Manpages, Archive_Tar, Console_Getopt
# BSD-3-Clause: XML_Util
@@ -62,6 +62,8 @@ Source23: http://pear.php.net/get/Structures_Graph-%{structver}.tgz
Source24: http://pear.php.net/get/XML_Util-%{xmlutil}.tgz
Source25: http://pear.php.net/get/PEAR_Manpages-%{manpages}.tgz
+Patch0: 169.patch
+
BuildArch: noarch
BuildRequires: %{?scl_prefix}php(language) > 5.4
BuildRequires: %{?scl_prefix}php-cli
@@ -254,7 +256,7 @@ install -m 644 -D macros.pear \
# apply patches on installed PEAR tree
pushd %{buildroot}%{peardir}
- : none
+ patch -p2 <%{PATCH0}
popd
# Why this file here ?
@@ -383,6 +385,10 @@ fi
%changelog
+* Wed Apr 15 2026 Remi Collet <remi@remirepo.net> - 1.10.18-2
+- add deprecation message using patch from
+ https://github.com/pear/pear-core/pull/169
+
* Mon Jan 26 2026 Remi Collet <remi@remirepo.net> - 1.10.18-1
- update to 1.10.18
- drop patch merged upstream