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

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

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

commit 90a03c7690305551d75f50e847c35413ef5fcbcc
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:49:25 +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
    
    (cherry picked from commit ed1519605dd18b1ffce2a0564a190796ae97035e)
---
 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.40C3nT4s062274>