From 6f48074e79fd5185798d2bf60583313d93cfde6c Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 24 May 2021 19:21:05 +0300 Subject: [PATCH] stress-ng: bump to version 0.12.10 Patch `010-soft-float.patch` can be dropped. It was upstreamed via https://github.com/ColinIanKing/stress-ng/pull/126 Signed-off-by: Alexandru Ardelean --- utils/stress-ng/Makefile | 4 +- utils/stress-ng/patches/010-soft-float.patch | 70 -------------------- 2 files changed, 2 insertions(+), 72 deletions(-) delete mode 100644 utils/stress-ng/patches/010-soft-float.patch diff --git a/utils/stress-ng/Makefile b/utils/stress-ng/Makefile index fff45a7f16..646e74237e 100644 --- a/utils/stress-ng/Makefile +++ b/utils/stress-ng/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=stress-ng -PKG_VERSION:=0.12.07 +PKG_VERSION:=0.12.10 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://kernel.ubuntu.com/~cking/tarballs/stress-ng -PKG_HASH:=cf73e3a4c7d95afa46aa27fb9283a8a988f3971de4ce6ffe9f651ca341731ead +PKG_HASH:=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=GPL-2.0-only diff --git a/utils/stress-ng/patches/010-soft-float.patch b/utils/stress-ng/patches/010-soft-float.patch deleted file mode 100644 index dd2dbec2c8..0000000000 --- a/utils/stress-ng/patches/010-soft-float.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- a/stress-fp-error.c -+++ b/stress-fp-error.c -@@ -119,42 +119,43 @@ static int stress_fp_error(const stress_ - do { - volatile double d1, d2; - --#if defined(EDOM) -+#if defined(EDOM) && defined(FE_INVALID) - stress_fp_clear_error(); - stress_fp_check(args, "log(-1.0)", log(-1.0), NAN, - true, false, EDOM, FE_INVALID); - #endif - --#if defined(ERANGE) -+#if defined(ERANGE) && defined(FE_DIVBYZERO) - stress_fp_clear_error(); - stress_fp_check(args, "log(0.0)", log(0.0), -HUGE_VAL, - false, false, ERANGE, FE_DIVBYZERO); - #endif - --#if defined(EDOM) -+#if defined(EDOM) && defined(FE_INVALID) - stress_fp_clear_error(); - stress_fp_check(args, "log2(-1.0)", log2(-1.0), NAN, - true, false, EDOM, FE_INVALID); - #endif - --#if defined(ERANGE) -+#if defined(ERANGE) && defined(FE_DIVBYZERO) - stress_fp_clear_error(); - stress_fp_check(args, "log2(0.0)", log2(0.0), -HUGE_VAL, - false, false, ERANGE, FE_DIVBYZERO); - #endif - --#if defined(EDOM) -+#if defined(EDOM) && defined(FE_INVALID) - stress_fp_clear_error(); - stress_fp_check(args, "sqrt(-1.0)", sqrt(-1.0), NAN, - true, false, EDOM, FE_INVALID); - #endif - --#if defined(EDOM) -+#if defined(EDOM) && defined(FE_INVALID) - stress_fp_clear_error(); - stress_fp_check(args, "sqrt(-1.0)", sqrt(-1.0), NAN, - true, false, EDOM, FE_INVALID); - #endif - -+#if defined(FE_INEXACT) - /* - * Use volatiles to force compiler to generate code - * to perform run time computation of 1.0 / M_PI -@@ -175,14 +176,15 @@ static int stress_fp_error(const stress_ - stress_fp_check(args, "DBL_MAX + DBL_MAX / 2.0", - DBL_MAX + DBL_MAX / 2.0, INFINITY, - false, true, 0, FE_OVERFLOW | FE_INEXACT); -+#endif - --#if defined(ERANGE) -+#if defined(ERANGE) && defined(FE_UNDERFLOW) - stress_fp_clear_error(); - stress_fp_check(args, "exp(-1000000.0)", exp(-1000000.0), 0.0, - false, false, ERANGE, FE_UNDERFLOW); - #endif - --#if defined(ERANGE) -+#if defined(ERANGE) && defined(FE_OVERFLOW) - stress_fp_clear_error(); - stress_fp_check(args, "exp(DBL_MAX)", exp(DBL_MAX), HUGE_VAL, - false, false, ERANGE, FE_OVERFLOW);