sci-biology/maqview: Fix passing of incompatible pointer type

Closes: https://github.com/gentoo/gentoo/pull/36460
Closes: https://bugs.gentoo.org/930767
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Brahmajit Das
2024-04-27 21:15:04 +02:00
committed by David Seifert
parent a281fd38b0
commit 27cb9ea633
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
Bug: https://bugs.gentoo.org/930767
--- a/socket_view.c
+++ b/socket_view.c
@@ -267,7 +267,7 @@ int service_core(ViewServer *server, int sock){
int runViewServer(ViewServer *server){
int i, sock, state;
- size_t size;
+ socklen_t size;
fd_set active_fd_set, read_fd_set;
struct timeval timeout;
struct sockaddr_in clientname;

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
inherit autotools
DESCRIPTION="GUI for sci-biology/maq, a short read mapping assembler"
HOMEPAGE="http://maq.sourceforge.net/"
HOMEPAGE="https://maq.sourceforge.net/"
SRC_URI="mirror://sourceforge/maq/${P}.tar.gz"
S="${WORKDIR}/${PN}"
@@ -24,6 +24,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-ldflags.patch
"${FILESDIR}"/${PV}-zlib.patch
"${FILESDIR}"/${P}-gcc4.7.patch
"${FILESDIR}"/${P}-gcc14-build-fix.patch
)
src_prepare() {