From: coralpink-d2e1ac26 <coralpink-d2e1ac26@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: fuzzylite-6.0
Date: Wed, 26 Jun 2024 20:15:05 +0200 [thread overview]
Message-ID: <20240626181505.0B07724E75@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47908@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
There is an updated pull request by coralpink-d2e1ac26 against master on the void-packages repository
https://github.com/coralpink-d2e1ac26/void-packages new-package-fuzzylite
https://github.com/void-linux/void-packages/pull/47908
New package: fuzzylite-6.0
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl
- i686
- aarch64
- armv7l
- armv6l
A patch file from https://github.com/void-linux/void-packages/pull/47908.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-fuzzylite-47908.patch --]
[-- Type: text/x-diff, Size: 7113 bytes --]
From c16df4f89943694900477294316224e7d5928719 Mon Sep 17 00:00:00 2001
From: Coral Pink <coral.pink@disr.it>
Date: Tue, 26 Dec 2023 13:41:49 +0100
Subject: [PATCH] New package: fuzzylite-6.0
---
common/shlibs | 1 +
.../00-set_unexpected_depracation_error.patch | 12 +++++
.../patches/01-sigstksz-not-const.patch | 31 ++++++++++++
.../patches/02-fix-tests-on-i686.patch | 23 +++++++++
srcpkgs/fuzzylite/template | 47 +++++++++++++++++++
srcpkgs/fuzzylite/update | 2 +
srcpkgs/libfuzzylite | 1 +
srcpkgs/libfuzzylite-devel | 1 +
8 files changed, 118 insertions(+)
create mode 100644 srcpkgs/fuzzylite/patches/00-set_unexpected_depracation_error.patch
create mode 100644 srcpkgs/fuzzylite/patches/01-sigstksz-not-const.patch
create mode 100644 srcpkgs/fuzzylite/patches/02-fix-tests-on-i686.patch
create mode 100644 srcpkgs/fuzzylite/template
create mode 100644 srcpkgs/fuzzylite/update
create mode 120000 srcpkgs/libfuzzylite
create mode 120000 srcpkgs/libfuzzylite-devel
diff --git a/common/shlibs b/common/shlibs
index dd0e334414354c..c3a4bbed423f80 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4513,3 +4513,4 @@ libKPim6MimeTreeParserCore.so.6 mimetreeparser-24.02.0_1
libKPim6MimeTreeParserWidgets.so.6 mimetreeparser-24.02.0_1
/usr/lib/lua/5.1/lpeg.so lua51-lpeg-1.1.0_2
libopenrazer.so.0 libopenrazer-0.2.0_1
+libfuzzylite.so.6.0 libfuzzylite-6.0_1
diff --git a/srcpkgs/fuzzylite/patches/00-set_unexpected_depracation_error.patch b/srcpkgs/fuzzylite/patches/00-set_unexpected_depracation_error.patch
new file mode 100644
index 00000000000000..8a5670d9ef663b
--- /dev/null
+++ b/srcpkgs/fuzzylite/patches/00-set_unexpected_depracation_error.patch
@@ -0,0 +1,12 @@
+diff --git a/fuzzylite/src/main.cpp b/fuzzylite/src/main.cpp
+index 06ca139e..4465fbbe 100644
+--- a/fuzzylite/src/main.cpp
++++ b/fuzzylite/src/main.cpp
+@@ -21,7 +21,6 @@
+
+ int main(int argc, const char* argv[]) {
+ std::set_terminate(fl::Exception::terminate);
+- std::set_unexpected(fl::Exception::terminate);
+ ::signal(SIGSEGV, fl::Exception::signalHandler);
+ ::signal(SIGABRT, fl::Exception::signalHandler);
+ ::signal(SIGILL, fl::Exception::signalHandler);
diff --git a/srcpkgs/fuzzylite/patches/01-sigstksz-not-const.patch b/srcpkgs/fuzzylite/patches/01-sigstksz-not-const.patch
new file mode 100644
index 00000000000000..ffafec7e5faca8
--- /dev/null
+++ b/srcpkgs/fuzzylite/patches/01-sigstksz-not-const.patch
@@ -0,0 +1,31 @@
+diff --git a/fuzzylite/test/catch.hpp b/fuzzylite/test/catch.hpp
+index 6f9334ba..0ef1af21 100644
+--- a/fuzzylite/test/catch.hpp
++++ b/fuzzylite/test/catch.hpp
+@@ -6375,7 +6375,7 @@ namespace Catch {
+ static bool isSet;
+ static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
+ static stack_t oldSigStack;
+- static char altStackMem[SIGSTKSZ];
++ static char altStackMem[4096];
+
+ static void handleSignal( int sig ) {
+ std::string name = "<unknown signal>";
+@@ -6395,7 +6395,7 @@ namespace Catch {
+ isSet = true;
+ stack_t sigStack;
+ sigStack.ss_sp = altStackMem;
+- sigStack.ss_size = SIGSTKSZ;
++ sigStack.ss_size = 4096;
+ sigStack.ss_flags = 0;
+ sigaltstack(&sigStack, &oldSigStack);
+ struct sigaction sa = { 0 };
+@@ -6426,7 +6426,7 @@ namespace Catch {
+ bool FatalConditionHandler::isSet = false;
+ struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
+ stack_t FatalConditionHandler::oldSigStack = {};
+- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
++ char FatalConditionHandler::altStackMem[4096] = {};
+
+ } // namespace Catch
+
diff --git a/srcpkgs/fuzzylite/patches/02-fix-tests-on-i686.patch b/srcpkgs/fuzzylite/patches/02-fix-tests-on-i686.patch
new file mode 100644
index 00000000000000..7f390438349c3d
--- /dev/null
+++ b/srcpkgs/fuzzylite/patches/02-fix-tests-on-i686.patch
@@ -0,0 +1,23 @@
+backported from https://github.com/fuzzylite/fuzzylite/commit/569eba9713e9991d5ed59189e58e047e958def29
+
+diff --git a/fuzzylite/test/BenchmarkTest.cpp b/fuzzylite/test/BenchmarkTest.cpp
+index f868ec2..0d87b62 100644
+--- a/fuzzylite/test/BenchmarkTest.cpp
++++ b/fuzzylite/test/BenchmarkTest.cpp
+@@ -117,7 +117,14 @@ 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
++ 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)));
+ }
+
+
diff --git a/srcpkgs/fuzzylite/template b/srcpkgs/fuzzylite/template
new file mode 100644
index 00000000000000..72fc001d36d9f2
--- /dev/null
+++ b/srcpkgs/fuzzylite/template
@@ -0,0 +1,47 @@
+# Template file for 'fuzzylite'
+pkgname=fuzzylite
+version=6.0
+revision=1
+
+maintainer='Coral Pink <coral.pink@disr.it>'
+short_desc='Fuzzy logic control library in C++'
+
+license='GPL-3.0-only'
+homepage='https://fuzzylite.com/'
+
+distfiles="https://github.com/fuzzylite/fuzzylite/archive/refs/tags/v${version}.tar.gz"
+
+checksum='7e9f56deb9baf063de2232bfd8285f57ddccb651dae842fe3f587d0ac65ecdb0'
+
+build_style='cmake'
+build_wrksrc='fuzzylite'
+
+configure_args='-Wno-dev'
+
+# musl doesn't provide required execinfo.h header
+if [ "$XBPS_TARGET_LIBC" = 'musl' ]; then
+ configure_args+=' -DFL_BACKTRACE=OFF'
+fi
+
+post_install() {
+ vman 'fuzzylite.1'
+ vlicense '../LICENSE'
+}
+
+libfuzzylite_package() {
+ short_desc+=' - library'
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+libfuzzylite-devel_package() {
+ short_desc+=' - development files'
+ depends="libfuzzylite>=${version}_${revision}"
+ pkg_install() {
+ vmove "usr/lib/*.so"
+ vmove "usr/lib/*.a"
+ vmove 'usr/include'
+ vmove 'usr/lib/pkgconfig'
+ }
+}
diff --git a/srcpkgs/fuzzylite/update b/srcpkgs/fuzzylite/update
new file mode 100644
index 00000000000000..9b7413e79a0a03
--- /dev/null
+++ b/srcpkgs/fuzzylite/update
@@ -0,0 +1,2 @@
+site='https://github.com/fuzzylite/fuzzylite/releases'
+pattern='href="/fuzzylite/fuzzylite/releases/tag/v\K[\d.]+(?=")'
diff --git a/srcpkgs/libfuzzylite b/srcpkgs/libfuzzylite
new file mode 120000
index 00000000000000..90c6648a573c5e
--- /dev/null
+++ b/srcpkgs/libfuzzylite
@@ -0,0 +1 @@
+fuzzylite
\ No newline at end of file
diff --git a/srcpkgs/libfuzzylite-devel b/srcpkgs/libfuzzylite-devel
new file mode 120000
index 00000000000000..90c6648a573c5e
--- /dev/null
+++ b/srcpkgs/libfuzzylite-devel
@@ -0,0 +1 @@
+fuzzylite
\ No newline at end of file
prev parent reply other threads:[~2024-06-26 18:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-26 12:45 [PR PATCH] New package: fuzzylite coralpink-d2e1ac26
2023-12-26 16:25 ` [PR PATCH] [Updated] New package: fuzzylite-6.0 coralpink-d2e1ac26
2023-12-27 14:12 ` coralpink-d2e1ac26
2024-01-09 3:02 ` [PR PATCH] [Updated] " coralpink-d2e1ac26
2024-01-09 14:17 ` coralpink-d2e1ac26
2024-02-19 6:14 ` [PR PATCH] [Updated] " coralpink-d2e1ac26
2024-03-08 3:52 ` coralpink-d2e1ac26
2024-03-16 14:55 ` coralpink-d2e1ac26
2024-04-04 12:02 ` [PR PATCH] [Updated] " coralpink-d2e1ac26
2024-04-22 16:23 ` coralpink-d2e1ac26
2024-04-22 16:26 ` coralpink-d2e1ac26
2024-05-17 10:40 ` [PR PATCH] [Updated] " coralpink-d2e1ac26
2024-06-01 11:54 ` coralpink-d2e1ac26
2024-06-01 11:54 ` coralpink-d2e1ac26
2024-06-26 18:15 ` coralpink-d2e1ac26 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240626181505.0B07724E75@inbox.vuxu.org \
--to=coralpink-d2e1ac26@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).