summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-07-13 05:47:47 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-07-13 05:47:47 +0000
commit1c8ccb422819f7a375dc82bc8dffee644aa4dabf (patch)
tree2c4e43a597a161f08dafc9fb9d2b56e10d628cf2 /dev-cpp/libpqpp
parentAdded to ~amd64 (diff)
downloadhistorical-1c8ccb422819f7a375dc82bc8dffee644aa4dabf.tar.gz
historical-1c8ccb422819f7a375dc82bc8dffee644aa4dabf.tar.bz2
historical-1c8ccb422819f7a375dc82bc8dffee644aa4dabf.zip
Added PIC patch. Added to ~sparc and ~amd64
Diffstat (limited to 'dev-cpp/libpqpp')
-rw-r--r--dev-cpp/libpqpp/ChangeLog6
-rw-r--r--dev-cpp/libpqpp/Manifest11
-rw-r--r--dev-cpp/libpqpp/files/libpqpp-4.0-PIC.patch21
-rw-r--r--dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild5
4 files changed, 35 insertions, 8 deletions
diff --git a/dev-cpp/libpqpp/ChangeLog b/dev-cpp/libpqpp/ChangeLog
index d9a26e28cb53..563746fa8c49 100644
--- a/dev-cpp/libpqpp/ChangeLog
+++ b/dev-cpp/libpqpp/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-cpp/libpqpp
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/ChangeLog,v 1.8 2004/06/29 14:58:06 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/ChangeLog,v 1.9 2004/07/13 05:47:47 eradicator Exp $
+
+ 12 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ +files/libpqpp-4.0-PIC.patch:
+ Added PIC patch. Added to ~sparc and ~amd64
29 Jun 2004; Aron Griffis <agriffis@gentoo.org> libpqpp-4.0-r1.ebuild,
libpqpp-4.0-r2.ebuild, libpqpp-4.0-r3.ebuild, libpqpp-4.0-r4.ebuild:
diff --git a/dev-cpp/libpqpp/Manifest b/dev-cpp/libpqpp/Manifest
index 9a58f54b63d1..7c5e8af6637c 100644
--- a/dev-cpp/libpqpp/Manifest
+++ b/dev-cpp/libpqpp/Manifest
@@ -1,11 +1,12 @@
-MD5 14883dc5afd4ca5ac6bd5e9d66a2c5ac libpqpp-4.0-r3.ebuild 1213
-MD5 bd9b56bb3c58a038bc3cd1779aec5286 libpqpp-4.0-r2.ebuild 1149
-MD5 a97f1b9f7f33c0899ba36b475b86476d libpqpp-4.0-r4.ebuild 1166
+MD5 10cc515444d39daf5787b20f1c9bb03c ChangeLog 1758
MD5 d078373220676536198ceb5952baf584 libpqpp-4.0-r1.ebuild 1010
-MD5 c01d6f1b1c72b2a270e1c60ebac768a9 ChangeLog 1619
+MD5 bd9b56bb3c58a038bc3cd1779aec5286 libpqpp-4.0-r2.ebuild 1149
+MD5 14883dc5afd4ca5ac6bd5e9d66a2c5ac libpqpp-4.0-r3.ebuild 1213
+MD5 c0808029031b011a816075340f86af41 libpqpp-4.0-r4.ebuild 1217
MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
-MD5 530daffcb76569636aa08cb163318b88 files/libpqpp-4.0-gentoo.patch 3559
MD5 312b07ad4bf840d75840b7410d48f268 files/digest-libpqpp-4.0-r1 62
MD5 312b07ad4bf840d75840b7410d48f268 files/digest-libpqpp-4.0-r2 62
MD5 312b07ad4bf840d75840b7410d48f268 files/digest-libpqpp-4.0-r3 62
MD5 312b07ad4bf840d75840b7410d48f268 files/digest-libpqpp-4.0-r4 62
+MD5 530daffcb76569636aa08cb163318b88 files/libpqpp-4.0-gentoo.patch 3559
+MD5 69fc4a69b78cb8cf9b4f69bb49e71363 files/libpqpp-4.0-PIC.patch 941
diff --git a/dev-cpp/libpqpp/files/libpqpp-4.0-PIC.patch b/dev-cpp/libpqpp/files/libpqpp-4.0-PIC.patch
new file mode 100644
index 000000000000..173796869be6
--- /dev/null
+++ b/dev-cpp/libpqpp/files/libpqpp-4.0-PIC.patch
@@ -0,0 +1,21 @@
+diff -Naur libpq++-4.0.orig/Makefile libpq++-4.0/Makefile
+--- libpq++-4.0.orig/Makefile 2002-11-26 20:46:08.000000000 -0800
++++ libpq++-4.0/Makefile 2004-07-12 22:42:41.293567000 -0700
+@@ -20,7 +20,7 @@
+ OBJS= pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o
+ LIBPGXXHEADERS = pgconnection.h pgdatabase.h pgtransdb.h pgcursordb.h pglobject.h
+
+-SHARED= -fpic -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION) -Wl,-rpath,$(POSTGRES_HOME)/lib
++SHARED= -fPIC -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION) -Wl,-rpath,$(POSTGRES_HOME)/lib
+ soname=$(TARGET).so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+
+ all: $(soname)
+@@ -29,7 +29,7 @@
+ $(CXX) $(CXXFLAGS) $(OBJS) -L$(POSTGRES_HOME)/lib -l$(LIBS) $(SHARED) -o $(soname)
+
+ %.o : %.cc
+- $(CXX) -c $(CXXFLAGS) $(CXXOPTS) -I$(POSTGRES_HOME)/include $<
++ $(CXX) -c $(CXXFLAGS) $(CXXOPTS) -I$(POSTGRES_HOME)/include $< -fPIC -DPIC
+
+ clean:
+ rm -f $(OBJS) $(soname)
diff --git a/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild b/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild
index 0ac40cfac76b..9f4085d41bfb 100644
--- a/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild
+++ b/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild,v 1.6 2004/06/29 14:58:06 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libpqpp/libpqpp-4.0-r4.ebuild,v 1.7 2004/07/13 05:47:47 eradicator Exp $
inherit eutils
IUSE=""
@@ -10,7 +10,7 @@ HOMEPAGE="http://gborg.postgresql.org/"
SRC_URI="ftp://gborg.postgresql.org/pub/libpqpp/stable/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="x86"
+KEYWORDS="x86 ~amd64 ~sparc"
DEPEND="virtual/libc >=dev-db/postgresql-7.3
>=sys-apps/sed-4"
@@ -21,6 +21,7 @@ src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
+ epatch ${FILESDIR}/${P}-PIC.patch
}
src_compile() {