git: 35c42348dc38 - main - graphics/gimp-app: fpsetmask() -> fedisableexcept()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Oct 2025 08:05:25 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=35c42348dc38076cd767610800dbd7d2baa19b76
commit 35c42348dc38076cd767610800dbd7d2baa19b76
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-10-17 15:49:12 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-19 08:03:47 +0000
graphics/gimp-app: fpsetmask() -> fedisableexcept()
Replace the use of the older fpsetmask() call with fedisableexcept().
The build previously only succeeded on armv7 due to ANSI C semantics
in which it is permitted to call an undlecared function.
Approved by: portmgr (build fix blanket)
MFH: 2025Q4
---
graphics/gimp-app/files/patch-libgimp_gimp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/graphics/gimp-app/files/patch-libgimp_gimp.c b/graphics/gimp-app/files/patch-libgimp_gimp.c
index 04826609962c..7c4b35692e24 100644
--- a/graphics/gimp-app/files/patch-libgimp_gimp.c
+++ b/graphics/gimp-app/files/patch-libgimp_gimp.c
@@ -1,22 +1,22 @@
Why is this patch needed?
---- libgimp/gimp.c.orig 2023-11-05 23:49:05 UTC
+--- libgimp/gimp.c.orig 2025-05-17 22:51:03 UTC
+++ libgimp/gimp.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-+#include <floatingpoint.h>
++#include <fenv.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-@@ -450,6 +451,9 @@ gimp_main (const GimpPlugInInfo *info,
+@@ -348,6 +349,9 @@ gimp_main (GType plug_in_type,
gimp_env_init (TRUE);
progname = argv[ARG_PROGNAME];
+
+ /* Ignore floating point exceptions */
-+ fpsetmask(0);
++ fedisableexcept(FE_ALL_EXCEPT);
basename = g_path_get_basename (progname);