Package Details: fuzzylite 6.0-7

Git Clone URL: https://aur.archlinux.org/fuzzylite.git (read-only, click to copy)
Package Base: fuzzylite
Description: C++ fuzzy logic control library
Upstream URL: https://github.com/fuzzylite/fuzzylite
Keywords: library
Licenses: GPL-3.0-only
Provides: libfuzzylite.so
Submitter: bwrsandman
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 12
Popularity: 0.162726
First Submitted: 2017-09-10 17:34 (UTC)
Last Updated: 2025-04-06 11:11 (UTC)

Latest Comments

1 2 Next › Last »

norbert79 commented on 2025-04-06 11:30 (UTC)

@FabioLolix Thank you for the prompt reaction and for the fix.

FabioLolix commented on 2025-04-06 11:13 (UTC)

Hi norbert79, I have just added the cmake flag

norbert79 commented on 2025-04-06 11:10 (UTC) (edited on 2025-04-06 11:11 (UTC) by norbert79)

Ok so this is the best I could do so far:

I have created a new file called: min-version.patch in the main pkg directory, added it to PKGBUILD and added also this line:

patch --forward --strip=1 --input="$srcdir/min-version.patch"

I have linked the patch file to src with a symlink as well named the same.

The contents of the patch:

--- fuzzylite-6.0.orig/fuzzylite/CMakeLists.txt 2025-04-06 12:43:31.249117299 +0200
+++ fuzzylite-6.0/fuzzylite/CMakeLists.txt      2025-04-06 13:00:20.185776170 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.8)
+cmake_minimum_required(VERSION 3.5)

 if (APPLE)
     set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)

After running makepkg the package compile didn't fail anymore. Now I know this is terrible and dirty, but this is my first time doing this, so any criticism is welcome.

Hope this helps further.

norbert79 commented on 2025-04-06 10:30 (UTC) (edited on 2025-04-06 11:05 (UTC) by norbert79)

Dear maintainer,

the package fails because of a requirement for CMAKE minimum policy 3.5.

As stated:

==> Starting build()...
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

As of writing the current upstream is "cmake 4.0.0-1". I am a beginner in building packages, so I couldn't figure out at which step in which file I need to define this change, but may I ask you to take a look at it? Thank you.

P.S.: By changing the min version from 2.8.8 to 3.5 the cmake didn't fail anymore. If I figure out how to update your version of remove-werror.patch properly, I will send out a patch here also.

carsme commented on 2023-12-01 13:40 (UTC)

Sorry for taking so long to look into this. I've removed the failing tests, not sure why they started failing.

Let me know if there are more issues.

petronny commented on 2023-11-27 14:45 (UTC)

FYI, tests also fail on aarch64.

 test cases:  36 |  35 passed |  1 failed
assertions: 492 | 480 passed | 12 failed

==> ERROR: A failure occurred in check().

https://github.com/arch4edu/cactus/actions/runs/7005359344/job/19054936549

carsme commented on 2023-09-05 20:04 (UTC)

@FabioLolix I can reproduce it but I have no idea why it happens. Will try to investigate.

FabioLolix commented on 2023-09-04 18:54 (UTC)

I have some tests fail, anyone else?

===============================================================================
test cases:  36 |  35 passed |  1 failed
assertions: 492 | 480 passed | 12 failed

==> ERROR: A failure occurred in check().

UVLabel commented on 2023-06-13 00:11 (UTC) (edited on 2023-06-13 00:14 (UTC) by UVLabel)

-Werror is set in fuzzylite/CMakeLists.txt. It looks like a TODO was not resolved.

- set(CMAKE_CXX_FLAGS "-pedantic -Wall -Wextra -Werror ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-pedantic -Wall -Wextra ${CMAKE_CXX_FLAGS}")

Commit: https://github.com/fuzzylite/fuzzylite/commit/81b31f87006ed8708ee2424cb9b525d89c039e29

lmartinez-mirror commented on 2023-04-22 02:44 (UTC)

Working on patching out -Werror from the build. If anyone knows how, patches are welcome!