public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: jorton <jorton@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: - add php-pdo-abi version export (#193202)
Date: Fri, 27 Nov 2026 07:23:19 GMT	[thread overview]
Message-ID: <179576419990.1.12235265850245917342.rpms-php-6ed14bb02d40@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-27  7:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576419990.1.12235265850245917342.rpms-php-6ed14bb02d40@fedoraproject.org \
    --to=jorton@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox