[postgresql-plruby] Included postgres.h

Jan Horak hhorak at fedoraproject.org
Wed Mar 21 07:48:53 UTC 2012


commit 9b834aa9a882944b7bef281cac8e07217fc1b53f
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Wed Mar 21 08:42:10 2012 +0100

    Included postgres.h

 postgresql-plruby-headers.patch |   12 ++++++++++++
 postgresql-plruby.spec          |    3 +++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/postgresql-plruby-headers.patch b/postgresql-plruby-headers.patch
new file mode 100644
index 0000000..599ba3d
--- /dev/null
+++ b/postgresql-plruby-headers.patch
@@ -0,0 +1,12 @@
+diff -up plruby-0.5.3/src/plruby.h.debug plruby-0.5.3/src/plruby.h
+--- plruby-0.5.3/src/plruby.h.debug	2007-12-26 16:58:02.000000000 +0100
++++ plruby-0.5.3/src/plruby.h	2012-02-15 17:17:32.650551398 +0100
+@@ -2,6 +2,8 @@
+ #include <fcntl.h>
+ #include <setjmp.h>
+ 
++#include "postgres.h"
++
+ #include "executor/spi.h"
+ #include "commands/trigger.h"
+ #include "utils/elog.h"
diff --git a/postgresql-plruby.spec b/postgresql-plruby.spec
index d6a1bcd..b8e2db3 100644
--- a/postgresql-plruby.spec
+++ b/postgresql-plruby.spec
@@ -13,6 +13,7 @@ BuildRequires:	ruby >= 1.8 ruby-devel >= 1.8 postgresql-devel >= 8.1
 Requires:	postgresql-libs, ruby(abi) = 1.9.1
 
 Patch0: postgresql-plruby-bitopers.patch
+Patch1: postgresql-plruby-headers.patch
 
 %description
 PL/Ruby is a loadable procedural language for the PostgreSQL database
@@ -30,6 +31,7 @@ Documentation for plruby.
 %prep
 %setup -q -n %{sname}-%{version}
 %patch0 -p1 -b .biopers
+%patch1 -p1 -b .headers
 
 unset FILE
 for f in %{_includedir}/pg_config_*.h
@@ -69,6 +71,7 @@ rm -rf %{buildroot}
 * Wed Mar 21 2012 Honza Horak <hhorak at redhat.com> - 0.5.3-6
 - Packaging changes for new ruby-1.9
 - Reflected a name change of and/or bit operand functions in Postgresql
+- Included postgres.h
 
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list