sci-electronics/nvc: patch fpurge; drop USE=debug

Closes: https://bugs.gentoo.org/979033
Closes: https://bugs.gentoo.org/978740
Bug: https://bugs.gentoo.org/937245
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2026-07-12 20:24:34 +02:00
parent e1c682e1c8
commit 96f91f7cc9
2 changed files with 20 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
Thanks for the patch Lain! See: https://bugs.gentoo.org/979033
diff --git a/configure.ac b/configure.ac
index 3ec2938..5fb9fef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ AC_C_RESTRICT
AC_CHECK_HEADERS([sys/ptrace.h sys/prctl.h])
AC_CHECK_FUNCS([tcgetwinsize memmem strcasestr getline fseeko ftello])
-AC_CHECK_FUNCS([fpurge __fpurge strchrnul strndup gettid popen])
+AC_CHECK_FUNCS([__fpurge strchrnul strndup gettid popen])
AC_CHECK_MEMBERS([struct stat.st_mtimespec.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec])

View File

@@ -5,7 +5,7 @@ EAPI=8
LLVM_COMPAT=( {20..22} )
inherit autotools bash-completion-r1 llvm-r2
inherit autotools llvm-r2 shell-completion
DESCRIPTION="NVC is a VHDL compiler and simulator"
HOMEPAGE="https://www.nickg.me.uk/nvc/
@@ -29,7 +29,7 @@ S="${NVC_BUILDDIR}"
LICENSE="GPL-3+"
SLOT="0"
IUSE="debug llvm test"
IUSE="llvm test"
RESTRICT="test" # Some tests fail.
RDEPEND="
@@ -61,7 +61,10 @@ BDEPEND="
)
"
PATCHES=( "${FILESDIR}/nvc-1.9.2-jit-code-capstone.patch" )
PATCHES=(
"${FILESDIR}/nvc-1.9.2-jit-code-capstone.patch"
"${FILESDIR}/nvc-1.21.1-fpurge.patch"
)
# Special libraries for NVC.
QA_FLAGS_IGNORED="usr/lib[0-9]*/nvc/preload[0-9]*.so"
@@ -93,7 +96,6 @@ src_configure() {
local -a myconf=(
--enable-vital
--with-bash-completion="$(get_bashcompdir)"
$(use_enable debug)
$(use_enable llvm)
)
econf "${myconf[@]}"