gnuplot: update to 6.0.0
authorkrant <redacted>
Thu, 1 Feb 2024 13:11:28 +0000 (15:11 +0200)
committerRosen Penev <redacted>
Mon, 5 Feb 2024 00:32:40 +0000 (16:32 -0800)
- Add patch for MIPS and PowerPC systems

Signed-off-by: krant <redacted>
utils/gnuplot/Makefile
utils/gnuplot/patches/020-fix-mips-and-powerpc.patch [new file with mode: 0644]

index a468ffdc8e8aaf9f638751843363930395b5d7aa..cee0c16cc216bf6002c46fcc3c61d7d06b91296e 100644 (file)
@@ -1,15 +1,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gnuplot
-PKG_VERSION:=5.4.2
-PKG_RELEASE:=2
+PKG_VERSION:=6.0.0
+PKG_RELEASE:=1
 PKG_MAINTAINER:=Matteo Cicuttin <datafl4sh@toxicnet.eu>
 PKG_CPE_ID:=cpe:/a:gnuplot_project:gnuplot
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/gnuplot-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/gnuplot
-PKG_HASH:=e57c75e1318133951d32a83bcdc4aff17fed28722c4e71f2305cfc2ae1cae7ba
+PKG_HASH:=635a28f0993f6ab0d1179e072ad39b8139d07f51237f841d93c6c2ff4b1758ec
 PKG_CAT:=zcat
 PKG_FIXUP:=autoreconf
 
diff --git a/utils/gnuplot/patches/020-fix-mips-and-powerpc.patch b/utils/gnuplot/patches/020-fix-mips-and-powerpc.patch
new file mode 100644 (file)
index 0000000..4a3f55a
--- /dev/null
@@ -0,0 +1,21 @@
+From 83a9b3da7681f582d231f285e2936e7524ac8e0d Mon Sep 17 00:00:00 2001
+From: krant <aleksey.vasilenko@gmail.com>
+Date: Thu, 1 Feb 2024 15:04:00 +0200
+Subject: [PATCH] Fix MIPS and PowerPC where FE_UNDERFLOW is undefined
+
+Signed-off-by: krant <aleksey.vasilenko@gmail.com>
+---
+ src/complexfun.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/complexfun.c
++++ b/src/complexfun.c
+@@ -86,7 +86,7 @@
+       int_error(NO_CARET, "%s: error present on entry (errno %d %s)", who, errno, strerror(errno));
+ #endif
+-#ifdef HAVE_FENV_H
++#if defined(HAVE_FENV_H) && defined(FE_UNDERFLOW)
+ #define handle_underflow( who, var ) \
+     if (errno) { \
+       if (fetestexcept(FE_UNDERFLOW)) { \
git clone https://git.99rst.org/PROJECT