public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: - add php-pdo-abi version export (#193202)
@ 2026-11-27  7:23 jorton
  0 siblings, 0 replies; only message in thread
From: jorton @ 2026-11-27  7:23 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : 6ed14bb02d407ca0cc81d44a82aa6252e95e3f23
Author : jorton <jorton@fedoraproject.org>
Date   : 2006-06-02T11:07:41+00:00
Stats  : +12/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/6ed14bb02d407ca0cc81d44a82aa6252e95e3f23?branch=private-php86

Log:
- add php-pdo-abi version export (#193202)

---
diff --git a/php.spec b/php.spec
index 0b8825d..e9a93de 100644
--- a/php.spec
+++ b/php.spec
@@ -1,5 +1,6 @@
 %define contentdir /var/www
 %define apiver 20041225
+%define pdover 20060409
 
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Name: php
@@ -133,6 +134,7 @@ Summary: A database access abstraction module for PHP applications
 Group: Development/Languages
 Requires: php = %{version}-%{release}
 Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
+Provides: php-pdo-abi = %{pdoabi}
 
 %description pdo
 The php-pdo package contains a dynamic shared object that will add
@@ -174,7 +176,7 @@ php package.
 
 %package odbc
 Group: Development/Languages
-Requires: php = %{version}-%{release}
+Requires: php = %{version}-%{release}, php-pdo
 Summary: A module for PHP applications that use ODBC databases.
 Provides: php_database
 Obsoletes: stronghold-php-odbc
@@ -324,6 +326,14 @@ if test "x${vapi}" != "x%{apiver}"; then
    exit 1
 fi
 
+# Safety check for PDO ABI version change
+vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ 	]//;p}' ext/pdo/php_pdo_driver.h`
+if test "x${vpdo}" != "x%{pdover}"; then
+   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
+   : Update the pdover macro and rebuild.
+   exit 1
+fi
+
 %build
 # Force use of system libtool:
 libtoolize --force --copy
@@ -592,6 +602,7 @@ rm files.*
 %changelog
 * Fri Jun  2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
 - split out php-cli, php-common subpackages (#177821)
+- add php-pdo-abi version export (#193202)
 
 * Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
 - rebuilt for new libnetsnmp

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  7:23 [rpms/php] private-php86: - add php-pdo-abi version export (#193202) jorton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox