Fix build breakage on PPC due to incorrect configure test

This commit is contained in:
Tom Lane 2008-04-28 23:00:55 +00:00
parent 3a834ad97f
commit f6af6c0fb9
2 changed files with 37 additions and 1 deletions

30
postgresql-xslt.patch Normal file
View File

@ -0,0 +1,30 @@
This patch is needed to build successfully on PPC, where the linker is
evidently pickier about functions vs variables than on other Fedora
platforms. Note it is already committed upstream, so we won't need it
in postgres 8.3.2 and later.
Index: configure.in
===================================================================
RCS file: /cvsroot/pgsql/configure.in,v
retrieving revision 1.546.2.3
diff -c -r1.546.2.3 configure.in
*** configure.in 14 Mar 2008 03:23:22 -0000 1.546.2.3
--- configure.in 28 Apr 2008 22:41:54 -0000
***************
*** 795,801 ****
fi
if test "$with_libxslt" = yes ; then
! AC_CHECK_LIB(xslt, xsltLibxmlVersion, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
fi
# for contrib/uuid-ossp
--- 795,801 ----
fi
if test "$with_libxslt" = yes ; then
! AC_CHECK_LIB(xslt, xsltCleanupGlobals, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
fi
# for contrib/uuid-ossp

View File

@ -82,7 +82,7 @@
Summary: PostgreSQL client programs and libraries Summary: PostgreSQL client programs and libraries
Name: postgresql Name: postgresql
Version: 8.3.1 Version: 8.3.1
Release: 2%{?dist} Release: 3%{?dist}
License: BSD License: BSD
Group: Applications/Databases Group: Applications/Databases
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
@ -108,6 +108,7 @@ Patch4: postgresql-test.patch
Patch5: pgtcl-no-rpath.patch Patch5: pgtcl-no-rpath.patch
Patch6: postgresql-perl-rpath.patch Patch6: postgresql-perl-rpath.patch
Patch8: postgresql-prefer-ncurses.patch Patch8: postgresql-prefer-ncurses.patch
Patch9: postgresql-xslt.patch
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex autoconf gawk BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex autoconf gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -353,6 +354,7 @@ system, including regression tests and benchmarks.
# patch5 is applied later # patch5 is applied later
%patch6 -p1 %patch6 -p1
%patch8 -p1 %patch8 -p1
%patch9 -p0
#call autoconf 2.53 or greater #call autoconf 2.53 or greater
%aconfver %aconfver
@ -841,6 +843,10 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
- Fix build breakage on PPC due to incorrect configure test
Related: #444317
* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2 * Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2
- Clean up cross-subpackage Requires: to ensure that updating any one - Clean up cross-subpackage Requires: to ensure that updating any one
subpackage brings in the matching versions of others. subpackage brings in the matching versions of others.