[postgresql-plruby/el6] Fixed included files to avoid FTBFS

Jan Horak hhorak at fedoraproject.org
Wed Mar 21 14:13:31 UTC 2012


commit 93878cb9970e39601099a3804c6cfcd4ea40d765
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Wed Mar 21 15:13:16 2012 +0100

    Fixed included files to avoid FTBFS

 plruby-include.patch   |   12 ++++++++++++
 postgresql-plruby.spec |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/plruby-include.patch b/plruby-include.patch
new file mode 100644
index 0000000..9db354c
--- /dev/null
+++ b/plruby-include.patch
@@ -0,0 +1,12 @@
+diff -up plruby-0.5.3/src/plruby.h.include plruby-0.5.3/src/plruby.h
+--- plruby-0.5.3/src/plruby.h.include	2007-12-26 16:58:02.000000000 +0100
++++ plruby-0.5.3/src/plruby.h	2012-03-21 14:07:37.116579061 +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 867ea19..e64a204 100644
--- a/postgresql-plruby.spec
+++ b/postgresql-plruby.spec
@@ -4,7 +4,7 @@
 Summary:	PostgreSQL Ruby Procedural Language
 Name:		postgresql-%{sname}
 Version:	0.5.3
-Release:	3%{?dist}
+Release:	4%{?dist}
 Source0:	ftp://moulon.inra.fr/pub/ruby/%{sname}-%{version}.tar.gz
 License:	Ruby or GPL+
 Group:		Applications/Databases
@@ -13,6 +13,8 @@ Url:		http://raa.ruby-lang.org/project/pl-ruby/
 BuildRequires:	ruby >= 1.8 ruby-devel >= 1.8 postgresql-devel >= 8.1
 Requires:	postgresql-libs, ruby(abi) = 1.8
 
+Patch0:		plruby-include.patch
+
 %description
 PL/Ruby is a loadable procedural language for the PostgreSQL database
 system that enable the Ruby language to create functions and trigger 
@@ -28,6 +30,7 @@ Documentation for plruby.
 
 %prep
 %setup -q -n %{sname}-%{version}
+%patch0 -p1 -b .include
 
 unset FILE
 for f in %{_includedir}/pg_config_*.h
@@ -64,6 +67,9 @@ rm -rf %{buildroot}
 %doc docs/plruby.rb
 
 %changelog
+* Wed Mar 21 2012 Honza Horak <hhorak at redhat.com> - 0.5.3-4
+- Fixed included files to avoid FTBFS
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


More information about the scm-commits mailing list