From f2e3846df3b8e350bd49941d5e0657e0c8c9f96b Mon Sep 17 00:00:00 2001 From: NHOrus Date: Mon, 24 Feb 2025 14:39:33 +0400 Subject: [PATCH] sci-biology/yass: Fix build with USE=lowmem Add missing declaration to the lowmem-only header. Closes: https://bugs.gentoo.org/919215 Signed-off-by: NHOrus Closes: https://github.com/gentoo/gentoo/pull/40728 Signed-off-by: Sam James --- .../yass/files/yass-1.14-lowmem-define.patch | 13 +++++++++++++ .../{yass-1.14-r3.ebuild => yass-1.14-r4.ebuild} | 7 +++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sci-biology/yass/files/yass-1.14-lowmem-define.patch rename sci-biology/yass/{yass-1.14-r3.ebuild => yass-1.14-r4.ebuild} (80%) diff --git a/sci-biology/yass/files/yass-1.14-lowmem-define.patch b/sci-biology/yass/files/yass-1.14-lowmem-define.patch new file mode 100644 index 0000000000000..64f2e216a05bc --- /dev/null +++ b/sci-biology/yass/files/yass-1.14-lowmem-define.patch @@ -0,0 +1,13 @@ +Add missing function definition to hash.c +Whole hash.c is used only if USE=lowmem is enabled. +https://bugs.gentoo.org/919215 +--- a/src/hash.h ++++ b/src/hash.h +@@ -57,6 +57,7 @@ + + }Table_hash; + ++long int hashVerifie (Table_hash *table, char *mess,long int diag); + + /* + * diff --git a/sci-biology/yass/yass-1.14-r3.ebuild b/sci-biology/yass/yass-1.14-r4.ebuild similarity index 80% rename from sci-biology/yass/yass-1.14-r3.ebuild rename to sci-biology/yass/yass-1.14-r4.ebuild index be75847e2ad0e..a484aca4269fb 100644 --- a/sci-biology/yass/yass-1.14-r3.ebuild +++ b/sci-biology/yass/yass-1.14-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,10 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="lowmem threads" -PATCHES=( "${FILESDIR}"/${PV}-as-needed.patch ) +PATCHES=( + "${FILESDIR}"/${PV}-as-needed.patch + "${FILESDIR}"/${P}-lowmem-define.patch +) src_prepare() { default