[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 48d8f482ebe460afa585e795c2c6a92e3cf0e584

Evergreen Git git at git.evergreen-ils.org
Mon Jun 13 22:58:57 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  48d8f482ebe460afa585e795c2c6a92e3cf0e584 (commit)
      from  fdd5c02aec0d65bca81df1ccf9e3746ccde6cd06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 48d8f482ebe460afa585e795c2c6a92e3cf0e584
Author: Dan Scott <dan at coffeecode.net>
Date:   Mon Jun 13 22:54:27 2011 -0400

    Resolve Squeeze installation problems with PostgreSQL 9.0
    
    When you install OpenSRF on Debian Squeeze, one of the packages
    (apache2-prefork-dev) installs 8.4 versions of libpq5 and libpq-dev as
    dependencies. These conflict with the 9.0 versions that are required as
    dependencies for PostgreSQL 9.0 - so get them out of the way, pin the
    9.0 versions of the packages, and reinstall apache2-prefork-dev.
    
    We will probably need to do something similar for Lucid.
    
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install
index dc8d844..18752c2 100644
--- a/Open-ILS/src/extras/Makefile.install
+++ b/Open-ILS/src/extras/Makefile.install
@@ -52,6 +52,7 @@ PAY_ONLINE=Business-OnlinePayment-3.00_08.tar.gz
 PAY_ONLINE_HOST=http://ftp.perl.org/pub/CPAN/authors/id/I/IV/IVAN/
 
 APT_TOOL=aptitude -yq
+APT_BACKPORT_TOOL=aptitude -t squeeze-backports -yq
 
 # 64 or 32 bit os?
 LBITS=$(shell getconf LONG_BIT)
@@ -201,7 +202,9 @@ PGSQL_90_RPMS = \
 	postgresql90-server
 
 PGSQL_CLIENT_DEBS_90 = \
-	postgresql-client
+	libpq5 \
+	libpq-dev \
+	postgresql-client-9.0
 
 PGSQL_SERVER_DEBS_90 = \
 	postgresql-9.0 \
@@ -362,11 +365,17 @@ debian_sys_config:
 install_debs:
 	$(APT_TOOL) install $(DEBS)
 
+# libpq5 / libpq-dev get installed as part of OpenSRF (a dependency
+# of apache2-prefork-dev), but these are the 8.4 versions and they
+# conflict with the 9.0 versions - so remove them, install the pinned
+# backports of 9.0, then reinstall the apache2-prefork-dev package
 install_pgsql_client_debs_90:
-	$(APT_TOOL) install $(PGSQL_CLIENT_DEBS_90)
+	$(APT_TOOL) remove libpq5 libpq-dev
+	$(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_90)
+	$(APT_TOOL) install apache2-prefork-dev
 
 install_pgsql_server_debs_90:
-	$(APT_TOOL) install $(PGSQL_SERVER_DEBS_90)
+	$(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_90)
 
 # Install the debian-specific dependencies for more modern distros
 install_extra_debs_squeeze: install_extra_debs

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/extras/Makefile.install |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list