public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/eugene/files/, sci-biology/eugene/
Date: Sun, 23 Oct 2022 19:18:28 +0000 (UTC)	[thread overview]
Message-ID: <1666552685.fb20e3f85e6e158e7f3a13b5de473ccaba372a03.soap@gentoo> (raw)

commit:     fb20e3f85e6e158e7f3a13b5de473ccaba372a03
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 23 19:18:05 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Oct 23 19:18:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb20e3f8

sci-biology/eugene: fix clang 16 build

Closes: https://bugs.gentoo.org/875476
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-biology/eugene/eugene-4.1d-r1.ebuild           |  1 +
 sci-biology/eugene/files/eugene-4.1d-clang16.patch | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/sci-biology/eugene/eugene-4.1d-r1.ebuild b/sci-biology/eugene/eugene-4.1d-r1.ebuild
index b1d9f409c096..40fb83ffc058 100644
--- a/sci-biology/eugene/eugene-4.1d-r1.ebuild
+++ b/sci-biology/eugene/eugene-4.1d-r1.ebuild
@@ -27,6 +27,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-4.1d-fix-c++14.patch
 	"${FILESDIR}"/${PN}-4.1d-Wformat.patch
 	"${FILESDIR}"/${PN}-4.1d-portable-getopt.patch
+	"${FILESDIR}"/${PN}-4.1d-clang16.patch
 )
 
 src_prepare() {

diff --git a/sci-biology/eugene/files/eugene-4.1d-clang16.patch b/sci-biology/eugene/files/eugene-4.1d-clang16.patch
new file mode 100644
index 000000000000..21a3ec0a8b62
--- /dev/null
+++ b/sci-biology/eugene/files/eugene-4.1d-clang16.patch
@@ -0,0 +1,22 @@
+--- a/src/GDIF/gdIF.c
++++ b/src/GDIF/gdIF.c
+@@ -228,7 +228,7 @@
+ 		    ToY(phase, pos), (unsigned char *)st, Col[col]);
+ }
+ 
+-void ClosePNG()
++void ClosePNG(void)
+ {
+   int i;
+ 
+--- a/src/SensorPlugins/0_SensorTk/markov.cc
++++ b/src/SensorPlugins/0_SensorTk/markov.cc
+@@ -790,7 +790,7 @@
+ // cumule les valeurs des cases des codons synonymes et renvoie le total.
+ template<class CHAINE, typename T> T TabChaine<CHAINE,T> :: cumuleVAL (int indice) const
+ {
+-  char* codegenetique=CODEGENETIQUE;
++  const char* codegenetique=CODEGENETIQUE;
+   T cumul=0;
+   for (int i=0 ; i<64 ; i++) {
+     if ( codegenetique[i] == codegenetique[indice] )


             reply	other threads:[~2022-10-23 19:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-23 19:18 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-24 19:02 [gentoo-commits] repo/gentoo:master commit in: sci-biology/eugene/files/, sci-biology/eugene/ David Seifert

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=1666552685.fb20e3f85e6e158e7f3a13b5de473ccaba372a03.soap@gentoo \
    --to=soap@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