FreeBSD Bugzilla – Attachment 268291 Details for
Bug 293334
math/octave-forge-mboct-fem-pkg: Fails to build with GCC 15: configure: error: octave header files not found
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch to get GCC 15 to work version 3
ppp.txt (text/plain), 1.94 KB, created by
Stephen Montgomery-Smith
on 2026-02-23 08:22:39 UTC
(
hide
)
Description:
Patch to get GCC 15 to work version 3
Filename:
MIME Type:
Creator:
Stephen Montgomery-Smith
Created:
2026-02-23 08:22:39 UTC
Size:
1.94 KB
patch
obsolete
>diff --git a/math/octave-forge-mboct-fem-pkg/Makefile b/math/octave-forge-mboct-fem-pkg/Makefile >index 309423be5436..48645feeed2d 100644 >--- a/math/octave-forge-mboct-fem-pkg/Makefile >+++ b/math/octave-forge-mboct-fem-pkg/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= octave-forge-mboct-fem-pkg > DISTVERSION= 0.2.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= math > > MAINTAINER= stephen@FreeBSD.org >@@ -10,7 +10,7 @@ WWW= https://packages.octave.org/ > LICENSE= GPLv3 > LICENSE_FILE= ${WRKSRC}/../COPYING > >-USES= octave autoreconf compiler:gcc-c++11-lib >+USES= octave autoreconf perl5 > > LIB_DEPENDS+= libgtest.so:devel/googletest \ > libmetis.so:math/metis \ >@@ -21,9 +21,17 @@ RUN_DEPENDS+= ${OCTAVE_TARBALLS_DIR}/mboct-octave-pkg.tar.gz:math/octave-forge-m > ${OCTAVE_TARBALLS_DIR}/mboct-numerical-pkg.tar.gz:math/octave-forge-mboct-numerical-pkg \ > ${OCTAVE_TARBALLS_DIR}/mboct-mbdyn-pkg.tar.gz:math/octave-forge-mboct-mbdyn-pkg > >+pre-build: >+ ${CP} ${PATCHDIR}/print_epsilon.cpp ${WRKSRC}/. >+ ${CXX} ${WRKSRC}/print_epsilon.cpp -o ${WRKSRC}/print_epsilon >+ ${PERL} -i.bak -pe "s/std\:\:pow\(std\:\:numeric_limits\<double\>\:\:epsilon\(\)\,\ (0\.\d)\)/(`${WRKSRC}/print_epsilon`)**(\$$1)/e" ${WRKSRC}/__mboct_fem_pkg__.cc >+ ${PERL} -i.bak -pe 's/sqrt\((\d+\.)\)/sqrt($$1)/e' ${WRKSRC}/__mboct_fem_pkg__.cc >+ ${PERL} -i.bak -pe 's|sqrt\((\d+\.\/\d+\.)\)|sqrt(eval($$1))|e' ${WRKSRC}/__mboct_fem_pkg__.cc >+ > USE_GITHUB= yes > GH_ACCOUNT= octave-user > GH_PROJECT= mboct-fem-pkg >+USE_PERL5= build > > OCTAVE_SRC= ${GH_PROJECT}-${DISTVERSION} > >diff --git a/math/octave-forge-mboct-fem-pkg/files/print_epsilon.cpp b/math/octave-forge-mboct-fem-pkg/files/print_epsilon.cpp >new file mode 100644 >index 000000000000..077f993b17a8 >--- /dev/null >+++ b/math/octave-forge-mboct-fem-pkg/files/print_epsilon.cpp >@@ -0,0 +1,7 @@ >+#include<iostream> >+#include<limits> >+#include <iomanip> >+ >+int main(){ >+ std::cout << std::setprecision(20) << std::numeric_limits<double>::epsilon() << std::endl; >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 293334
:
268288
|
268289
|
268291
|
268362
|
268488