commit:     b7e4b1db6e30e8b3b2709b3e717b5af35b2a9696
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  1 10:26:26 2025 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec  1 10:26:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7e4b1db

sci-biology/biogrep: fix c23 pointer declarations

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

 sci-biology/biogrep/biogrep-1.0-r3.ebuild       |  4 ++-
 sci-biology/biogrep/files/biogrep-1.0-c23.patch | 35 +++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/sci-biology/biogrep/biogrep-1.0-r3.ebuild 
b/sci-biology/biogrep/biogrep-1.0-r3.ebuild
index 74019b09fb6b..cfdeeb440f72 100644
--- a/sci-biology/biogrep/biogrep-1.0-r3.ebuild
+++ b/sci-biology/biogrep/biogrep-1.0-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -16,6 +16,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="doc examples"
 
+PATCHES=( "${FILESDIR}"/${P}-c23.patch )
+
 src_prepare() {
        default
        eautoreconf

diff --git a/sci-biology/biogrep/files/biogrep-1.0-c23.patch 
b/sci-biology/biogrep/files/biogrep-1.0-c23.patch
new file mode 100644
index 000000000000..a287dd905b48
--- /dev/null
+++ b/sci-biology/biogrep/files/biogrep-1.0-c23.patch
@@ -0,0 +1,35 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -198,8 +198,8 @@
+       int i;
+       int regExsPerThread;
+       int completedRegExs;
+-      int (*parseFunct) () = &ParseTxtLine;
+-      fSeq_t *(*seqReadFunct) () = &ReadTxtSeqs;
++      int (*parseFunct) (char*, int,  tPat_t*) = &ParseTxtLine;
++      fSeq_t *(*seqReadFunct) (FILE*, int*) = &ReadTxtSeqs;
+       printFormat_t myFormat;
+       int ignoreCase = 0;
+ 
+--- a/src/patternFunctions.c
++++ b/src/patternFunctions.c
+@@ -39,7 +39,7 @@
+ // output file from Teiresias, which may or may not have logOdds values
+ // 
+ tPat_t *
+-ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int 
(*parseFunct) ())
++ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int 
(*parseFunct) (char*, int,  tPat_t*))
+ {
+       int i;
+       int countedPatterns;
+--- a/src/patternFunctions.h
++++ b/src/patternFunctions.h
+@@ -33,7 +33,7 @@
+ int MeasurePattern(char *pattern);
+ int ParseTPatLine(char *buffer, int getOffsets, tPat_t * myTeiresiasPattern);
+ int ParseTxtLine(char *buffer, int getOffsets, tPat_t * myTeiresiasPattern);
+-tPat_t *ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int 
(*parseFunct)() );
++tPat_t *ReadTPats(FILE * INPUT, int getOffsets, int *numberOfPatterns, int 
(*parseFunct)(char*, int,  tPat_t*) );
+ int printTPat(FILE * OUTPUT, tPat_t * myTeiresiasPattern, int hasOffsets);
+ int FreeTPatA(tPat_t * arrayOfTeiresiasPatterns, int numberOfPatterns);
+ 

Reply via email to