[csw-devel] SF.net SVN: gar:[19866] csw/mgar/pkg/postgresql/branches/postgresql-9.1

guengel at users.sourceforge.net guengel at users.sourceforge.net
Sun Dec 9 15:08:38 CET 2012


Revision: 19866
          http://gar.svn.sourceforge.net/gar/?rev=19866&view=rev
Author:   guengel
Date:     2012-12-09 14:08:37 +0000 (Sun, 09 Dec 2012)
Log Message:
-----------
postgresql/branches/postgresql-9.1: New upstream release. Fixed bug 5025 (https://www.opencsw.org/mantis/view.php?id=5025)

Modified Paths:
--------------
    csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile
    csw/mgar/pkg/postgresql/branches/postgresql-9.1/checksums
    csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/changelog.CSW

Added Paths:
-----------
    csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/0004-Filter-out-compiler-optimization-for-pg_config.patch

Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile	2012-12-09 14:07:45 UTC (rev 19865)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile	2012-12-09 14:08:37 UTC (rev 19866)
@@ -90,7 +90,7 @@
 BASE_VERSION = 9.1
 VERSION_NODOT = $(subst .,_,$(BASE_VERSION))
 BASE_VERSION_NODOT = $(subst .,,$(BASE_VERSION))
-PATCHLEVEL = 6
+PATCHLEVEL = 7
 VERSION = $(BASE_VERSION).$(PATCHLEVEL)
 CATEGORIES = apps
 GARTYPE = v2
@@ -276,6 +276,8 @@
 # By default, src/makefiles/Makefile.solaris uses -Wl,-R'$(rpathdir)'
 # which isn't properly digested by Sun's ld
 PATCHFILES += 0000-Use-plain-rpath.patch
+# Please see comment in the patch.
+PATCHFILES += 0004-Filter-out-compiler-optimization-for-pg_config.patch
 
 INITSMF = $(sysconfdir)/init\.d/$(INITSCRIPTFILE_VERSIONED)
 USERGROUP = $(USERGROUPDIR)/$(USERGROUPFILE_VERSIONED)

Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.1/checksums
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1/checksums	2012-12-09 14:07:45 UTC (rev 19865)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1/checksums	2012-12-09 14:08:37 UTC (rev 19866)
@@ -1 +1 @@
-000755f66c0de58bbd4cd2b89b45b8e2  postgresql-9.1.6.tar.bz2
+eaf7b67493d59d1a60767ffdfbd65ce9  postgresql-9.1.7.tar.bz2

Added: csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/0004-Filter-out-compiler-optimization-for-pg_config.patch
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/0004-Filter-out-compiler-optimization-for-pg_config.patch	                        (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/0004-Filter-out-compiler-optimization-for-pg_config.patch	2012-12-09 14:08:37 UTC (rev 19866)
@@ -0,0 +1,49 @@
+From 296c0619ac60d01ae5cf7207dd51794671c98a15 Mon Sep 17 00:00:00 2001
+From: Rafael Ostertag <raos at opencsw.org>
+Date: Sun, 9 Dec 2012 13:53:33 +0100
+Subject: [PATCH] Filter out compiler optimization for pg_config
+
+For more information, see comments in this patch and
+https://www.opencsw.org/mantis/view.php?id=5025
+---
+ src/bin/pg_config/Makefile | 16 ++++++++++++++--
+ 1 file changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/src/bin/pg_config/Makefile b/src/bin/pg_config/Makefile
+index b9ca579..7840d04 100644
+--- a/src/bin/pg_config/Makefile
++++ b/src/bin/pg_config/Makefile
+@@ -8,6 +8,18 @@
+ #
+ #-------------------------------------------------------------------------
+ 
++# pg_config has CFLAGS and LDFLAGS hardcoded, including compiler optimization.
++# This doesn't pan out if PostgreSQL is compiled with compiler A, but
++# pg_config is called to compile software with compiler B. So, we filter out
++# known compiler optimization flags (SunStudio and GCC, so far).
++#
++# This var holds all the compiler optimizations that will be filtered out.
++# Please be aware, that this filtering has only been tested with GMAKE.
++#
++# See also
++#  https://www.opencsw.org/mantis/view.php?id=5025
++__compiler_opts = -march=% -mtune=% -xchip=% -xarch=% -xO%
++
+ PGFILEDESC = "pg_config - report configuration information"
+ PGAPPICON=win32
+ 
+@@ -24,9 +36,9 @@ STD_LDFLAGS := $(filter-out -L$(top_builddir)/src/port,$(LDFLAGS))
+ override CPPFLAGS += -DVAL_CONFIGURE="\"$(configure_args)\""
+ override CPPFLAGS += -DVAL_CC="\"$(CC)\""
+ override CPPFLAGS += -DVAL_CPPFLAGS="\"$(STD_CPPFLAGS)\""
+-override CPPFLAGS += -DVAL_CFLAGS="\"$(CFLAGS)\""
++override CPPFLAGS += -DVAL_CFLAGS="\"$(filter-out $(__compiler_opts),$(CFLAGS))\""
+ override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\""
+-override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\""
++override CPPFLAGS += -DVAL_LDFLAGS="\"$(filter-out $(__compiler_opts),$(STD_LDFLAGS))\""
+ override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\""
+ override CPPFLAGS += -DVAL_LDFLAGS_SL="\"$(LDFLAGS_SL)\""
+ override CPPFLAGS += -DVAL_LIBS="\"$(LIBS)\""
+-- 
+1.8.0
+

Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/changelog.CSW	2012-12-09 14:07:45 UTC (rev 19865)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1/files/changelog.CSW	2012-12-09 14:08:37 UTC (rev 19866)
@@ -1,3 +1,13 @@
+postgresql91 (9.1.7,REV=2012.12.09)
+
+  * New upstream release 9.1.7.
+
+  * pg_config: do not emit compiler optimization flags (see
+	       https://www.opencsw.org/mantis/view.php?id=5025)
+
+ -- Rafael Ostertag <raos at opencsw.org>  Sun, 09 Dec 2012 10:02:08 +0100
+
+
 postgresql91 (9.1.6,REV=2012.10.03)
 
   * New upstream release 9.1.6.
@@ -18,7 +28,7 @@
 
   * Dropped support for Solaris 9
 
-  * Include changelog.CSW in all packages, thus removing the clustering of 
+  * Include changelog.CSW in all packages, thus removing the clustering of
     changelog.CSW files in CSWpostgresql
 
  -- Rafael Ostertag <raos at opencsw.org>  Wed, 13 June 2012 15:46:57+0200

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list