Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: fuzzylite
@ 2023-12-26 12:45 coralpink-d2e1ac26
  2023-12-26 16:25 ` [PR PATCH] [Updated] New package: fuzzylite-6.0 coralpink-d2e1ac26
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: coralpink-d2e1ac26 @ 2023-12-26 12:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

There is a new 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
#### 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: 5027 bytes --]

From 0cc70b15e1e6e21393a1e68610e790db1730f7b4 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

---
 common/shlibs                                 |  1 +
 .../00-set_unexpected_depracation_error.patch | 12 +++++
 .../patches/01-sigstksz-not-const.patch       | 31 ++++++++++++
 srcpkgs/fuzzylite/template                    | 47 +++++++++++++++++++
 srcpkgs/fuzzylite/update                      |  2 +
 5 files changed, 93 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/template
 create mode 100644 srcpkgs/fuzzylite/update

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..c8b21acc0f776 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4277,3 +4277,4 @@ libdraco.so.8 draco-1.5.6_1
 libpdal_base.so.15 libpdal-2.5.6_1
 libpdal_util.so.15 libpdal-2.5.6_1
 libdisplay-info.so.1 libdisplay-info-0.1.1_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 0000000000000..8a5670d9ef663
--- /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 0000000000000..ffafec7e5faca
--- /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/template b/srcpkgs/fuzzylite/template
new file mode 100644
index 0000000000000..72fc001d36d9f
--- /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 0000000000000..ad90e464f9ad3
--- /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.]+"'

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-05-17 10:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).