Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 03:49:13 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ed1519605dd1 - main - math/gismo: Fix build on non-amd64 architectures
Message-ID:  <202401120349.40C3nDtd062070@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed1519605dd18b1ffce2a0564a190796ae97035e

commit ed1519605dd18b1ffce2a0564a190796ae97035e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-12 03:47:59 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-12 03:47:59 +0000

    math/gismo: Fix build on non-amd64 architectures
    
    .. by defining HOST_NAME_MAX.
    HOST_NAME_MAX is only used on non-amd64 architectures in gismo.
    
    Reported by:    fallout
---
 math/gismo/files/patch-src_gsCore_gsSysInfo.cpp | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp b/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
new file mode 100644
index 000000000000..1571078b3141
--- /dev/null
+++ b/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
@@ -0,0 +1,15 @@
+- workaround for the compilation failure on non-amd64 architectures
+- due to the use of missing value HOST_NAME_MAX only on these architectures
+
+--- src/gsCore/gsSysInfo.cpp.orig	2024-01-12 03:28:55 UTC
++++ src/gsCore/gsSysInfo.cpp
+@@ -30,6 +30,9 @@
+ #   endif
+ #endif
+ 
++#include <sys/param.h>
++#define HOST_NAME_MAX MAXHOSTNAMELEN
++
+ namespace gismo
+ {
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401120349.40C3nDtd062070>