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: - work around rpm %patch zero-fuzz for the time being
Date: Fri, 27 Nov 2026 07:23:56 GMT [thread overview]
Message-ID: <179576423620.1.14328720234039805895.rpms-php-3244077310e3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 3244077310e38d1d16fcbc1088f7970f430dd4b9
Author : jorton <jorton@fedoraproject.org>
Date : 2008-07-14T13:43:49+00:00
Stats : +105/-103 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/3244077310e38d1d16fcbc1088f7970f430dd4b9?branch=private-php86
Log:
- work around rpm %patch zero-fuzz for the time being
---
diff --git a/php-5.2.4-gnusrc.patch b/php-5.2.4-gnusrc.patch
deleted file mode 100644
index db9ff86..0000000
--- a/php-5.2.4-gnusrc.patch
+++ /dev/null
@@ -1,102 +0,0 @@
---- php-5.2.4/Zend/zend_language_parser.c.gnusrc
-+++ php-5.2.4/Zend/zend_language_parser.c
-@@ -356,6 +356,8 @@
- #include "zend_API.h"
- #include "zend_constants.h"
-
-+#include <string.h>
-+
-
- #define YYERROR_VERBOSE
- #define YYSTYPE znode
---- php-5.2.4/main/streams/streams.c.gnusrc
-+++ php-5.2.4/main/streams/streams.c
-@@ -21,7 +21,6 @@
-
- /* $Id$ */
-
--#define _GNU_SOURCE
- #include "php.h"
- #include "php_globals.h"
- #include "php_network.h"
---- php-5.2.4/main/streams/cast.c.gnusrc
-+++ php-5.2.4/main/streams/cast.c
-@@ -18,7 +18,6 @@
-
- /* $Id$ */
-
--#define _GNU_SOURCE
- #include "php.h"
- #include "php_globals.h"
- #include "php_network.h"
---- php-5.2.4/main/streams/memory.c.gnusrc
-+++ php-5.2.4/main/streams/memory.c
-@@ -18,7 +18,6 @@
-
- /* $Id$ */
-
--#define _GNU_SOURCE
- #include "php.h"
-
- PHPAPI int php_url_decode(char *str, int len);
---- php-5.2.4/main/php.h.gnusrc
-+++ php-5.2.4/main/php.h
-@@ -30,6 +30,7 @@
- #define PHP_HAVE_STREAMS
- #define YYDEBUG 0
-
-+#include "php_config.h"
- #include "php_version.h"
- #include "zend.h"
- #include "zend_qsort.h"
---- php-5.2.4/ext/standard/file.c.gnusrc
-+++ php-5.2.4/ext/standard/file.c
-@@ -118,7 +118,6 @@ php_file_globals file_globals;
-
- #ifdef HAVE_FNMATCH
- #ifndef _GNU_SOURCE
--#define _GNU_SOURCE
- #endif
- #include <fnmatch.h>
- #endif
---- php-5.2.4/ext/pdo_firebird/firebird_driver.c.gnusrc
-+++ php-5.2.4/ext/pdo_firebird/firebird_driver.c
-@@ -22,7 +22,6 @@
- #include "config.h"
- #endif
-
--#define _GNU_SOURCE
-
- #include "php.h"
- #include "php_ini.h"
---- php-5.2.4/ext/zlib/zlib_fopen_wrapper.c.gnusrc
-+++ php-5.2.4/ext/zlib/zlib_fopen_wrapper.c
-@@ -19,7 +19,6 @@
-
- /* $Id$ */
-
--#define _GNU_SOURCE
-
- #include "php.h"
- #include "php_zlib.h"
---- php-5.2.4/ext/interbase/interbase.c.gnusrc
-+++ php-5.2.4/ext/interbase/interbase.c
-@@ -24,7 +24,6 @@
- #include "config.h"
- #endif
-
--#define _GNU_SOURCE
-
- #include "php.h"
-
---- php-5.2.4/configure.in.gnusrc
-+++ php-5.2.4/configure.in
-@@ -58,6 +58,8 @@ AC_DEFUN([PHP_EXT_DIR],[ext/$1])dnl
- AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir/ext/$1])dnl
- AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
-
-+AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU C Library extensions])
-+
- dnl Setting up the PHP version based on the information above.
- dnl -------------------------------------------------------------------------
-
diff --git a/php-5.2.6-gnusrc.patch b/php-5.2.6-gnusrc.patch
new file mode 100644
index 0000000..1e02bdd
--- /dev/null
+++ b/php-5.2.6-gnusrc.patch
@@ -0,0 +1,102 @@
+--- php-5.2.6/configure.in.gnusrc
++++ php-5.2.6/configure.in
+@@ -58,6 +58,8 @@ AC_DEFUN([PHP_EXT_DIR],[ext/$1])dnl
+ AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir/ext/$1])dnl
+ AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
+
++AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU C Library extensions])
++
+ dnl Setting up the PHP version based on the information above.
+ dnl -------------------------------------------------------------------------
+
+--- php-5.2.6/ext/interbase/interbase.c.gnusrc
++++ php-5.2.6/ext/interbase/interbase.c
+@@ -24,7 +24,6 @@
+ #include "config.h"
+ #endif
+
+-#define _GNU_SOURCE
+
+ #include "php.h"
+
+--- php-5.2.6/ext/pdo_firebird/firebird_driver.c.gnusrc
++++ php-5.2.6/ext/pdo_firebird/firebird_driver.c
+@@ -22,7 +22,6 @@
+ #include "config.h"
+ #endif
+
+-#define _GNU_SOURCE
+
+ #include "php.h"
+ #include "php_ini.h"
+--- php-5.2.6/ext/standard/file.c.gnusrc
++++ php-5.2.6/ext/standard/file.c
+@@ -118,7 +118,6 @@ php_file_globals file_globals;
+
+ #ifdef HAVE_FNMATCH
+ #ifndef _GNU_SOURCE
+-#define _GNU_SOURCE
+ #endif
+ #include <fnmatch.h>
+ #endif
+--- php-5.2.6/ext/zlib/zlib_fopen_wrapper.c.gnusrc
++++ php-5.2.6/ext/zlib/zlib_fopen_wrapper.c
+@@ -19,7 +19,6 @@
+
+ /* $Id$ */
+
+-#define _GNU_SOURCE
+
+ #include "php.h"
+ #include "php_zlib.h"
+--- php-5.2.6/main/php.h.gnusrc
++++ php-5.2.6/main/php.h
+@@ -30,6 +30,7 @@
+ #define PHP_HAVE_STREAMS
+ #define YYDEBUG 0
+
++#include "php_config.h"
+ #include "php_version.h"
+ #include "zend.h"
+ #include "zend_qsort.h"
+--- php-5.2.6/main/streams/cast.c.gnusrc
++++ php-5.2.6/main/streams/cast.c
+@@ -18,7 +18,6 @@
+
+ /* $Id$ */
+
+-#define _GNU_SOURCE
+ #include "php.h"
+ #include "php_globals.h"
+ #include "php_network.h"
+--- php-5.2.6/main/streams/memory.c.gnusrc
++++ php-5.2.6/main/streams/memory.c
+@@ -18,7 +18,6 @@
+
+ /* $Id$ */
+
+-#define _GNU_SOURCE
+ #include "php.h"
+
+ PHPAPI int php_url_decode(char *str, int len);
+--- php-5.2.6/main/streams/streams.c.gnusrc
++++ php-5.2.6/main/streams/streams.c
+@@ -21,7 +21,6 @@
+
+ /* $Id$ */
+
+-#define _GNU_SOURCE
+ #include "php.h"
+ #include "php_globals.h"
+ #include "php_network.h"
+--- php-5.2.6/Zend/zend_language_parser.c.gnusrc
++++ php-5.2.6/Zend/zend_language_parser.c
+@@ -356,6 +356,8 @@
+ #include "zend_API.h"
+ #include "zend_constants.h"
+
++#include <string.h>
++
+
+ #define YYERROR_VERBOSE
+ #define YYSTYPE znode
diff --git a/php.spec b/php.spec
index ba0f995..2f3729f 100644
--- a/php.spec
+++ b/php.spec
@@ -3,6 +3,8 @@
%define zendver 20060613
%define pdover 20060511
+%define _default_patch_fuzz 2
+
Summary: The PHP HTML-embedded scripting language
Name: php
Version: 5.2.6
@@ -16,7 +18,7 @@ Source1: php.conf
Source2: php.ini
Source3: macros.php
-Patch1: php-5.2.4-gnusrc.patch
+Patch1: php-5.2.6-gnusrc.patch
Patch2: php-4.3.3-install.patch
Patch3: php-5.2.4-norpath.patch
Patch5: php-5.0.2-phpize64.patch
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=179576423620.1.14328720234039805895.rpms-php-3244077310e3@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