From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15C041581D3 for ; Mon, 20 May 2024 13:04:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F827E2A3C; Mon, 20 May 2024 13:04:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B083E2A3C for ; Mon, 20 May 2024 13:04:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48DBB335DEB for ; Mon, 20 May 2024 13:04:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A551F1AA0 for ; Mon, 20 May 2024 13:04:42 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1716210234.c11cbec28dbd063e597839ed1603f9bea62d3e73.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/cvc4/files/, sci-mathematics/cvc4/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/cvc4/cvc4-1.8-r5.ebuild sci-mathematics/cvc4/files/cvc4-1.8-musl.patch X-VCS-Directories: sci-mathematics/cvc4/ sci-mathematics/cvc4/files/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: c11cbec28dbd063e597839ed1603f9bea62d3e73 X-VCS-Branch: master Date: Mon, 20 May 2024 13:04:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ed6fe6b2-917c-4055-8b58-d3103602dd10 X-Archives-Hash: a3386dd73012b18933964d413b942ee7 commit: c11cbec28dbd063e597839ed1603f9bea62d3e73 Author: Alfredo Tupone gentoo org> AuthorDate: Mon May 20 13:03:04 2024 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Mon May 20 13:03:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11cbec2 sci-mathematics/cvc4: fix musl build Closes: https://bugs.gentoo.org/839402 Signed-off-by: Alfredo Tupone gentoo.org> sci-mathematics/cvc4/cvc4-1.8-r5.ebuild | 11 +++- sci-mathematics/cvc4/files/cvc4-1.8-musl.patch | 80 ++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/cvc4/cvc4-1.8-r5.ebuild b/sci-mathematics/cvc4/cvc4-1.8-r5.ebuild index 6de0fc9372aa..4870f7af7ba6 100644 --- a/sci-mathematics/cvc4/cvc4-1.8-r5.ebuild +++ b/sci-mathematics/cvc4/cvc4-1.8-r5.ebuild @@ -11,6 +11,8 @@ DESCRIPTION="Automatic theorem prover for satisfiability modulo theories (SMT) p HOMEPAGE="https://cvc4.github.io/" SRC_URI="https://github.com/CVC4/CVC4-archived/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN^^}-archived-${PV} + LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" @@ -28,8 +30,6 @@ BDEPEND="$(python_gen_any_dep ' ') " -S="${WORKDIR}"/${PN^^}-archived-${PV} - PATCHES=( "${FILESDIR}"/${P}-gentoo.patch "${FILESDIR}"/${P}-toml.patch @@ -40,6 +40,13 @@ python_check_deps() { python_has_version "dev-python/tomli[${PYTHON_USEDEP}]" } +src_prepare() { + cmake_src_prepare + if use elibc_musl ; then + eapply "${FILESDIR}"/${P}-musl.patch + fi +} + src_configure() { local mycmakeargs=( -DANTLR_BINARY=/usr/bin/antlr3 diff --git a/sci-mathematics/cvc4/files/cvc4-1.8-musl.patch b/sci-mathematics/cvc4/files/cvc4-1.8-musl.patch new file mode 100644 index 000000000000..3448f9bab64f --- /dev/null +++ b/sci-mathematics/cvc4/files/cvc4-1.8-musl.patch @@ -0,0 +1,80 @@ +--- a/src/prop/bvminisat/simp/Main.cc 2024-05-20 14:52:26.827202665 +0200 ++++ b/src/prop/bvminisat/simp/Main.cc 2024-05-20 14:53:05.967758613 +0200 +@@ -80,11 +80,6 @@ + setUsageHelp("USAGE: %s [options] \n\n where input may be either in plain or gzipped DIMACS.\n"); + // printf("This is MiniSat 2.0 beta\n"); + +-#if defined(__linux__) +- fpu_control_t oldcw, newcw; +- _FPU_GETCW(oldcw); newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE; _FPU_SETCW(newcw); +- printf("WARNING: for repeatability, setting FPU to use double precision\n"); +-#endif + // Extra options: + // + IntOption verb ("MAIN", "verb", "Verbosity level (0=silent, 1=some, 2=more).", 1, IntRange(0, 2)); +--- a/src/prop/bvminisat/core/Main.cc 2024-05-20 14:52:35.361105845 +0200 ++++ b/src/prop/bvminisat/core/Main.cc 2024-05-20 14:53:27.116518689 +0200 +@@ -80,11 +80,6 @@ + setUsageHelp("USAGE: %s [options] \n\n where input may be either in plain or gzipped DIMACS.\n"); + // printf("This is MiniSat 2.0 beta\n"); + +-#if defined(__linux__) +- fpu_control_t oldcw, newcw; +- _FPU_GETCW(oldcw); newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE; _FPU_SETCW(newcw); +- printf("WARNING: for repeatability, setting FPU to use double precision\n"); +-#endif + // Extra options: + // + IntOption verb ("MAIN", "verb", "Verbosity level (0=silent, 1=some, 2=more).", 1, IntRange(0, 2)); +--- a/src/prop/minisat/simp/Main.cc 2024-05-20 14:52:44.044007338 +0200 ++++ b/src/prop/minisat/simp/Main.cc 2024-05-20 14:53:39.356379840 +0200 +@@ -81,11 +81,6 @@ + setUsageHelp("USAGE: %s [options] \n\n where input may be either in plain or gzipped DIMACS.\n"); + // printf("This is MiniSat 2.0 beta\n"); + +-#if defined(__linux__) +- fpu_control_t oldcw, newcw; +- _FPU_GETCW(oldcw); newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE; _FPU_SETCW(newcw); +- printf("WARNING: for repeatability, setting FPU to use double precision\n"); +-#endif + // Extra options: + // + IntOption verb ("MAIN", "verb", "Verbosity level (0=silent, 1=some, 2=more).", 1, IntRange(0, 2)); +--- a/src/prop/minisat/core/Main.cc 2024-05-20 14:52:50.063939036 +0200 ++++ b/src/prop/minisat/core/Main.cc 2024-05-20 14:53:53.834215599 +0200 +@@ -79,11 +79,6 @@ + setUsageHelp("USAGE: %s [options] \n\n where input may be either in plain or gzipped DIMACS.\n"); + // printf("This is MiniSat 2.0 beta\n"); + +-#if defined(__linux__) +- fpu_control_t oldcw, newcw; +- _FPU_GETCW(oldcw); newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE; _FPU_SETCW(newcw); +- printf("WARNING: for repeatability, setting FPU to use double precision\n"); +-#endif + // Extra options: + // + IntOption verb ("MAIN", "verb", "Verbosity level (0=silent, 1=some, 2=more).", 1, IntRange(0, 2)); +--- a/src/prop/bvminisat/utils/System.h 2024-05-20 14:54:23.301881326 +0200 ++++ b/src/prop/bvminisat/utils/System.h 2024-05-20 14:54:42.030668881 +0200 +@@ -21,9 +21,6 @@ + #ifndef BVMinisat_System_h + #define BVMinisat_System_h + +-#if defined(__linux__) +-#include +-#endif + + #include "prop/bvminisat/mtl/IntTypes.h" + +--- a/src/prop/minisat/utils/System.h 2024-05-20 14:54:28.650820656 +0200 ++++ b/src/prop/minisat/utils/System.h 2024-05-20 14:54:55.435516829 +0200 +@@ -21,9 +21,6 @@ + #ifndef Minisat_System_h + #define Minisat_System_h + +-#if defined(__linux__) +-#include +-#endif + + #include "prop/minisat/mtl/IntTypes.h" +