Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f78f76f32e2dcd85a55e276706aca0d0526635fa)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f78f76f32e2dcd85a55e276706aca0d0526635fa)
  • Date: Sat, 21 May 2011 13:47:07 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

database/postgresql/HISTORY | 4 ++++
database/postgresql/PRE_BUILD | 2 ++
database/postgresql/perl514.patch | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+)

New commits:
commit f78f76f32e2dcd85a55e276706aca0d0526635fa
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

postgresql: fixed compilation with Perl 5.14

diff --git a/database/postgresql/HISTORY b/database/postgresql/HISTORY
index b4d32b6..d5c9eba 100644
--- a/database/postgresql/HISTORY
+++ b/database/postgresql/HISTORY
@@ -1,3 +1,7 @@
+2011-05-21 Vlad Glagolev <stealth AT sourcemage.org>
+ * PRE_BUILD: apply the patch
+ * perl514.patch: added, to fix compilation with perl 5.14
+
2011-04-21 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 9.0.4

diff --git a/database/postgresql/PRE_BUILD b/database/postgresql/PRE_BUILD
index 2f70e1b..0b1ebea 100755
--- a/database/postgresql/PRE_BUILD
+++ b/database/postgresql/PRE_BUILD
@@ -1,6 +1,8 @@
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&

+patch -p0 < "$SPELL_DIRECTORY/perl514.patch" &&
+
if [[ $PGSQL_CLUSTER == y ]]; then
verify_file 2 &&
zcat "$SOURCE_CACHE/$SOURCE2" | patch -p1
diff --git a/database/postgresql/perl514.patch
b/database/postgresql/perl514.patch
new file mode 100644
index 0000000..2b85ffe
--- /dev/null
+++ b/database/postgresql/perl514.patch
@@ -0,0 +1,35 @@
+*** src/pl/plperl/plperl.c.orig
+--- src/pl/plperl/plperl.c
+***************
+*** 926,932 **** plperl_trusted_init(void)
+ if (!isGV_with_GP(sv) || !GvCV(sv))
+ continue;
+ SvREFCNT_dec(GvCV(sv)); /* free the CV */
+! GvCV(sv) = NULL; /* prevent call via GV */
+ }
+ hv_clear(stash);
+
+--- 926,932 ----
+ if (!isGV_with_GP(sv) || !GvCV(sv))
+ continue;
+ SvREFCNT_dec(GvCV(sv)); /* free the CV */
+! GvCV_set(sv, NULL); /* prevent call via GV */
+ }
+ hv_clear(stash);
+
+*** src/pl/plperl/plperl.h.orig
+--- src/pl/plperl/plperl.h
+***************
+*** 49,54 ****
+--- 49,59 ----
+
(U32)HeKUTF8(he))
+ #endif
+
++ /* supply GvCV_set if it's missing - ppport.h doesn't supply it,
unfortunately */
++ #ifndef GvCV_set
++ #define GvCV_set(gv, cv) (GvCV(gv) = cv)
++ #endif
++
+ /* declare routines from plperl.c for access by .xs files */
+ HV *plperl_spi_exec(char *, int);
+ void plperl_return_next(SV *);



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f78f76f32e2dcd85a55e276706aca0d0526635fa), Vlad Glagolev, 05/21/2011

Archive powered by MHonArc 2.6.24.

Top of Page