[csw-devel] SF.net SVN: gar:[16636] csw/mgar/pkg/postgresql/branches/postgresql-8. 3-raos
guengel at users.sourceforge.net
guengel at users.sourceforge.net
Sun Jan 1 13:01:37 CET 2012
Revision: 16636
http://gar.svn.sourceforge.net/gar/?rev=16636&view=rev
Author: guengel
Date: 2012-01-01 12:01:36 +0000 (Sun, 01 Jan 2012)
Log Message:
-----------
postgresql/branches/postgresql-8.3-raos: Fixed LDFLAGS output of pg_config. Included libpgport.a which is required when using pg_config.
Modified Paths:
--------------
csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/Makefile
Added Paths:
-----------
csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/0000-Use-plain-rpath.patch
Modified: csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/Makefile 2011-12-31 22:14:45 UTC (rev 16635)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/Makefile 2012-01-01 12:01:36 UTC (rev 16636)
@@ -216,6 +216,9 @@
# Test running on a NFS may fail. Thus we let the test run in
# /var/tmp/pgsql/tmp_check
PATCHFILES += 0002-Run-tests-in-var-tmp-pgsql-tmp_check.patch
+# 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
INITSMF = $(sysconfdir)/init\.d/$(INITSCRIPTFILE_VERSIONED)
USERGROUP = $(USERGROUPDIR)/$(USERGROUPFILE_VERSIONED)
@@ -324,6 +327,8 @@
PKGFILES_CSW$(NAME)-dev += .*/alternatives/$(NAME)_dev.*
PKGFILES_CSW$(NAME)-dev += .*/CSW$(NAME)-dev.postmsg
PKGFILES_CSW$(NAME)-dev += .*$(docdir)/$(NAME)_dev/README.CSW
+# See `post-merge-modulated:'
+PKGFILES_CSW$(NAME)-dev += .*/libpgport\.a$
RUNTIME_DEP_PKGS_CSW$(NAME)-dev += CSWlibecpg-compat3
RUNTIME_DEP_PKGS_CSW$(NAME)-dev += CSWlibecpg6
RUNTIME_DEP_PKGS_CSW$(NAME)-dev += CSWlibpq5
@@ -475,6 +480,16 @@
$(INSTALL_ENV) gmake -C $(WORKSRC)/contrib DESTDIR=$(DESTDIR) install
@$(MAKECOOKIE)
+# We suck in the libpgport.a since pg_config is emitting
+# -lpgport. Unfortunately, there is no shared lib version, and I'm too
+# lazzy to adjust the build system to generate one...
+post-merge-modulated:
+ifeq ($(ISA),$(ISA_DEFAULT64))
+ ginstall $(WORKSRC)/src/port/libpgport.a $(PKGROOT)/$(libpath_install)/$(ISA_DEFAULT64)/
+else
+ ginstall $(WORKSRC)/src/port/libpgport.a $(PKGROOT)/$(libdir)/
+endif
+
post-merge: $(foreach n,$(POSTMSG),$(PKGROOT)/$(n)) test-installation
# Create my alternatives files. Development alternatives have stripped
# off the version
Added: csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/0000-Use-plain-rpath.patch
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/0000-Use-plain-rpath.patch (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/0000-Use-plain-rpath.patch 2012-01-01 12:01:36 UTC (rev 16636)
@@ -0,0 +1,25 @@
+From ea3087bf5e1a881624e84233f9b1d6f48e141c76 Mon Sep 17 00:00:00 2001
+From: Rafael Ostertag <rafisol at opencsw.org>
+Date: Sun, 1 Jan 2012 12:41:52 +0100
+Subject: [PATCH] Use plain rpath
+
+---
+ src/makefiles/Makefile.solaris | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/makefiles/Makefile.solaris b/src/makefiles/Makefile.solaris
+index 79c92bc..00358f1 100644
+--- a/src/makefiles/Makefile.solaris
++++ b/src/makefiles/Makefile.solaris
+@@ -6,7 +6,7 @@ ifeq ($(with_gnu_ld), yes)
+ export_dynamic = -Wl,-E
+ rpath = -Wl,-rpath,'$(rpathdir)'
+ else
+-rpath = -Wl,-R'$(rpathdir)'
++rpath = -R$(rpathdir)
+ endif
+
+ DLSUFFIX = .so
+--
+1.7.6.1
+
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