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

guengel at users.sourceforge.net guengel at users.sourceforge.net
Sun Dec 9 15:07:45 CET 2012


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

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

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

Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.0/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.0/Makefile	2012-12-09 14:07:16 UTC (rev 19864)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.0/Makefile	2012-12-09 14:07:45 UTC (rev 19865)
@@ -90,7 +90,7 @@
 BASE_VERSION = 9.0
 VERSION_NODOT = $(subst .,_,$(BASE_VERSION))
 BASE_VERSION_NODOT = $(subst .,,$(BASE_VERSION))
-PATCHLEVEL = 10
+PATCHLEVEL = 11
 VERSION = $(BASE_VERSION).$(PATCHLEVEL)
 CATEGORIES = apps
 
@@ -229,6 +229,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.0/checksums
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.0/checksums	2012-12-09 14:07:16 UTC (rev 19864)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.0/checksums	2012-12-09 14:07:45 UTC (rev 19865)
@@ -1 +1 @@
-d2c9ad7267d83ff373cb92eb4807386a  postgresql-9.0.10.tar.bz2
+b6080b9d902126e452249aa750ef10cd  postgresql-9.0.11.tar.bz2

Added: csw/mgar/pkg/postgresql/branches/postgresql-9.0/files/0004-Filter-out-compiler-optimization-for-pg_config.patch
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.0/files/0004-Filter-out-compiler-optimization-for-pg_config.patch	                        (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.0/files/0004-Filter-out-compiler-optimization-for-pg_config.patch	2012-12-09 14:07:45 UTC (rev 19865)
@@ -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.0/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.0/files/changelog.CSW	2012-12-09 14:07:16 UTC (rev 19864)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.0/files/changelog.CSW	2012-12-09 14:07:45 UTC (rev 19865)
@@ -1,3 +1,13 @@
+postgresql90 (9.0.11,REV=2012.12.09)
+
+  * New upstream release 9.0.11.
+
+  * 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
+
+
 postgresql90 (9.0.10,REV=2012.10.02)
 
   * New upstream release 9.0.10.
@@ -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>  Mon, 13 June 2012 07:26: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