git: 63e5ba4396f4 - main - biology/bcf-score: Unbreak build with clang 16

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Sun, 16 Jul 2023 13:20:21 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=63e5ba4396f40d97df99b2856113afcb7623d7c9

commit 63e5ba4396f40d97df99b2856113afcb7623d7c9
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2023-07-16 13:19:06 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2023-07-16 13:19:06 +0000

    biology/bcf-score: Unbreak build with clang 16
    
    Patch function pointer assignments that went from warning to error
    with the compiler upgrade
    
    Reported by:    pkg-fallout
---
 biology/bcf-score/Makefile                    |  1 +
 biology/bcf-score/files/patch-plugins_munge.c | 11 +++++++++++
 biology/bcf-score/files/patch-plugins_score.c | 11 +++++++++++
 3 files changed, 23 insertions(+)

diff --git a/biology/bcf-score/Makefile b/biology/bcf-score/Makefile
index 96207e1f8f84..f183641f4a4f 100644
--- a/biology/bcf-score/Makefile
+++ b/biology/bcf-score/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	bcf-score
 DISTVERSION=	1.16
+PORTREVISION=	1
 CATEGORIES=	biology
 MASTER_SITES=	https://software.broadinstitute.org/software/score/
 DISTFILES+=	score_${DISTVERSION}-20221221.tar.gz
diff --git a/biology/bcf-score/files/patch-plugins_munge.c b/biology/bcf-score/files/patch-plugins_munge.c
new file mode 100644
index 000000000000..8906f57a0a73
--- /dev/null
+++ b/biology/bcf-score/files/patch-plugins_munge.c
@@ -0,0 +1,11 @@
+--- plugins/munge.c.orig	2023-07-16 07:57:54 UTC
++++ plugins/munge.c
+@@ -120,7 +120,7 @@ int tsv_read_string(tsv_t *tsv, bcf1_t *rec, void *usr
+     return 0;
+ }
+ 
+-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible,         // SNP
++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible,         // SNP
+                                                                          tsv_setter_pos_flexible,        // BP
+                                                                          tsv_setter_chrom_flexible,      // CHR
+                                                                          tsv_read_allele,                // A1
diff --git a/biology/bcf-score/files/patch-plugins_score.c b/biology/bcf-score/files/patch-plugins_score.c
new file mode 100644
index 000000000000..c90a66f313b6
--- /dev/null
+++ b/biology/bcf-score/files/patch-plugins_score.c
@@ -0,0 +1,11 @@
+--- plugins/score.c.orig	2023-07-16 08:04:54 UTC
++++ plugins/score.c
+@@ -140,7 +140,7 @@ static int tsv_read_allele(tsv_t *tsv, bcf1_t *rec, vo
+     return 0;
+ }
+ 
+-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible,         // SNP
++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible,         // SNP
+                                                                          tsv_setter_pos_flexible,        // BP
+                                                                          tsv_setter_chrom_flexible,      // CHR
+                                                                          tsv_read_allele,                // A1