summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2006-10-25 16:01:19 +0000
committerMarkus Dittrich <markusle@gentoo.org>2006-10-25 16:01:19 +0000
commitc20bcc32b91b2e7cba6fa6801cf7127c529174bf (patch)
treefba6dab6df6fee468ef05c271051565e8fdd7781 /sci-astronomy
parentStable on sparc (diff)
downloadhistorical-c20bcc32b91b2e7cba6fa6801cf7127c529174bf.tar.gz
historical-c20bcc32b91b2e7cba6fa6801cf7127c529174bf.tar.bz2
historical-c20bcc32b91b2e7cba6fa6801cf7127c529174bf.zip
Fixed compile problems with gcc4 and as-needed LDFLAG (closes bug #152422).
Package-Manager: portage-2.1.2_pre3-r7
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/orsa/ChangeLog8
-rw-r--r--sci-astronomy/orsa/Manifest42
-rw-r--r--sci-astronomy/orsa/files/digest-orsa-0.6.12
-rw-r--r--sci-astronomy/orsa/files/orsa-0.6.1-as-needed.patch12
-rw-r--r--sci-astronomy/orsa/files/orsa-0.6.1-gcc4.patch60
-rw-r--r--sci-astronomy/orsa/orsa-0.6.1.ebuild11
6 files changed, 110 insertions, 25 deletions
diff --git a/sci-astronomy/orsa/ChangeLog b/sci-astronomy/orsa/ChangeLog
index 456deb638569..6603f36ff9f6 100644
--- a/sci-astronomy/orsa/ChangeLog
+++ b/sci-astronomy/orsa/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-astronomy/orsa
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/ChangeLog,v 1.12 2006/06/24 00:02:33 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/ChangeLog,v 1.13 2006/10/25 16:01:19 markusle Exp $
+
+ 25 Oct 2006; Markus Dittrich <markusle@gentoo.org>
+ +files/orsa-0.6.1-as-needed.patch, +files/orsa-0.6.1-gcc4.patch,
+ orsa-0.6.1.ebuild:
+ Fixed compile problems with gcc4 and as-needed LDFLAG
+ (closes bug #152422).
23 Jun 2006; Doug Goldstein <cardoe@gentoo.org> orsa-0.6.1.ebuild:
USE flag qt->qt3/qt4 change
diff --git a/sci-astronomy/orsa/Manifest b/sci-astronomy/orsa/Manifest
index d907cf37c186..744a57314d2b 100644
--- a/sci-astronomy/orsa/Manifest
+++ b/sci-astronomy/orsa/Manifest
@@ -1,26 +1,24 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-DIST orsa-0.6.1.tar.gz 763872
-EBUILD orsa-0.6.1.ebuild 1636 RMD160 d772abd4d5d8c4c1c4e6c5ba7283e3d1ec4d4d0b SHA1 109122f5e1402e1f33d5b97631838a7cf00b68bc SHA256 9822c12c765038d6dc97806de9ed7f318d42e086984727172deab61c07fd260c
-MD5 d17b68405577afeb149c38483be2a99d orsa-0.6.1.ebuild 1636
-RMD160 d772abd4d5d8c4c1c4e6c5ba7283e3d1ec4d4d0b orsa-0.6.1.ebuild 1636
-SHA256 9822c12c765038d6dc97806de9ed7f318d42e086984727172deab61c07fd260c orsa-0.6.1.ebuild 1636
-MISC ChangeLog 3472 RMD160 a2e2f041e21c5b1523a38d69ebe2e8ac5519cab6 SHA1 1d570891980b90299803dc686d9ff07c1460b85b SHA256 e0b23ced7d9c7de9192b14ad348f1dfadc2b364ae0df2b10aad7b68f7e9b8046
-MD5 ca08a505977fc46f003712d872c95600 ChangeLog 3472
-RMD160 a2e2f041e21c5b1523a38d69ebe2e8ac5519cab6 ChangeLog 3472
-SHA256 e0b23ced7d9c7de9192b14ad348f1dfadc2b364ae0df2b10aad7b68f7e9b8046 ChangeLog 3472
+AUX orsa-0.6.1-as-needed.patch 545 RMD160 9190649748195e0bbbd482cde8642d9817e032e7 SHA1 e413cf51fd4a866a6518808ca7e95750db811e7d SHA256 e7a5e8a09c776d1d0ccf83b93c2988efddc4b46c27cd377e359977e575e428de
+MD5 232313d6467eacaa8d30e814fd9f7400 files/orsa-0.6.1-as-needed.patch 545
+RMD160 9190649748195e0bbbd482cde8642d9817e032e7 files/orsa-0.6.1-as-needed.patch 545
+SHA256 e7a5e8a09c776d1d0ccf83b93c2988efddc4b46c27cd377e359977e575e428de files/orsa-0.6.1-as-needed.patch 545
+AUX orsa-0.6.1-gcc4.patch 3873 RMD160 8b938a18a38c3fb1f156d411da2f3ff7c418d21f SHA1 12dee125eae58b22a4d34de6caf809b654832856 SHA256 23a3ef50e200e357ee8edfce02a038c58a3aa264e9c497095e7be3334caeb8cf
+MD5 f7f6717fc7e156e891b7bb477ee7fa42 files/orsa-0.6.1-gcc4.patch 3873
+RMD160 8b938a18a38c3fb1f156d411da2f3ff7c418d21f files/orsa-0.6.1-gcc4.patch 3873
+SHA256 23a3ef50e200e357ee8edfce02a038c58a3aa264e9c497095e7be3334caeb8cf files/orsa-0.6.1-gcc4.patch 3873
+DIST orsa-0.6.1.tar.gz 763872 RMD160 ad9de4bc511719bbb7ec936a76dfc692bddbf26f SHA1 d60b1c55b7ce241ac4c3cc03180134a0bfd3f046 SHA256 cf87cf675edb75dcf3a57108f79128691c625cc9122c99474403845cf89d1282
+EBUILD orsa-0.6.1.ebuild 1795 RMD160 96cbdd3c127eebee204c39f9f5683dc46a84c85a SHA1 e0d60eb112057f86e12cbf13de2928a2aa57ceea SHA256 cc4a7cb5b9680f2aff31f5c22a778f84df385ad4a7df85e63ab7f52835d6ceef
+MD5 9e768e845a0f928e540ab56f65a7fa89 orsa-0.6.1.ebuild 1795
+RMD160 96cbdd3c127eebee204c39f9f5683dc46a84c85a orsa-0.6.1.ebuild 1795
+SHA256 cc4a7cb5b9680f2aff31f5c22a778f84df385ad4a7df85e63ab7f52835d6ceef orsa-0.6.1.ebuild 1795
+MISC ChangeLog 3697 RMD160 db43d8e3e327eebba17047b36a4dc1a2961b407d SHA1 d39098d9ce20dc59e966011521aad0a3c6f05833 SHA256 990fe0a29de284446d3066b11acff245a1205f09d3f457de3471d06e5c253b90
+MD5 dc63838fe90e75cd2622e8805002e6b7 ChangeLog 3697
+RMD160 db43d8e3e327eebba17047b36a4dc1a2961b407d ChangeLog 3697
+SHA256 990fe0a29de284446d3066b11acff245a1205f09d3f457de3471d06e5c253b90 ChangeLog 3697
MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
-MD5 e07b8e8024922c45167669a6089cb7a6 files/digest-orsa-0.6.1 62
-RMD160 b8b8daac80d2ed1e829844c2dbde113ae9474d9b files/digest-orsa-0.6.1 62
-SHA256 6283e28c7f1ba1f116eace192325be657dcdd0dd22e9cd972606950349383401 files/digest-orsa-0.6.1 62
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.3 (GNU/Linux)
-
-iD8DBQFEnIEioeSe8B0zEfwRAkPwAJ40Tuq0Q6jC+wSNqTxsX59qvhl/uQCfXoc8
-3tolsg5rELjZpTEuxS8HOg8=
-=9CTW
------END PGP SIGNATURE-----
+MD5 77aa6450704bf965ce31bcd3ff5f6f4b files/digest-orsa-0.6.1 232
+RMD160 b870e8e8a1ad6620bb2d698a0f2ff7f040a556d1 files/digest-orsa-0.6.1 232
+SHA256 2dfb9b8418399b86308d1bff481986639aab3412f0aa3ebb364aa551dee4f17a files/digest-orsa-0.6.1 232
diff --git a/sci-astronomy/orsa/files/digest-orsa-0.6.1 b/sci-astronomy/orsa/files/digest-orsa-0.6.1
index b7bf044a14a9..311b85118718 100644
--- a/sci-astronomy/orsa/files/digest-orsa-0.6.1
+++ b/sci-astronomy/orsa/files/digest-orsa-0.6.1
@@ -1 +1,3 @@
MD5 82d3919b04a076072f510b6122c06fca orsa-0.6.1.tar.gz 763872
+RMD160 ad9de4bc511719bbb7ec936a76dfc692bddbf26f orsa-0.6.1.tar.gz 763872
+SHA256 cf87cf675edb75dcf3a57108f79128691c625cc9122c99474403845cf89d1282 orsa-0.6.1.tar.gz 763872
diff --git a/sci-astronomy/orsa/files/orsa-0.6.1-as-needed.patch b/sci-astronomy/orsa/files/orsa-0.6.1-as-needed.patch
new file mode 100644
index 000000000000..fc10b3a0fe8f
--- /dev/null
+++ b/sci-astronomy/orsa/files/orsa-0.6.1-as-needed.patch
@@ -0,0 +1,12 @@
+diff -Naur orsa-0.6.1/src/liborsa/Makefile.in orsa-0.6.1-new/src/liborsa/Makefile.in
+--- orsa-0.6.1/src/liborsa/Makefile.in 2004-07-08 19:29:01.000000000 -0400
++++ orsa-0.6.1-new/src/liborsa/Makefile.in 2006-10-25 10:15:20.000000000 -0400
+@@ -387,7 +387,7 @@
+ $(AM_CXXFLAGS) $(CXXFLAGS)
+ CXXLD = $(CXX)
+ CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+- $(AM_LDFLAGS) $(LDFLAGS) -o $@
++ $(GLLIB) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+ CXXFLAGS = @CXXFLAGS@
+ DIST_SOURCES = $(liborsa_la_SOURCES)
+ HEADERS = $(pkginclude_HEADERS)
diff --git a/sci-astronomy/orsa/files/orsa-0.6.1-gcc4.patch b/sci-astronomy/orsa/files/orsa-0.6.1-gcc4.patch
new file mode 100644
index 000000000000..1485d7f10d92
--- /dev/null
+++ b/sci-astronomy/orsa/files/orsa-0.6.1-gcc4.patch
@@ -0,0 +1,60 @@
+diff -Naur orsa-0.6.1/src/liborsa/orsa_body.h orsa-0.6.1-new/src/liborsa/orsa_body.h
+--- orsa-0.6.1/src/liborsa/orsa_body.h 2004-07-05 17:59:44.000000000 -0400
++++ orsa-0.6.1-new/src/liborsa/orsa_body.h 2006-10-25 09:25:36.000000000 -0400
+@@ -215,7 +215,7 @@
+ // void SetVelocity(const Vector &v, bool sync_child=true, Body *ref_body=0);
+
+ // b position - this position
+- inline Vector Body::distanceVector(const Body & b) const { return b.position()-position(); }
++ inline Vector distanceVector(const Body & b) const { return b.position()-position(); }
+ inline double distance(const Body & b) const { return distanceVector(b).Length(); }
+
+ // alias
+diff -Naur orsa-0.6.1/src/libxorsa/xorsa_analysis.h orsa-0.6.1-new/src/libxorsa/xorsa_analysis.h
+--- orsa-0.6.1/src/libxorsa/xorsa_analysis.h 2004-06-24 20:58:30.000000000 -0400
++++ orsa-0.6.1-new/src/libxorsa/xorsa_analysis.h 2006-10-25 09:32:16.000000000 -0400
+@@ -129,7 +129,7 @@
+ XOrsaPeaksListItem(QListView *parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null);
+
+ public:
+- int XOrsaPeaksListItem::compare(QListViewItem * i, int col, bool ascending) const;
++ int compare(QListViewItem * i, int col, bool ascending) const;
+
+ };
+
+diff -Naur orsa-0.6.1/src/libxorsa/xorsa_import_astorb_objects.h orsa-0.6.1-new/src/libxorsa/xorsa_import_astorb_objects.h
+--- orsa-0.6.1/src/libxorsa/xorsa_import_astorb_objects.h 2004-07-05 20:10:14.000000000 -0400
++++ orsa-0.6.1-new/src/libxorsa/xorsa_import_astorb_objects.h 2006-10-25 09:26:30.000000000 -0400
+@@ -600,7 +600,7 @@
+ inline XOrsaAstorbObjectItem(QListView *parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null) : QListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8) { };
+
+ public:
+- inline int XOrsaAstorbObjectItem::compare(QListViewItem *i, int col, bool ascending) const {
++ inline int compare(QListViewItem *i, int col, bool ascending) const {
+
+ XOrsaAstorbObjectItem *ii = dynamic_cast<XOrsaAstorbObjectItem*> (i);
+
+diff -Naur orsa-0.6.1/src/libxorsa/xorsa_object_selector.cc orsa-0.6.1-new/src/libxorsa/xorsa_object_selector.cc
+--- orsa-0.6.1/src/libxorsa/xorsa_object_selector.cc 2004-06-24 23:12:57.000000000 -0400
++++ orsa-0.6.1-new/src/libxorsa/xorsa_object_selector.cc 2006-10-25 09:54:01.000000000 -0400
+@@ -40,7 +40,7 @@
+ XOrsaObjectItem(QListView *parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null);
+
+ public:
+- int XOrsaObjectItem::compare(QListViewItem * i, int col, bool ascending) const;
++ int compare(QListViewItem * i, int col, bool ascending) const;
+
+ };
+
+diff -Naur orsa-0.6.1/src/orsa/xorsa.h orsa-0.6.1-new/src/orsa/xorsa.h
+--- orsa-0.6.1/src/orsa/xorsa.h 2004-06-24 23:30:28.000000000 -0400
++++ orsa-0.6.1-new/src/orsa/xorsa.h 2006-10-25 10:01:42.000000000 -0400
+@@ -60,7 +60,7 @@
+ ObjectItem(QListView *parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null, QString label7 = QString::null, QString label8 = QString::null);
+
+ public:
+- int ObjectItem::compare(QListViewItem * i, int col, bool ascending) const;
++ int compare(QListViewItem * i, int col, bool ascending) const;
+
+ };
+
diff --git a/sci-astronomy/orsa/orsa-0.6.1.ebuild b/sci-astronomy/orsa/orsa-0.6.1.ebuild
index 81fb88e86017..8fd806d6ab46 100644
--- a/sci-astronomy/orsa/orsa-0.6.1.ebuild
+++ b/sci-astronomy/orsa/orsa-0.6.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.6.1.ebuild,v 1.8 2006/06/23 23:59:31 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.6.1.ebuild,v 1.9 2006/10/25 16:01:19 markusle Exp $
inherit base flag-o-matic qt3
@@ -28,6 +28,13 @@ replace-flags k6-3 i586
replace-flags k6-2 i586
replace-flags k6 i586
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+}
+
src_compile() {
if ! use mpi; then
export MPICXX="g++"
@@ -60,7 +67,7 @@ src_compile() {
}
src_install() {
- einstall || die
+ make install DESTDIR=${D} || die "install failed"
dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS
dodoc src/test/*
}