public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/coot/files/, sci-chemistry/coot/
Date: Thu, 14 Jun 2012 12:11:25 +0000 (UTC)	[thread overview]
Message-ID: <1339675868.3bdd9d0c7138075bded9befe7eb76591dfd9b8af.jlec@gentoo> (raw)

commit:     3bdd9d0c7138075bded9befe7eb76591dfd9b8af
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 14 12:11:08 2012 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jun 14 12:11:08 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3bdd9d0c

sci-chemistry/coot: Fix for gcc-4.7

(Portage version: 2.2.0_alpha110/git/Linux x86_64, unsigned Manifest commit)

---
 sci-chemistry/coot/ChangeLog                   |    4 ++
 sci-chemistry/coot/coot-9999.ebuild            |    1 +
 sci-chemistry/coot/files/coot-9999-gcc47.patch |   47 ++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/sci-chemistry/coot/ChangeLog b/sci-chemistry/coot/ChangeLog
index 0b2d8a9..6facbcb 100644
--- a/sci-chemistry/coot/ChangeLog
+++ b/sci-chemistry/coot/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  14 Jun 2012; Justin Lecher <jlec@gentoo.org> coot-9999.ebuild,
+  +files/coot-9999-gcc47.patch:
+  Fix for gcc-4.7
+
   25 Apr 2012; Justin Lecher <jlec@gentoo.org> -files/9999-libpng-1.5.patch,
   coot-9999.ebuild:
   Drop libpng-1.5 patch, included upstream

diff --git a/sci-chemistry/coot/coot-9999.ebuild b/sci-chemistry/coot/coot-9999.ebuild
index fc6ca94..87215ab 100644
--- a/sci-chemistry/coot/coot-9999.ebuild
+++ b/sci-chemistry/coot/coot-9999.ebuild
@@ -85,6 +85,7 @@ PATCHES=(
 	"${FILESDIR}"/${PV}-goocanvas.patch
 	"${FILESDIR}"/${PV}-mmdb-config.patch
 	"${FILESDIR}"/${PV}-ssm.patch
+	"${FILESDIR}"/${P}-gcc47.patch
 	)
 
 src_unpack() {

diff --git a/sci-chemistry/coot/files/coot-9999-gcc47.patch b/sci-chemistry/coot/files/coot-9999-gcc47.patch
new file mode 100644
index 0000000..465923a
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-9999-gcc47.patch
@@ -0,0 +1,47 @@
+Index: utils/coot-utils.cc
+===================================================================
+--- utils/coot-utils.cc	(revision 4235)
++++ utils/coot-utils.cc	(working copy)
+@@ -28,6 +28,7 @@
+ #include <stdexcept> // for string_to_int.
+ #include <sstream>   // ditto.
+ #include <cstdio>    // 20090806 Justin Lecher says we need this on Gentoo 
++#include <unistd.h>
+ 
+ #include "coot-sysdep.h"
+ #if defined _MSC_VER
+Index: coot-utils/coot-coord-utils.cc
+===================================================================
+--- coot-utils/coot-coord-utils.cc	(revision 4235)
++++ coot-utils/coot-coord-utils.cc	(working copy)
+@@ -196,7 +196,7 @@
+       clipper::Coord_frac cf = coot::util::shift_to_origin(mol);
+       clipper::Coord_orth co = cf.coord_orth(csp.first);
+       for(int imod = 1; imod<=mol->GetNumberOfModels(); imod++) {
+-	 int imod = 1;
++//	 int imod = 1;
+ 	 CModel *model_p = mol->GetModel(imod);
+ 	 CChain *chain_p;
+ 	 int nchains = model_p->GetNumberOfChains();
+@@ -2779,7 +2779,7 @@
+    short int whole_res_flag = 1;
+ 
+    for(int imod = 1; imod<=mol_in->GetNumberOfModels(); imod++) {
+-     int imod = 1;
++//     int imod = 1;
+      CModel *model_p = mol_in->GetModel(imod);
+      CModel *new_model_p = new CModel;
+      int nchains = model_p->GetNumberOfChains();
+Index: src/molecule-class-info-residues.cc
+===================================================================
+--- src/molecule-class-info-residues.cc	(revision 4235)
++++ src/molecule-class-info-residues.cc	(working copy)
+@@ -145,7 +145,7 @@
+ 
+    int r = 0;
+    for(int imod = 1; imod<=atom_sel.mol->GetNumberOfModels(); imod++) {
+-      int imod = 1;
++//      int imod = 1;
+       CModel *model_p = atom_sel.mol->GetModel(imod);
+       CChain *chain_p;
+       // run over chains of the existing mol



             reply	other threads:[~2012-06-14 12:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-14 12:11 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-22 13:40 [gentoo-commits] proj/sci:master commit in: sci-chemistry/coot/files/, sci-chemistry/coot/ Aisha Tammy
2015-09-15 13:34 Justin Lecher
2014-06-30 19:02 Justin Lecher
2013-11-25 18:48 Justin Lecher
2013-10-02  6:49 Justin Lecher
2013-09-28  9:15 Justin Lecher
2013-08-27  6:58 Justin Lecher
2013-07-22 13:29 Justin Lecher
2013-06-02 16:48 Justin Lecher
2012-07-04  7:43 Justin Lecher
2012-04-25 15:26 Justin Lecher
2012-03-21 11:20 Justin Lecher
2012-02-27  7:29 Justin Lecher
2011-10-11 20:50 Justin Lecher
2011-07-16 13:45 Justin Lecher
2011-07-16 13:45 Justin Lecher
2011-06-29 13:32 Justin Lecher
2011-06-15 20:50 Justin Lecher
2011-06-02  8:39 Justin Lecher
2011-05-28 11:50 Justin Lecher
2011-04-29 10:05 Justin Lecher
2011-04-29 10:05 Justin Lecher
2011-03-03 14:23 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339675868.3bdd9d0c7138075bded9befe7eb76591dfd9b8af.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox