Accepting request 71245 from home:namtrac:branches:server:database:postgresql

Add postgresql-9.0.4-perl514.patch: For Perl 5.14 GvCV(sv) is no longer an lvalue and needs to be replaced by GvCV_set(sv, value) 

About patch naming please see http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Patch_naming , its recommended that package version is in the patch name.

OBS-URL: https://build.opensuse.org/request/show/71245
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=55
This commit is contained in:
Reinhard Max 2011-05-25 13:04:26 +00:00 committed by Git OBS Bridge
parent bcb86aa1e7
commit 0af2f722cc
6 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,23 @@
--- postgresql-9.0.4/src/pl/plperl/plperl.c 2011-04-15 05:15:53.000000000 +0200
+++ postgresql-9.0.4/src/pl/plperl/plperl.c 2011-05-25 10:01:08.543018259 +0200
@@ -874,7 +874,7 @@
if (!isGV_with_GP(sv) || !GvCV(sv))
continue;
SvREFCNT_dec(GvCV(sv)); /* free the CV */
- GvCV(sv) = NULL; /* prevent call via GV */
+ GvCV_set(sv, NULL); /* prevent call via GV */
}
hv_clear(stash);
--- postgresql-9.0.4/src/pl/plperl/plperl.h 2011-04-15 05:15:53.000000000 +0200
+++ postgresql-9.0.4/src/pl/plperl/plperl.h 2011-05-25 10:12:02.358018289 +0200
@@ -53,6 +53,8 @@
void plperl_spi_freeplan(char *);
void plperl_spi_cursor_close(char *);
-
+#ifndef GvCV_set
+# define GvCV_set(gv, cv) (GvCV(gv)=(cv))
+#endif
#endif /* PL_PERL_H */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 25 08:06:44 UTC 2011 - idonmez@novell.com
- Add postgresql-9.0.4-perl514.patch: For Perl 5.14 GvCV(sv) is no
longer an lvalue and needs to be replaced by GvCV_set(sv, value)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 21 10:06:45 UTC 2011 - max@novell.com Thu Apr 21 10:06:45 UTC 2011 - max@novell.com

View File

@ -45,6 +45,8 @@ Patch1: postgresql-conf.patch
Patch2: postgresql-regress.patch Patch2: postgresql-regress.patch
Patch3: postgresql-sle10-timestamptz.patch Patch3: postgresql-sle10-timestamptz.patch
Patch4: postgresql-plperl.patch Patch4: postgresql-plperl.patch
# PATCH-FIX-UPSTREAM postgresql-9.0.4-perl514.patch idoenmez@suse.de -- Fix compilation with Perl 5.14
Patch5: postgresql-9.0.4-perl514.patch
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql = %pg_minor_version Provides: postgresql = %pg_minor_version
@ -123,6 +125,7 @@ which will interact with a PostgreSQL server.
%patch3 -p1 %patch3 -p1
%endif %endif
%patch4 %patch4
%patch5 -p1
%build %build
export CFLAGS="%optflags $SP" export CFLAGS="%optflags $SP"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 25 08:06:44 UTC 2011 - idonmez@novell.com
- Add postgresql-9.0.4-perl514.patch: For Perl 5.14 GvCV(sv) is no
longer an lvalue and needs to be replaced by GvCV_set(sv, value)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 21 10:06:45 UTC 2011 - max@novell.com Thu Apr 21 10:06:45 UTC 2011 - max@novell.com

View File

@ -52,6 +52,8 @@ Patch1: postgresql-conf.patch
Patch2: postgresql-regress.patch Patch2: postgresql-regress.patch
Patch3: postgresql-sle10-timestamptz.patch Patch3: postgresql-sle10-timestamptz.patch
Patch4: postgresql-plperl.patch Patch4: postgresql-plperl.patch
# PATCH-FIX-UPSTREAM postgresql-9.0.4-perl514.patch idoenmez@suse.de -- Fix compilation with Perl 5.14
Patch5: postgresql-9.0.4-perl514.patch
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql = %pg_minor_version Provides: postgresql = %pg_minor_version
@ -245,6 +247,7 @@ and triggers.
%patch3 -p1 %patch3 -p1
%endif %endif
%patch4 %patch4
%patch5 -p1
%build %build
export CFLAGS="%optflags $SP" export CFLAGS="%optflags $SP"

View File

@ -54,6 +54,8 @@ Patch1: postgresql-conf.patch
Patch2: postgresql-regress.patch Patch2: postgresql-regress.patch
Patch3: postgresql-sle10-timestamptz.patch Patch3: postgresql-sle10-timestamptz.patch
Patch4: postgresql-plperl.patch Patch4: postgresql-plperl.patch
# PATCH-FIX-UPSTREAM postgresql-9.0.4-perl514.patch idoenmez@suse.de -- Fix compilation with Perl 5.14
Patch5: postgresql-9.0.4-perl514.patch
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql = %pg_minor_version Provides: postgresql = %pg_minor_version
@ -251,6 +253,7 @@ FI_POSTGRES
%patch3 -p1 %patch3 -p1
%endif %endif
%patch4 %patch4
%patch5 -p1
%build %build
export CFLAGS="%optflags $SP" export CFLAGS="%optflags $SP"