mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: fuzzylite: Update to 6.0-0.13b3122.
* gnu/packages/games.scm (fuzzylite): Update to 6.0-0.13b3122. [source]: Delete patches. [native-inputs]: Replace catch2 with catch2-3. [license]: Correct to gpl3+. * gnu/packages/patches/fuzzylite-relative-path-in-tests.patch * gnu/packages/patches/fuzzylite-soften-float-equality.patch * gnu/packages/patches/fuzzylite-use-catch2.patch: Delete patches. * gnu/local.mk (dist_patch_DATA): De-register them. Change-Id: Ibe4ebf94b1b9011fbbd161cdfac3786bd6eb184d
This commit is contained in:
parent
495a8de637
commit
c8ff4e93fc
5 changed files with 24 additions and 260 deletions
|
@ -1344,9 +1344,6 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/fulcrum-1.9.1-unbundled-libraries.patch \
|
%D%/packages/patches/fulcrum-1.9.1-unbundled-libraries.patch \
|
||||||
%D%/packages/patches/fuse-glibc-2.34.patch \
|
%D%/packages/patches/fuse-glibc-2.34.patch \
|
||||||
%D%/packages/patches/fuse-overlapping-headers.patch \
|
%D%/packages/patches/fuse-overlapping-headers.patch \
|
||||||
%D%/packages/patches/fuzzylite-relative-path-in-tests.patch \
|
|
||||||
%D%/packages/patches/fuzzylite-use-catch2.patch \
|
|
||||||
%D%/packages/patches/fuzzylite-soften-float-equality.patch \
|
|
||||||
%D%/packages/patches/fxdiv-system-libraries.patch \
|
%D%/packages/patches/fxdiv-system-libraries.patch \
|
||||||
%D%/packages/patches/gajim-honour-GAJIM_PLUGIN_PATH.patch \
|
%D%/packages/patches/gajim-honour-GAJIM_PLUGIN_PATH.patch \
|
||||||
%D%/packages/patches/ganeti-disable-version-symlinks.patch \
|
%D%/packages/patches/ganeti-disable-version-symlinks.patch \
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
;;; Copyright © 2022 Roman Riabenko <roman@riabenko.com>
|
;;; Copyright © 2022 Roman Riabenko <roman@riabenko.com>
|
||||||
;;; Copyright © 2022, 2023, 2025 zamfofex <zamfofex@twdb.moe>
|
;;; Copyright © 2022, 2023, 2025 zamfofex <zamfofex@twdb.moe>
|
||||||
;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
|
;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
|
||||||
;;; Copyright © 2022-2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2022-2025 Maxim Cournoyer <maxim@guixotic.coop>
|
||||||
;;; Copyright © 2022 Hendursaga <hendursaga@aol.com>
|
;;; Copyright © 2022 Hendursaga <hendursaga@aol.com>
|
||||||
;;; Copyright © 2022 Parnikkapore <poomklao@yahoo.com>
|
;;; Copyright © 2022 Parnikkapore <poomklao@yahoo.com>
|
||||||
;;; Copyright © 2022 Cairn <cairn@pm.me>
|
;;; Copyright © 2022 Cairn <cairn@pm.me>
|
||||||
|
@ -4258,35 +4258,31 @@ exec ~a/bin/freedink -refdir ~a/share/dink\n"
|
||||||
(native-inputs '())))
|
(native-inputs '())))
|
||||||
|
|
||||||
(define-public fuzzylite
|
(define-public fuzzylite
|
||||||
|
;; Use the latest commit from the master branch, as the latest release fails
|
||||||
|
;; to build.
|
||||||
|
(let ((commit "13b3122f5c353c0389ed4e66041d548c44ec9df6")
|
||||||
|
(revision "0"))
|
||||||
(package
|
(package
|
||||||
(name "fuzzylite")
|
(name "fuzzylite")
|
||||||
(version "6.0")
|
(version (git-version "6.0" revision commit))
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/fuzzylite/fuzzylite")
|
(url "https://github.com/fuzzylite/fuzzylite")
|
||||||
(commit (string-append "v" version))))
|
(commit commit)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0yay0qc81x0irlvxqpy7jywjxpkmpjabdhq2hdh28r9z85wp2nwb"))
|
"1ai7x5lfy8c1d11crz33ayy21alry740f78qjjxwzdfr6ph7pkzq"))))
|
||||||
(patches (search-patches "fuzzylite-use-catch2.patch"
|
|
||||||
"fuzzylite-soften-float-equality.patch"
|
|
||||||
"fuzzylite-relative-path-in-tests.patch"))))
|
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(native-inputs (list catch2-3))
|
||||||
`(#:phases (modify-phases %standard-phases
|
|
||||||
(add-before 'configure 'switch-to-fuzzylite-dir
|
|
||||||
(lambda _
|
|
||||||
(chdir "fuzzylite"))))))
|
|
||||||
(native-inputs (list catch2))
|
|
||||||
(home-page "https://www.fuzzylite.com/")
|
(home-page "https://www.fuzzylite.com/")
|
||||||
(synopsis "Fuzzy logic control binary")
|
(synopsis "Fuzzy logic control binary")
|
||||||
(description
|
(description
|
||||||
"This package provides fuzzylite, a fuzzy logic control library which
|
"This package provides fuzzylite, a fuzzy logic control library which
|
||||||
allows one to easily create fuzzy logic controllers in a few steps utilizing
|
allows one to easily create fuzzy logic controllers in a few steps utilizing
|
||||||
object-oriented programming.")
|
object-oriented programming.")
|
||||||
(license license:gpl3)))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public xboard
|
(define-public xboard
|
||||||
(package
|
(package
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
Workaround https://github.com/fuzzylite/fuzzylite/issues/85
|
|
||||||
|
|
||||||
diff --git a/fuzzylite/test/BenchmarkTest.cpp b/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
index f868ec29..464d394d 100644
|
|
||||||
--- a/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
+++ b/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
@@ -30,7 +30,7 @@ namespace fl {
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("Benchmarks from FLD files", "[benchmark][fld]") {
|
|
||||||
- std::string path = "../../examples/";
|
|
||||||
+ std::string path = "../examples/";
|
|
||||||
typedef std::pair<std::string, int > Example;
|
|
||||||
std::vector<Example> examples;
|
|
||||||
examples.push_back(Example("mamdani/AllTerms", int(1e4)));
|
|
|
@ -1,30 +0,0 @@
|
||||||
Origin: https://salsa.debian.org/debian/fuzzylite/-/blob/debian/6.0+dfsg-6/debian/patches/when-testing-large-float-numbers-for-equ.patch
|
|
||||||
From: Johannes 'josch' Schauer <josch@debian.org>
|
|
||||||
Date: Sun, 3 Feb 2019 10:33:22 +0100
|
|
||||||
X-Dgit-Generated: 6.0+dfsg-2 80960ae38da9db032dfbfec6405398653e8205ff
|
|
||||||
Subject: when testing large float numbers for equality, use a larger epsilon
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
--- fuzzylite-6.0+dfsg.orig/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
+++ fuzzylite-6.0+dfsg/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
@@ -96,7 +96,17 @@ namespace fl {
|
|
||||||
CHECK(Op::isEq(1.0, Benchmark::convert(1000.0, Benchmark::MilliSeconds, Benchmark::Seconds)));
|
|
||||||
FL_LOG(Benchmark::convert(1000.0, Benchmark::MilliSeconds, Benchmark::Seconds));
|
|
||||||
|
|
||||||
- CHECK(Op::isEq(35e9, Benchmark::convert(35, Benchmark::Seconds, Benchmark::NanoSeconds)));
|
|
||||||
+ scalar eps =
|
|
||||||
+#ifndef __i386__
|
|
||||||
+ fuzzylite::macheps();
|
|
||||||
+#else
|
|
||||||
+ // on i386, due to the 80bit x87 register, double floating point
|
|
||||||
+ // numbers are handled differently and thus the difference between
|
|
||||||
+ // 35e9 and the result of Benchmark::convert() will be 2.179e-6,
|
|
||||||
+ // which is greater than the default epsilon of 1e-6.
|
|
||||||
+ 1e-5;
|
|
||||||
+#endif
|
|
||||||
+ CHECK(Op::isEq(35e9, Benchmark::convert(35, Benchmark::Seconds, Benchmark::NanoSeconds), eps));
|
|
||||||
CHECK(Op::isEq(35, Benchmark::convert(35e9, Benchmark::NanoSeconds, Benchmark::Seconds)));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,184 +0,0 @@
|
||||||
Origin: https://salsa.debian.org/debian/fuzzylite/-/blob/debian/6.0+dfsg-6/debian/patches/fix-tests2.patch
|
|
||||||
From: Ferdinand Thiessen <rpm@fthiessen.de>
|
|
||||||
Date: Mon, 31 Jan 2022 16:06:19 GMT
|
|
||||||
Subject: Replace Catch with Catch2 and require C++11 for tests
|
|
||||||
Origin: vendor, https://github.com/fuzzylite/fuzzylite/issues/94
|
|
||||||
Bug-Debian: http://bugs.debian.org/1017155
|
|
||||||
|
|
||||||
--- a/fuzzylite/CMakeLists.txt
|
|
||||||
+++ b/fuzzylite/CMakeLists.txt
|
|
||||||
@@ -194,7 +194,9 @@ if(FL_BUILD_BINARY)
|
|
||||||
endif(FL_BUILD_BINARY)
|
|
||||||
|
|
||||||
if(FL_BUILD_TESTS)
|
|
||||||
+ find_package(Catch2)
|
|
||||||
add_executable(fl-test ${fl-headers} ${fl-tests})
|
|
||||||
+ target_link_libraries(fl-test Catch2::Catch2)
|
|
||||||
set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests)
|
|
||||||
set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests IMPORT_PREFIX tmp-) #To prevent LNK1149 in Windows
|
|
||||||
set_target_properties(fl-test PROPERTIES DEBUG_POSTFIX -debug)
|
|
||||||
--- a/fuzzylite/test/activation/ThresholdTest.cpp
|
|
||||||
+++ b/fuzzylite/test/activation/ThresholdTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
+++ b/fuzzylite/test/BenchmarkTest.cpp
|
|
||||||
@@ -16,7 +16,7 @@
|
|
||||||
|
|
||||||
#include "fl/Benchmark.h"
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
--- a/fuzzylite/test/hedge/HedgeFunctionTest.cpp
|
|
||||||
+++ b/fuzzylite/test/hedge/HedgeFunctionTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/imex/FldExporterTest.cpp
|
|
||||||
+++ b/fuzzylite/test/imex/FldExporterTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/imex/FllImporterTest.cpp
|
|
||||||
+++ b/fuzzylite/test/imex/FllImporterTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/imex/RScriptExporterTest.cpp
|
|
||||||
+++ b/fuzzylite/test/imex/RScriptExporterTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
--- a/fuzzylite/test/MainTest.cpp
|
|
||||||
+++ b/fuzzylite/test/MainTest.cpp
|
|
||||||
@@ -16,7 +16,7 @@
|
|
||||||
|
|
||||||
#define CATCH_CONFIG_RUNNER
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
--- a/fuzzylite/test/norm/NormFunctionTest.cpp
|
|
||||||
+++ b/fuzzylite/test/norm/NormFunctionTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/QuickTest.cpp
|
|
||||||
+++ b/fuzzylite/test/QuickTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/term/AggregatedTest.cpp
|
|
||||||
+++ b/fuzzylite/test/term/AggregatedTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/term/DiscreteTest.cpp
|
|
||||||
+++ b/fuzzylite/test/term/DiscreteTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/term/FunctionTest.cpp
|
|
||||||
+++ b/fuzzylite/test/term/FunctionTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/term/TrapezoidTest.cpp
|
|
||||||
+++ b/fuzzylite/test/term/TrapezoidTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/term/TriangleTest.cpp
|
|
||||||
+++ b/fuzzylite/test/term/TriangleTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
namespace fl {
|
|
||||||
--- a/fuzzylite/test/variable/VariableTest.cpp
|
|
||||||
+++ b/fuzzylite/test/variable/VariableTest.cpp
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
fuzzylite is a registered trademark of FuzzyLite Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "test/catch.hpp"
|
|
||||||
+#include "catch2/catch.hpp"
|
|
||||||
#include "fl/Headers.h"
|
|
||||||
|
|
||||||
#include <algorithm> // std::random_shuffle
|
|
Loading…
Add table
Add a link
Reference in a new issue