commit:     880698a32d241b6f1077fcef5211c1973d30cc88
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 22:22:19 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 22:23:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=880698a3

sci-mathematics/jags: fix implicit exit() in configure

Closes: https://bugs.gentoo.org/923377
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 .../jags/files/jags-4.3.1-configure.patch          | 27 ++++++++++++++++++++++
 sci-mathematics/jags/jags-4.3.1-r1.ebuild          |  8 +++++--
 2 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/jags/files/jags-4.3.1-configure.patch 
b/sci-mathematics/jags/files/jags-4.3.1-configure.patch
new file mode 100644
index 000000000000..8ed18279e5ef
--- /dev/null
+++ b/sci-mathematics/jags/files/jags-4.3.1-configure.patch
@@ -0,0 +1,27 @@
+diff '--color=auto' -ruN JAGS-4.3.1.orig/m4/R.m4 JAGS-4.3.1/m4/R.m4
+--- JAGS-4.3.1.orig/m4/R.m4    2022-04-08 17:30:01.000000000 +0200
++++ JAGS-4.3.1/m4/R.m4 2024-11-15 23:11:49.764622712 +0100
+@@ -1239,6 +1239,7 @@
+ AC_DEFUN([R_FUNC_ISFINITE],
+ [AC_CACHE_CHECK([for working isfinite], [r_cv_func_isfinite_works],
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
++#include <stdlib.h>
+ #include <math.h>
+ #include "confdefs.h"
+ int main () {
+@@ -1263,6 +1264,7 @@
+ AC_DEFUN([R_FUNC_LOG],
+ [AC_CACHE_CHECK([for working log], [r_cv_func_log_works],
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
++#include <stdlib.h>
+ #include <math.h>
+ #include "confdefs.h"
+ int main () {
+@@ -1292,6 +1294,7 @@
+ AC_DEFUN([R_FUNC_LOG1P],
+ [AC_CACHE_CHECK([for working log1p], [r_cv_func_log1p_works],
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
++#include <stdlib.h>
+ #include <math.h>
+ #include "confdefs.h"
+ int main () {

diff --git a/sci-mathematics/jags/jags-4.3.1-r1.ebuild 
b/sci-mathematics/jags/jags-4.3.1-r1.ebuild
index 6ee9e9025d55..4e6fddb2b4c8 100644
--- a/sci-mathematics/jags/jags-4.3.1-r1.ebuild
+++ b/sci-mathematics/jags/jags-4.3.1-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit libtool toolchain-funcs
+inherit autotools toolchain-funcs
 
 MYP="JAGS-${PV}"
 
@@ -31,9 +31,13 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-configure.patch"
+)
+
 src_prepare() {
        default
-       elibtoolize
+       eautoreconf
 }
 
 src_configure() {

Reply via email to