From b84f5e7348fce92009e4c4fa4c757e73cd596d9d Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Thu, 30 Mar 2006 14:15:55 +0000 Subject: [PATCH] - PPC patch to build the postgresql module on ppc --- ser-0.9.6-ppc.patch | 19 +++++++++++++++++++ ser.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ser-0.9.6-ppc.patch diff --git a/ser-0.9.6-ppc.patch b/ser-0.9.6-ppc.patch new file mode 100644 index 0000000..9249a60 --- /dev/null +++ b/ser-0.9.6-ppc.patch @@ -0,0 +1,19 @@ +--- ser-0.9.6/modules/postgres/aug_sysdep.h.orig 2006-03-30 16:07:32.113066656 +0200 ++++ ser-0.9.6/modules/postgres/aug_sysdep.h 2006-03-30 16:05:31.611385696 +0200 +@@ -225,6 +225,16 @@ + typedef unsigned int augUInt32; + + #endif /* x86-64 */ ++ ++#if defined(__powerpc) ++ ++#if defined(__GNUC__) ++#define AUG_CONFIGURATION "Linux PowerPC with GCC" ++#endif ++ ++typedef unsigned int augUInt32; ++ ++#endif /* PowerPC */ + #endif /* linux */ + + /* diff --git a/ser.spec b/ser.spec index 8e96946..7432d25 100644 --- a/ser.spec +++ b/ser.spec @@ -4,7 +4,7 @@ Summary: SIP Express Router Name: ser Version: 0.9.6 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL Group: System Environment/Daemons Source0: http://ftp.iptel.org/pub/ser/latest/src/ser-%{version}_src.tar.gz @@ -12,6 +12,7 @@ Source1: ftp://ftp.berlios.de/pub/ser/latest/contrib/serweb-%{serweb_version}.ta Source2: serweb.conf Source3: ser.init Patch0: serweb-path.patch +Patch1: ser-0.9.6-ppc.patch URL: http://www.iptel.org/ser/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: expat-devel, libxml2-devel, mysql-devel, postgresql-devel @@ -66,6 +67,7 @@ SERWEB is web toolbox for SIP Express Router (ser). It can be used for: %setup -q %setup -q -a 1 %patch0 -p1 -b .path +%patch1 -p1 -b .ppc # Enable SQL support for the acc module sed -i -e 's/#DEFS+=-DSQL_ACC/DEFS+=-DSQL_ACC/' modules/acc/Makefile @@ -199,6 +201,9 @@ fi %config(noreplace) %{_sysconfdir}/httpd/conf.d/serweb.conf %changelog +* Thu Mar 30 2006 Andreas Thienemann 0.9.6-3 +- PPC patch to build the postgresql module on ppc + * Tue Mar 28 2006 Andreas Thienemann 0.9.6-2 - Changes to the spec-file, to conform to FE policies.